當浮水印圖片、字幕檔案、素材等輔助媒資上傳到影片點播後,可以呼叫本介面傳入多個輔助媒資 ID 批次獲取輔助媒資的基本資訊及存取位址。
介面說明
一次最多支援獲取 20 個輔助媒資的資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vod:GetAttachedMediaInfo |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| MediaIds |
string |
是 |
輔助媒資 ID。
|
eb1861d2c9a842340e989dd56****,0222e203cf80f9c22870a4d2c**** |
| AuthTimeout |
integer |
否 |
輔助媒資位址過期時間,單位:秒。
|
3600 |
| OutputType |
string |
否 |
輸出位址類型。取值:
|
oss |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| RequestId |
string |
請求 ID。 |
221BCB57-B217-42BF-619BD13378F9**** |
| NonExistMediaIds |
array |
不存在的輔助媒資 ID。 |
|
|
string |
不存在的輔助媒資 ID。 |
eb1861d2c9a842340e989dd56**** |
|
| AttachedMediaList |
array<object> |
輔助媒資資訊列表。 |
|
|
array<object> |
輔助媒資詳情。 |
||
| Type |
string |
輔助媒資類型。
|
subtitle |
| StorageLocation |
string |
輔助媒資的儲存位址。 |
outin-bfefbb9*****c7426.oss-cn-shanghai.aliyuncs.com |
| CreationTime |
string |
輔助媒資建立時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2019-01-01T10:00:00Z |
| Status |
string |
輔助媒資狀態。取值:
|
Normal |
| Tags |
string |
標籤。 說明
僅當輔助媒資有標籤資訊時,才會返回此參數。 |
tag1,tag2 |
| ModificationTime |
string |
輔助媒資的最後更新時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2020-05-31T11:42:20Z |
| MediaId |
string |
輔助媒資 ID。 |
0222e203cf80f9c22870a4d2c**** |
| Description |
string |
描述。 說明
僅當輔助媒資有描述資訊時,才會返回此參數。 |
Description test |
| AppId |
string |
應用 ID。 |
app-***** |
| URL |
string |
輔助媒資的存取位址。 說明
如果點播設定了 CDN 網域則為 CDN 位址,否則為 OSS 位址。 |
https://al*****.cn/subtitle/9843C2*****4E186F19B6.vtt?auth_key=159099f60e0b7fd59**** |
| Title |
string |
標題。 |
Subtitle test |
| Categories |
array<object> |
分類列表。 |
|
|
object |
分類詳情。 |
||
| ParentId |
integer |
父分類 ID。 |
1000224336 |
| CateName |
string |
分類名稱。 |
Test |
| CateId |
integer |
分類 ID。 |
1000224338 |
| Level |
integer |
分類層級。 |
0 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "221BCB57-B217-42BF-619BD13378F9****",
"NonExistMediaIds": [
"eb1861d2c9a842340e989dd56****"
],
"AttachedMediaList": [
{
"Type": "subtitle",
"StorageLocation": "outin-bfefbb9*****c7426.oss-cn-shanghai.aliyuncs.com",
"CreationTime": "2019-01-01T10:00:00Z",
"Status": "Normal",
"Tags": "tag1,tag2",
"ModificationTime": "2020-05-31T11:42:20Z",
"MediaId": "0222e203cf80f9c22870a4d2c****",
"Description": "Description test",
"AppId": "app-*****",
"URL": "https://al*****.cn/subtitle/9843C2*****4E186F19B6.vtt?auth_key=159099f60e0b7fd59****",
"Title": "Subtitle test",
"Categories": [
{
"ParentId": 1000224336,
"CateName": "Test",
"CateId": 1000224338,
"Level": 0
}
]
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。