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 为 EXTERNAL 时,目前仅支持外部 URL 的媒体直接导入项目中。当外部 URL Scheme 为 https 时,Definiton 为 1000000,MediaKey 为 URL 去掉
'https://' ;当外部 URL Scheme 为 http 时,Definiton 为 1000001,MediaKey 为 URL 去掉 'http://' 。 |
Float |
getSourceMediaStartTime()
Get 音频片段取自媒体文件的起始时间,单位为秒。0 表示从媒体开始位置截取。默认为0。
|
String |
getSourceType()
Get 音频媒体来源类型,取值有:
VOD :素材来源于云点播文件 ;
CME :视频来源于制作云媒体文件 ;
EXTERNAL :视频来源于媒资绑定,如果媒体不是存储在腾讯云点播中或者云创中,都需要使用媒资绑定。
|
void |
setDuration(Float Duration)
Set 音频片段的时长,单位为秒。默认和媒体本身长度一致,表示截取全部媒体。
|
void |
setSourceMedia(String SourceMedia)
Set 注:当 SourceType 为 EXTERNAL 时,目前仅支持外部 URL 的媒体直接导入项目中。当外部 URL Scheme 为 https 时,Definiton 为 1000000,MediaKey 为 URL 去掉
'https://' ;当外部 URL Scheme 为 http 时,Definiton 为 1000001,MediaKey 为 URL 去掉 'http://' 。 |
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()
'https://'
;当外部 URL Scheme 为 http 时,Definiton 为 1000001,MediaKey 为 URL 去掉 'http://'
。 'https://'
;当外部 URL Scheme 为 http 时,Definiton 为 1000001,MediaKey 为 URL 去掉 'http://'
。public void setSourceMedia(String SourceMedia)
'https://'
;当外部 URL Scheme 为 http 时,Definiton 为 1000001,MediaKey 为 URL 去掉 'http://'
。SourceMedia
- 注:当 SourceType 为 EXTERNAL 时,目前仅支持外部 URL 的媒体直接导入项目中。当外部 URL Scheme 为 https 时,Definiton 为 1000000,MediaKey 为 URL 去掉 'https://'
;当外部 URL Scheme 为 http 时,Definiton 为 1000001,MediaKey 为 URL 去掉 'http://'
。public Float getSourceMediaStartTime()
public void setSourceMediaStartTime(Float SourceMediaStartTime)
SourceMediaStartTime
- 音频片段取自媒体文件的起始时间,单位为秒。0 表示从媒体开始位置截取。默认为0。public Float getDuration()
public void setDuration(Float Duration)
Duration
- 音频片段的时长,单位为秒。默认和媒体本身长度一致,表示截取全部媒体。Copyright © 2021. All rights reserved.