Class VideoTrackItem
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cme.v20191029.models.VideoTrackItem
-
public class VideoTrackItem extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description VideoTrackItem()VideoTrackItem(VideoTrackItem source)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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCoordinateOrigin()Get 视频原点位置,取值有: Center:坐标原点为中心位置,如画布中心。 默认值 :Center。FloatgetDuration()Get 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。StringgetHeight()Get 视频片段的高度。支持 %、px 两种格式: 当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%; 当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素; 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height; 当 Width 为空,Height 非空,则 Width 按比例缩放; 当 Width 非空,Height 为空,则 Height 按比例缩放。StringgetSourceMedia()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`。FloatgetSourceMediaStartTime()Get 视频片段取自媒体文件的起始时间,单位为秒。默认为0。StringgetSourceType()Get 视频媒体来源类型,取值有: VOD :媒体来源于云点播文件 。 CME :视频来源制作云媒体文件。 EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。StringgetWidth()Get 视频片段的宽度。支持 %、px 两种格式: 当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%; 当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素; 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height; 当 Width 为空,Height 非空,则 Width 按比例缩放; 当 Width 非空,Height 为空,则 Height 按比例缩放。StringgetXPos()Get 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式: 当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。 当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。 默认值:0px。StringgetYPos()Get 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式: 当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。 当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。 默认值:0px。voidsetCoordinateOrigin(String CoordinateOrigin)Set 视频原点位置,取值有: Center:坐标原点为中心位置,如画布中心。 默认值 :Center。voidsetDuration(Float Duration)Set 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。voidsetHeight(String Height)Set 视频片段的高度。支持 %、px 两种格式: 当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%; 当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素; 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height; 当 Width 为空,Height 非空,则 Width 按比例缩放; 当 Width 非空,Height 为空,则 Height 按比例缩放。voidsetSourceMedia(String 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`。voidsetSourceMediaStartTime(Float SourceMediaStartTime)Set 视频片段取自媒体文件的起始时间,单位为秒。默认为0。voidsetSourceType(String SourceType)Set 视频媒体来源类型,取值有: VOD :媒体来源于云点播文件 。 CME :视频来源制作云媒体文件。 EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。voidsetWidth(String Width)Set 视频片段的宽度。支持 %、px 两种格式: 当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%; 当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素; 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height; 当 Width 为空,Height 非空,则 Width 按比例缩放; 当 Width 非空,Height 为空,则 Height 按比例缩放。voidsetXPos(String XPos)Set 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式: 当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。 当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。 默认值:0px。voidsetYPos(String YPos)Set 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式: 当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。 当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。 默认值:0px。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
VideoTrackItem
public VideoTrackItem()
-
VideoTrackItem
public VideoTrackItem(VideoTrackItem source)
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.
-
-
Method Detail
-
getSourceType
public String getSourceType()
Get 视频媒体来源类型,取值有:- VOD :媒体来源于云点播文件 。
- CME :视频来源制作云媒体文件。
- EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
- Returns:
- SourceType 视频媒体来源类型,取值有:
- VOD :媒体来源于云点播文件 。
- CME :视频来源制作云媒体文件。
- EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
-
setSourceType
public void setSourceType(String SourceType)
Set 视频媒体来源类型,取值有:- VOD :媒体来源于云点播文件 。
- CME :视频来源制作云媒体文件。
- EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
- Parameters:
SourceType- 视频媒体来源类型,取值有:- VOD :媒体来源于云点播文件 。
- CME :视频来源制作云媒体文件。
- EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
-
getSourceMedia
public String getSourceMedia()
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`。
- Returns:
- 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`。
-
setSourceMedia
public void setSourceMedia(String 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`。
- Parameters:
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`。
-
getSourceMediaStartTime
public Float getSourceMediaStartTime()
Get 视频片段取自媒体文件的起始时间,单位为秒。默认为0。- Returns:
- SourceMediaStartTime 视频片段取自媒体文件的起始时间,单位为秒。默认为0。
-
setSourceMediaStartTime
public void setSourceMediaStartTime(Float SourceMediaStartTime)
Set 视频片段取自媒体文件的起始时间,单位为秒。默认为0。- Parameters:
SourceMediaStartTime- 视频片段取自媒体文件的起始时间,单位为秒。默认为0。
-
getDuration
public Float getDuration()
Get 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。- Returns:
- Duration 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。
-
setDuration
public void setDuration(Float Duration)
Set 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。- Parameters:
Duration- 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。
-
getXPos
public String getXPos()
Get 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
- 当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。- Returns:
- XPos 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:
- 当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
- 当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。
-
setXPos
public void setXPos(String XPos)
Set 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
- 当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。- Parameters:
XPos- 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
- 当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。
-
getYPos
public String getYPos()
Get 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
- 当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。- Returns:
- YPos 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:
- 当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
- 当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。
-
setYPos
public void setYPos(String YPos)
Set 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
- 当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。- Parameters:
YPos- 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
- 当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。
-
getCoordinateOrigin
public String getCoordinateOrigin()
Get 视频原点位置,取值有:- Center:坐标原点为中心位置,如画布中心。
默认值 :Center。- Returns:
- CoordinateOrigin 视频原点位置,取值有:
- Center:坐标原点为中心位置,如画布中心。
默认值 :Center。
-
setCoordinateOrigin
public void setCoordinateOrigin(String CoordinateOrigin)
Set 视频原点位置,取值有:- Center:坐标原点为中心位置,如画布中心。
默认值 :Center。- Parameters:
CoordinateOrigin- 视频原点位置,取值有:- Center:坐标原点为中心位置,如画布中心。
默认值 :Center。
-
getHeight
public String getHeight()
Get 视频片段的高度。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%;
- 当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素;
- 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
- 当 Width 为空,Height 非空,则 Width 按比例缩放;
- 当 Width 非空,Height 为空,则 Height 按比例缩放。
- Returns:
- Height 视频片段的高度。支持 %、px 两种格式:
- 当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%;
- 当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素;
- 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
- 当 Width 为空,Height 非空,则 Width 按比例缩放;
- 当 Width 非空,Height 为空,则 Height 按比例缩放。
-
setHeight
public void setHeight(String Height)
Set 视频片段的高度。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%;
- 当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素;
- 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
- 当 Width 为空,Height 非空,则 Width 按比例缩放;
- 当 Width 非空,Height 为空,则 Height 按比例缩放。
- Parameters:
Height- 视频片段的高度。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%;
- 当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素;
- 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
- 当 Width 为空,Height 非空,则 Width 按比例缩放;
- 当 Width 非空,Height 为空,则 Height 按比例缩放。
-
getWidth
public String getWidth()
Get 视频片段的宽度。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%;
- 当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素;
- 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
- 当 Width 为空,Height 非空,则 Width 按比例缩放;
- 当 Width 非空,Height 为空,则 Height 按比例缩放。
- Returns:
- Width 视频片段的宽度。支持 %、px 两种格式:
- 当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%;
- 当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素;
- 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
- 当 Width 为空,Height 非空,则 Width 按比例缩放;
- 当 Width 非空,Height 为空,则 Height 按比例缩放。
-
setWidth
public void setWidth(String Width)
Set 视频片段的宽度。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%;
- 当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素;
- 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
- 当 Width 为空,Height 非空,则 Width 按比例缩放;
- 当 Width 非空,Height 为空,则 Height 按比例缩放。
- Parameters:
Width- 视频片段的宽度。支持 %、px 两种格式:- 当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%;
- 当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素;
- 当 Width、Height 均为空,则 Width 和 Height 取视频媒体文件本身的 Width、Height;
- 当 Width 为空,Height 非空,则 Width 按比例缩放;
- 当 Width 非空,Height 为空,则 Height 按比例缩放。
-
-