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 |
---|---|
AudioTransform[] |
getAudioOperations()
Get Operation on audio such as muting.
|
String |
getCoordinateOrigin()
Get Video origin position.
|
Float |
getDuration()
Get Video segment duration in seconds.
|
String |
getHeight()
Get Video segment height.
|
ImageTransform[] |
getImageOperations()
Get Operation on video image such as image rotation.
|
String |
getSourceMedia()
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).
|
Float |
getSourceMediaStartTime()
Get Start time of video segment in material file in seconds.
|
Float |
getTargetDuration()
Get The target video duration, in seconds.
|
String |
getWidth()
Get Video segment width.
|
String |
getXPos()
Get The horizontal position of the origin of the video segment relative to the origin of the canvas.
|
String |
getYPos()
Get The vertical position of the origin of the video segment relative to the origin of the canvas.
|
void |
setAudioOperations(AudioTransform[] AudioOperations)
Set Operation on audio such as muting.
|
void |
setCoordinateOrigin(String CoordinateOrigin)
Set Video origin position.
|
void |
setDuration(Float Duration)
Set Video segment duration in seconds.
|
void |
setHeight(String Height)
Set Video segment height.
|
void |
setImageOperations(ImageTransform[] ImageOperations)
Set Operation on video image such as image rotation.
|
void |
setSourceMedia(String 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).
|
void |
setSourceMediaStartTime(Float SourceMediaStartTime)
Set Start time of video segment in material file in seconds.
|
void |
setTargetDuration(Float TargetDuration)
Set The target video duration, in seconds.
|
void |
setWidth(String Width)
Set Video segment width.
|
void |
setXPos(String XPos)
Set The horizontal position of the origin of the video segment relative to the origin of the canvas.
|
void |
setYPos(String YPos)
Set The vertical position of the origin of the video segment relative to the origin of the canvas.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public VideoTrackItem()
public VideoTrackItem(VideoTrackItem source)
public String getSourceMedia()
public void setSourceMedia(String SourceMedia)
SourceMedia
- Source of media material for video segment, which can be:
public Float getSourceMediaStartTime()
public void setSourceMediaStartTime(Float SourceMediaStartTime)
SourceMediaStartTime
- Start time of video segment in material file in seconds. Default value: 0.public Float getDuration()
public void setDuration(Float Duration)
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 getTargetDuration()
public void setTargetDuration(Float TargetDuration)
TargetDuration
- The target video duration, in seconds.
public String getCoordinateOrigin()
public void setCoordinateOrigin(String CoordinateOrigin)
CoordinateOrigin
- Video origin position. Valid values:
public String getXPos()
public void setXPos(String XPos)
XPos
- The horizontal position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
public String getYPos()
public void setYPos(String YPos)
YPos
- The vertical position of the origin of the video segment relative to the origin of the canvas. % and px formats are supported:
public String getWidth()
public void setWidth(String Width)
Width
- Video segment width. % and px formats are supported:
public String getHeight()
public void setHeight(String Height)
Height
- Video segment height. % and px formats are supported:
public AudioTransform[] getAudioOperations()
public void setAudioOperations(AudioTransform[] AudioOperations)
AudioOperations
- Operation on audio such as muting.
Note: this field may return null, indicating that no valid values can be obtained.public ImageTransform[] getImageOperations()
public void setImageOperations(ImageTransform[] ImageOperations)
ImageOperations
- Operation on video image such as image rotation.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.