com.tencentcloudapi.vod.v20180717.models.VideoTrackItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.vod.v20180717.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class VideoTrackItem extends AbstractModel{
/**
* Source of media material for video segment, which can be:
ID of VOD media files
Download URL of other media files.
Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature).
*/
@SerializedName("SourceMedia")
@Expose
private String SourceMedia;
/**
* Start time of video segment in material file in seconds. Default value: 0.
*/
@SerializedName("SourceMediaStartTime")
@Expose
private Float SourceMediaStartTime;
/**
* Video segment duration in seconds. By default, the length of the video material will be used, which means that the entire material will be captured. If the source file is an image, `Duration` needs to be greater than 0.
*/
@SerializedName("Duration")
@Expose
private Float Duration;
/**
* Video origin position. Valid values:
Center: the origin of coordinates is the center position, such as the center of canvas.
Default value: Center.
*/
@SerializedName("CoordinateOrigin")
@Expose
private String CoordinateOrigin;
/**
* The horizontal position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `XPos` of the video segment will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
If the string ends in px, the `XPos` of the video segment will be in px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
*/
@SerializedName("XPos")
@Expose
private String XPos;
/**
* The vertical position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `YPos` of the video segment will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
If the string ends in px, the `YPos` of the video segment will be in px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
*/
@SerializedName("YPos")
@Expose
private String YPos;
/**
* Video segment width. % and px formats are supported:
If the string ends in %, the `Width` of the video segment will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
If the string ends in px, the `Width` of the video segment will be in px; for example, `100px` means that `Width` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
*/
@SerializedName("Width")
@Expose
private String Width;
/**
* Video segment height. % and px formats are supported:
If the string ends in %, the `Height` of the video segment will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height;
If the string ends in px, the `Height` of the video segment will be in px; for example, `100px` means that `Height` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
*/
@SerializedName("Height")
@Expose
private String Height;
/**
* Operation on video image such as image rotation.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("ImageOperations")
@Expose
private ImageTransform [] ImageOperations;
/**
* Operation on audio such as muting.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("AudioOperations")
@Expose
private AudioTransform [] AudioOperations;
/**
* Get Source of media material for video segment, which can be:
ID of VOD media files
Download URL of other media files.
Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature).
* @return SourceMedia Source of media material for video segment, which can be:
ID of VOD media files
Download URL of other media files.
Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature).
*/
public String getSourceMedia() {
return this.SourceMedia;
}
/**
* Set Source of media material for video segment, which can be:
ID of VOD media files
Download URL of other media files.
Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature).
* @param SourceMedia Source of media material for video segment, which can be:
ID of VOD media files
Download URL of other media files.
Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature).
*/
public void setSourceMedia(String SourceMedia) {
this.SourceMedia = SourceMedia;
}
/**
* Get Start time of video segment in material file in seconds. Default value: 0.
* @return SourceMediaStartTime Start time of video segment in material file in seconds. Default value: 0.
*/
public Float getSourceMediaStartTime() {
return this.SourceMediaStartTime;
}
/**
* Set Start time of video segment in material file in seconds. Default value: 0.
* @param SourceMediaStartTime Start time of video segment in material file in seconds. Default value: 0.
*/
public void setSourceMediaStartTime(Float SourceMediaStartTime) {
this.SourceMediaStartTime = SourceMediaStartTime;
}
/**
* Get Video segment duration in seconds. By default, the length of the video material will be used, which means that the entire material will be captured. If the source file is an image, `Duration` needs to be greater than 0.
* @return Duration Video segment duration in seconds. By default, the length of the video material will be used, which means that the entire material will be captured. If the source file is an image, `Duration` needs to be greater than 0.
*/
public Float getDuration() {
return this.Duration;
}
/**
* Set Video segment duration in seconds. By default, the length of the video material will be used, which means that the entire material will be captured. If the source file is an image, `Duration` needs to be greater than 0.
* @param Duration Video segment duration in seconds. By default, the length of the video material will be used, which means that the entire material will be captured. If the source file is an image, `Duration` needs to be greater than 0.
*/
public void setDuration(Float Duration) {
this.Duration = Duration;
}
/**
* Get Video origin position. Valid values:
Center: the origin of coordinates is the center position, such as the center of canvas.
Default value: Center.
* @return CoordinateOrigin Video origin position. Valid values:
Center: the origin of coordinates is the center position, such as the center of canvas.
Default value: Center.
*/
public String getCoordinateOrigin() {
return this.CoordinateOrigin;
}
/**
* Set Video origin position. Valid values:
Center: the origin of coordinates is the center position, such as the center of canvas.
Default value: Center.
* @param CoordinateOrigin Video origin position. Valid values:
Center: the origin of coordinates is the center position, such as the center of canvas.
Default value: Center.
*/
public void setCoordinateOrigin(String CoordinateOrigin) {
this.CoordinateOrigin = CoordinateOrigin;
}
/**
* Get The horizontal position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `XPos` of the video segment will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
If the string ends in px, the `XPos` of the video segment will be in px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
* @return XPos The horizontal position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `XPos` of the video segment will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
If the string ends in px, the `XPos` of the video segment will be in px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
*/
public String getXPos() {
return this.XPos;
}
/**
* Set The horizontal position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `XPos` of the video segment will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
If the string ends in px, the `XPos` of the video segment will be in px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
* @param XPos The horizontal position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `XPos` of the video segment will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
If the string ends in px, the `XPos` of the video segment will be in px; for example, `100px` means that `XPos` is 100 px.
Default value: 0 px.
*/
public void setXPos(String XPos) {
this.XPos = XPos;
}
/**
* Get The vertical position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `YPos` of the video segment will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
If the string ends in px, the `YPos` of the video segment will be in px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
* @return YPos The vertical position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `YPos` of the video segment will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
If the string ends in px, the `YPos` of the video segment will be in px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
*/
public String getYPos() {
return this.YPos;
}
/**
* Set The vertical position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `YPos` of the video segment will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
If the string ends in px, the `YPos` of the video segment will be in px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
* @param YPos The vertical position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
If the string ends in %, the `YPos` of the video segment will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
If the string ends in px, the `YPos` of the video segment will be in px; for example, `100px` means that `YPos` is 100 px.
Default value: 0 px.
*/
public void setYPos(String YPos) {
this.YPos = YPos;
}
/**
* Get Video segment width. % and px formats are supported:
If the string ends in %, the `Width` of the video segment will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
If the string ends in px, the `Width` of the video segment will be in px; for example, `100px` means that `Width` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
* @return Width Video segment width. % and px formats are supported:
If the string ends in %, the `Width` of the video segment will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
If the string ends in px, the `Width` of the video segment will be in px; for example, `100px` means that `Width` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
*/
public String getWidth() {
return this.Width;
}
/**
* Set Video segment width. % and px formats are supported:
If the string ends in %, the `Width` of the video segment will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
If the string ends in px, the `Width` of the video segment will be in px; for example, `100px` means that `Width` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
* @param Width Video segment width. % and px formats are supported:
If the string ends in %, the `Width` of the video segment will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
If the string ends in px, the `Width` of the video segment will be in px; for example, `100px` means that `Width` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
*/
public void setWidth(String Width) {
this.Width = Width;
}
/**
* Get Video segment height. % and px formats are supported:
If the string ends in %, the `Height` of the video segment will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height;
If the string ends in px, the `Height` of the video segment will be in px; for example, `100px` means that `Height` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
* @return Height Video segment height. % and px formats are supported:
If the string ends in %, the `Height` of the video segment will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height;
If the string ends in px, the `Height` of the video segment will be in px; for example, `100px` means that `Height` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
*/
public String getHeight() {
return this.Height;
}
/**
* Set Video segment height. % and px formats are supported:
If the string ends in %, the `Height` of the video segment will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height;
If the string ends in px, the `Height` of the video segment will be in px; for example, `100px` means that `Height` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
* @param Height Video segment height. % and px formats are supported:
If the string ends in %, the `Height` of the video segment will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height;
If the string ends in px, the `Height` of the video segment will be in px; for example, `100px` means that `Height` is 100 px.
If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the video material, respectively.
If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
*/
public void setHeight(String Height) {
this.Height = Height;
}
/**
* Get Operation on video image such as image rotation.
Note: this field may return null, indicating that no valid values can be obtained.
* @return ImageOperations Operation on video image such as image rotation.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public ImageTransform [] getImageOperations() {
return this.ImageOperations;
}
/**
* Set Operation on video image such as image rotation.
Note: this field may return null, indicating that no valid values can be obtained.
* @param ImageOperations Operation on video image such as image rotation.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setImageOperations(ImageTransform [] ImageOperations) {
this.ImageOperations = ImageOperations;
}
/**
* Get Operation on audio such as muting.
Note: this field may return null, indicating that no valid values can be obtained.
* @return AudioOperations Operation on audio such as muting.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public AudioTransform [] getAudioOperations() {
return this.AudioOperations;
}
/**
* Set Operation on audio such as muting.
Note: this field may return null, indicating that no valid values can be obtained.
* @param AudioOperations Operation on audio such as muting.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setAudioOperations(AudioTransform [] AudioOperations) {
this.AudioOperations = AudioOperations;
}
public VideoTrackItem() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public VideoTrackItem(VideoTrackItem source) {
if (source.SourceMedia != null) {
this.SourceMedia = new String(source.SourceMedia);
}
if (source.SourceMediaStartTime != null) {
this.SourceMediaStartTime = new Float(source.SourceMediaStartTime);
}
if (source.Duration != null) {
this.Duration = new Float(source.Duration);
}
if (source.CoordinateOrigin != null) {
this.CoordinateOrigin = new String(source.CoordinateOrigin);
}
if (source.XPos != null) {
this.XPos = new String(source.XPos);
}
if (source.YPos != null) {
this.YPos = new String(source.YPos);
}
if (source.Width != null) {
this.Width = new String(source.Width);
}
if (source.Height != null) {
this.Height = new String(source.Height);
}
if (source.ImageOperations != null) {
this.ImageOperations = new ImageTransform[source.ImageOperations.length];
for (int i = 0; i < source.ImageOperations.length; i++) {
this.ImageOperations[i] = new ImageTransform(source.ImageOperations[i]);
}
}
if (source.AudioOperations != null) {
this.AudioOperations = new AudioTransform[source.AudioOperations.length];
for (int i = 0; i < source.AudioOperations.length; i++) {
this.AudioOperations[i] = new AudioTransform(source.AudioOperations[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "SourceMedia", this.SourceMedia);
this.setParamSimple(map, prefix + "SourceMediaStartTime", this.SourceMediaStartTime);
this.setParamSimple(map, prefix + "Duration", this.Duration);
this.setParamSimple(map, prefix + "CoordinateOrigin", this.CoordinateOrigin);
this.setParamSimple(map, prefix + "XPos", this.XPos);
this.setParamSimple(map, prefix + "YPos", this.YPos);
this.setParamSimple(map, prefix + "Width", this.Width);
this.setParamSimple(map, prefix + "Height", this.Height);
this.setParamArrayObj(map, prefix + "ImageOperations.", this.ImageOperations);
this.setParamArrayObj(map, prefix + "AudioOperations.", this.AudioOperations);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy