public class ExternalMediaInfo extends AbstractModel
Constructor and Description |
---|
ExternalMediaInfo() |
ExternalMediaInfo(ExternalMediaInfo 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 |
---|---|
Long |
getDefinition()
Get 媒资绑定模板 ID,可取值为:
1000000:媒体文件为 URL,且 URL Scheme 为 https;
1000001:媒体文件为 URL,且 URL Scheme 为 http。
注:如果要支持其它存储平台或者类型的媒体绑定,请联系 [客服](https://cloud.tencent.com/online-service?from=doc_1156)。
|
String |
getMediaKey()
Get 媒资绑定媒体路径或文件 ID。如果要绑定 URL 类型的媒体,请将 URL 的
'https://' 或者 'http://' 去掉,例如:
原始媒体 URL 为 `https://www.example.com/a.mp4`,则 MediaKey 为 `www.example.com/a.mp4`。 |
void |
setDefinition(Long Definition)
Set 媒资绑定模板 ID,可取值为:
1000000:媒体文件为 URL,且 URL Scheme 为 https;
1000001:媒体文件为 URL,且 URL Scheme 为 http。
注:如果要支持其它存储平台或者类型的媒体绑定,请联系 [客服](https://cloud.tencent.com/online-service?from=doc_1156)。
|
void |
setMediaKey(String MediaKey)
Set 媒资绑定媒体路径或文件 ID。如果要绑定 URL 类型的媒体,请将 URL 的
'https://' 或者 'http://' 去掉,例如:
原始媒体 URL 为 `https://www.example.com/a.mp4`,则 MediaKey 为 `www.example.com/a.mp4`。 |
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 ExternalMediaInfo()
public ExternalMediaInfo(ExternalMediaInfo source)
public Long getDefinition()
public void setDefinition(Long Definition)
Definition
- 媒资绑定模板 ID,可取值为:
public String getMediaKey()
'https://'
或者 'http://'
去掉,例如:
原始媒体 URL 为 `https://www.example.com/a.mp4`,则 MediaKey 为 `www.example.com/a.mp4`。'https://'
或者 'http://'
去掉,例如:
原始媒体 URL 为 `https://www.example.com/a.mp4`,则 MediaKey 为 `www.example.com/a.mp4`。public void setMediaKey(String MediaKey)
'https://'
或者 'http://'
去掉,例如:
原始媒体 URL 为 `https://www.example.com/a.mp4`,则 MediaKey 为 `www.example.com/a.mp4`。MediaKey
- 媒资绑定媒体路径或文件 ID。如果要绑定 URL 类型的媒体,请将 URL 的 'https://'
或者 'http://'
去掉,例如:
原始媒体 URL 为 `https://www.example.com/a.mp4`,则 MediaKey 为 `www.example.com/a.mp4`。Copyright © 2021. All rights reserved.