public class VideoTrackItem extends AbstractModel
header, skipSign
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getCoordinateOrigin()
Get 视频原点位置,取值有:
Center:坐标原点为中心位置,如画布中心。
默认值 :Center。
|
Float |
getDuration()
Get 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。
|
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 按比例缩放。
|
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`。
|
Float |
getSourceMediaStartTime()
Get 视频片段取自媒体文件的起始时间,单位为秒。默认为0。
|
String |
getSourceType()
Get 视频媒体来源类型,取值有:
VOD :媒体来源于云点播文件 。
CME :视频来源制作云媒体文件。
EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
|
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 按比例缩放。
|
String |
getXPos()
Get 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。
|
String |
getYPos()
Get 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。
|
void |
setCoordinateOrigin(String CoordinateOrigin)
Set 视频原点位置,取值有:
Center:坐标原点为中心位置,如画布中心。
默认值 :Center。
|
void |
setDuration(Float Duration)
Set 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。
|
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 按比例缩放。
|
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`。
|
void |
setSourceMediaStartTime(Float SourceMediaStartTime)
Set 视频片段取自媒体文件的起始时间,单位为秒。默认为0。
|
void |
setSourceType(String SourceType)
Set 视频媒体来源类型,取值有:
VOD :媒体来源于云点播文件 。
CME :视频来源制作云媒体文件。
EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
|
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 按比例缩放。
|
void |
setXPos(String XPos)
Set 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。
当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。
默认值:0px。
|
void |
setYPos(String YPos)
Set 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:
当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。
默认值:0px。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public VideoTrackItem()
public VideoTrackItem(VideoTrackItem source)
public String getSourceType()
public void setSourceType(String SourceType)
SourceType
- 视频媒体来源类型,取值有:
public String getSourceMedia()
public void setSourceMedia(String SourceMedia)
SourceMedia
- 视频媒体,可取值为:
public Float getSourceMediaStartTime()
public void setSourceMediaStartTime(Float SourceMediaStartTime)
SourceMediaStartTime
- 视频片段取自媒体文件的起始时间,单位为秒。默认为0。public Float getDuration()
public void setDuration(Float Duration)
Duration
- 视频片段时长,单位为秒。默认取视频媒体文件本身长度,表示截取全部媒体文件。如果源文件是图片,Duration需要大于0。public String getXPos()
public void setXPos(String XPos)
XPos
- 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式:
public String getYPos()
public void setYPos(String YPos)
YPos
- 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式:
public String getCoordinateOrigin()
public void setCoordinateOrigin(String CoordinateOrigin)
CoordinateOrigin
- 视频原点位置,取值有:
public String getHeight()
public void setHeight(String Height)
Height
- 视频片段的高度。支持 %、px 两种格式:
public String getWidth()
public void setWidth(String Width)
Width
- 视频片段的宽度。支持 %、px 两种格式:
Copyright © 2024. All rights reserved.