
com.tencentcloudapi.cme.v20191029.models.VideoTrackItem Maven / Gradle / Ivy
/*
* 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.cme.v20191029.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{
/**
* 视频媒体来源类型,取值有:
- VOD :媒体来源于云点播文件 。
- CME :视频来源制作云媒体文件。
- EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
*/
@SerializedName("SourceType")
@Expose
private String SourceType;
/**
* 视频媒体,可取值为:
- 当 SourceType 为 VOD 时,参数填云点播 FileId ;
- 当 SourceType 为 CME 时,参数填多媒体创作引擎媒体 Id;
- 当 SourceType 为 EXTERNAL 时,目前仅支持外部媒体 URL(如`https://www.example.com/a.mp4`),参数填写规则请参见注意事项。
注意:
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `https` 时(如:`https://www.example.com/a.mp4`),参数为:`1000000:www.example.com/a.mp4`。
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `http` 时(如:`http://www.example.com/b.mp4`),参数为:`1000001:www.example.com/b.mp4`。
*/
@SerializedName("SourceMedia")
@Expose
private String SourceMedia;
/**
* 视频片段取自媒体文件的起始时间,单位为秒。默认为0。
*/
@SerializedName("SourceMediaStartTime")
@Expose
private Float SourceMediaStartTime;
/**
* 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。
*/
@SerializedName("Duration")
@Expose
private Float Duration;
/**
* 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。
*/
@SerializedName("XPos")
@Expose
private String XPos;
/**
* 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。
*/
@SerializedName("YPos")
@Expose
private String YPos;
/**
* 视频原点位置,取值有:
Center:坐标原点为中心位置,如画布中心。
默认值 :Center。
*/
@SerializedName("CoordinateOrigin")
@Expose
private String CoordinateOrigin;
/**
* 视频片段的高度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%;
当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
*/
@SerializedName("Height")
@Expose
private String Height;
/**
* 视频片段的宽度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%;
当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
*/
@SerializedName("Width")
@Expose
private String Width;
/**
* Get 视频媒体来源类型,取值有:
- VOD :媒体来源于云点播文件 。
- CME :视频来源制作云媒体文件。
- EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
* @return SourceType 视频媒体来源类型,取值有:
- VOD :媒体来源于云点播文件 。
- CME :视频来源制作云媒体文件。
- EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
*/
public String getSourceType() {
return this.SourceType;
}
/**
* Set 视频媒体来源类型,取值有:
- VOD :媒体来源于云点播文件 。
- CME :视频来源制作云媒体文件。
- EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
* @param SourceType 视频媒体来源类型,取值有:
- VOD :媒体来源于云点播文件 。
- CME :视频来源制作云媒体文件。
- EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
*/
public void setSourceType(String SourceType) {
this.SourceType = SourceType;
}
/**
* Get 视频媒体,可取值为:
- 当 SourceType 为 VOD 时,参数填云点播 FileId ;
- 当 SourceType 为 CME 时,参数填多媒体创作引擎媒体 Id;
- 当 SourceType 为 EXTERNAL 时,目前仅支持外部媒体 URL(如`https://www.example.com/a.mp4`),参数填写规则请参见注意事项。
注意:
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `https` 时(如:`https://www.example.com/a.mp4`),参数为:`1000000:www.example.com/a.mp4`。
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `http` 时(如:`http://www.example.com/b.mp4`),参数为:`1000001:www.example.com/b.mp4`。
* @return SourceMedia 视频媒体,可取值为:
- 当 SourceType 为 VOD 时,参数填云点播 FileId ;
- 当 SourceType 为 CME 时,参数填多媒体创作引擎媒体 Id;
- 当 SourceType 为 EXTERNAL 时,目前仅支持外部媒体 URL(如`https://www.example.com/a.mp4`),参数填写规则请参见注意事项。
注意:
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `https` 时(如:`https://www.example.com/a.mp4`),参数为:`1000000:www.example.com/a.mp4`。
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `http` 时(如:`http://www.example.com/b.mp4`),参数为:`1000001:www.example.com/b.mp4`。
*/
public String getSourceMedia() {
return this.SourceMedia;
}
/**
* Set 视频媒体,可取值为:
- 当 SourceType 为 VOD 时,参数填云点播 FileId ;
- 当 SourceType 为 CME 时,参数填多媒体创作引擎媒体 Id;
- 当 SourceType 为 EXTERNAL 时,目前仅支持外部媒体 URL(如`https://www.example.com/a.mp4`),参数填写规则请参见注意事项。
注意:
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `https` 时(如:`https://www.example.com/a.mp4`),参数为:`1000000:www.example.com/a.mp4`。
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `http` 时(如:`http://www.example.com/b.mp4`),参数为:`1000001:www.example.com/b.mp4`。
* @param SourceMedia 视频媒体,可取值为:
- 当 SourceType 为 VOD 时,参数填云点播 FileId ;
- 当 SourceType 为 CME 时,参数填多媒体创作引擎媒体 Id;
- 当 SourceType 为 EXTERNAL 时,目前仅支持外部媒体 URL(如`https://www.example.com/a.mp4`),参数填写规则请参见注意事项。
注意:
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `https` 时(如:`https://www.example.com/a.mp4`),参数为:`1000000:www.example.com/a.mp4`。
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `http` 时(如:`http://www.example.com/b.mp4`),参数为:`1000001:www.example.com/b.mp4`。
*/
public void setSourceMedia(String SourceMedia) {
this.SourceMedia = SourceMedia;
}
/**
* Get 视频片段取自媒体文件的起始时间,单位为秒。默认为0。
* @return SourceMediaStartTime 视频片段取自媒体文件的起始时间,单位为秒。默认为0。
*/
public Float getSourceMediaStartTime() {
return this.SourceMediaStartTime;
}
/**
* Set 视频片段取自媒体文件的起始时间,单位为秒。默认为0。
* @param SourceMediaStartTime 视频片段取自媒体文件的起始时间,单位为秒。默认为0。
*/
public void setSourceMediaStartTime(Float SourceMediaStartTime) {
this.SourceMediaStartTime = SourceMediaStartTime;
}
/**
* Get 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。
* @return Duration 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。
*/
public Float getDuration() {
return this.Duration;
}
/**
* Set 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。
* @param Duration 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。
*/
public void setDuration(Float Duration) {
this.Duration = Duration;
}
/**
* Get 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。
* @return XPos 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。
*/
public String getXPos() {
return this.XPos;
}
/**
* Set 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。
* @param XPos 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。
*/
public void setXPos(String XPos) {
this.XPos = XPos;
}
/**
* Get 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。
* @return YPos 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。
*/
public String getYPos() {
return this.YPos;
}
/**
* Set 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。
* @param YPos 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。
*/
public void setYPos(String YPos) {
this.YPos = YPos;
}
/**
* Get 视频原点位置,取值有:
Center:坐标原点为中心位置,如画布中心。
默认值 :Center。
* @return CoordinateOrigin 视频原点位置,取值有:
Center:坐标原点为中心位置,如画布中心。
默认值 :Center。
*/
public String getCoordinateOrigin() {
return this.CoordinateOrigin;
}
/**
* Set 视频原点位置,取值有:
Center:坐标原点为中心位置,如画布中心。
默认值 :Center。
* @param CoordinateOrigin 视频原点位置,取值有:
Center:坐标原点为中心位置,如画布中心。
默认值 :Center。
*/
public void setCoordinateOrigin(String CoordinateOrigin) {
this.CoordinateOrigin = CoordinateOrigin;
}
/**
* Get 视频片段的高度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%;
当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
* @return Height 视频片段的高度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%;
当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
*/
public String getHeight() {
return this.Height;
}
/**
* Set 视频片段的高度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%;
当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
* @param Height 视频片段的高度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%;
当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
*/
public void setHeight(String Height) {
this.Height = Height;
}
/**
* Get 视频片段的宽度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%;
当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
* @return Width 视频片段的宽度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%;
当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
*/
public String getWidth() {
return this.Width;
}
/**
* Set 视频片段的宽度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%;
当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
* @param Width 视频片段的宽度。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%;
当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素;
当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
当 Width 为空,Height 非空,则 Width 按比例缩放;
当 Width 非空,Height 为空,则 Height 按比例缩放。
*/
public void setWidth(String Width) {
this.Width = Width;
}
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.SourceType != null) {
this.SourceType = new String(source.SourceType);
}
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.XPos != null) {
this.XPos = new String(source.XPos);
}
if (source.YPos != null) {
this.YPos = new String(source.YPos);
}
if (source.CoordinateOrigin != null) {
this.CoordinateOrigin = new String(source.CoordinateOrigin);
}
if (source.Height != null) {
this.Height = new String(source.Height);
}
if (source.Width != null) {
this.Width = new String(source.Width);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "SourceType", this.SourceType);
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 + "XPos", this.XPos);
this.setParamSimple(map, prefix + "YPos", this.YPos);
this.setParamSimple(map, prefix + "CoordinateOrigin", this.CoordinateOrigin);
this.setParamSimple(map, prefix + "Height", this.Height);
this.setParamSimple(map, prefix + "Width", this.Width);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy