public class AudioTrackItem extends AbstractModel
Constructor and Description |
---|
AudioTrackItem() |
AudioTrackItem(AudioTrackItem 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 |
---|---|
Float |
getDuration()
Get 音频片段的时长,单位为秒。默认和媒体本身长度一致,表示截取全部媒体。
|
String |
getSourceMedia()
Get 音频媒体,可取值为:
当 SourceType 为 VOD 时,参数填云点播 FileId ;
当 SourceType 为 CME 时,参数填多媒体创作引擎媒体 Id;
当 SourceType 为 EXTERNAL 时,目前仅支持外部媒体 URL(如`https://www.example.com/a.mp3`),参数填写规则请参见注意事项。
注意:
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `https` 时(如:`https://www.example.com/a.mp3`),参数为:`1000000:www.example.com/a.mp3`。
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `http` 时(如:`http://www.example.com/b.mp3`),参数为:`1000001:www.example.com/b.mp3`。
|
Float |
getSourceMediaStartTime()
Get 音频片段取自媒体文件的起始时间,单位为秒。0 表示从媒体开始位置截取。默认为0。
|
String |
getSourceType()
Get 音频媒体来源类型,取值有:
VOD :素材来源于云点播文件 ;
CME :视频来源于制作云媒体文件 ;
EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
|
void |
setDuration(Float Duration)
Set 音频片段的时长,单位为秒。默认和媒体本身长度一致,表示截取全部媒体。
|
void |
setSourceMedia(String SourceMedia)
Set 音频媒体,可取值为:
当 SourceType 为 VOD 时,参数填云点播 FileId ;
当 SourceType 为 CME 时,参数填多媒体创作引擎媒体 Id;
当 SourceType 为 EXTERNAL 时,目前仅支持外部媒体 URL(如`https://www.example.com/a.mp3`),参数填写规则请参见注意事项。
注意:
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `https` 时(如:`https://www.example.com/a.mp3`),参数为:`1000000:www.example.com/a.mp3`。
当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为 `http` 时(如:`http://www.example.com/b.mp3`),参数为:`1000001:www.example.com/b.mp3`。
|
void |
setSourceMediaStartTime(Float SourceMediaStartTime)
Set 音频片段取自媒体文件的起始时间,单位为秒。0 表示从媒体开始位置截取。默认为0。
|
void |
setSourceType(String SourceType)
Set 音频媒体来源类型,取值有:
VOD :素材来源于云点播文件 ;
CME :视频来源于制作云媒体文件 ;
EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public AudioTrackItem()
public AudioTrackItem(AudioTrackItem 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 表示从媒体开始位置截取。默认为0。public Float getDuration()
public void setDuration(Float Duration)
Duration
- 音频片段的时长,单位为秒。默认和媒体本身长度一致,表示截取全部媒体。Copyright © 2022. All rights reserved.