列出符合條件的公共素材庫媒資基礎資訊,最多篩選出100條。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| MediaTagId |
string |
否 |
媒資標籤,根據此 mediaTagId 進行匹配,返回所有包含此標籤的媒資。取值:
|
sticker-atmosphere |
| NextToken |
string |
否 |
用來表示當前呼叫返回讀取到的位置,空代表資料已經讀取完畢。 |
pSa1SQ0wCe5pzVrQ6mWZEw== |
| MaxResults |
integer |
否 |
本次請求所返回的最大記錄筆數。 最大值:100,預設值:10。 |
5 |
| PageNo |
integer |
否 |
當前頁碼。預設值為 1。 |
1 |
| PageSize |
integer |
否 |
分頁大小,每頁顯示筆數。預設值為 10,最大值為 100。 |
10 |
| IncludeFileBasicInfo |
boolean |
否 |
如果為 true,返回值中包含檔案基礎資訊。 |
true |
| BusinessType |
string |
否 |
媒資業務類型。取值範圍:
|
sticker |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| MaxResults |
integer |
本次請求所返回的最大記錄條數。 |
2 |
| MediaInfos |
array<object> |
符合要求的媒資集合。 |
|
|
array<object> |
|||
| FileInfoList |
array<object> |
檔案資訊。 |
|
|
array<object> |
|||
| FileBasicInfo |
object |
檔案基礎資訊,包含時長,大小等。 |
|
| Bitrate |
string |
位元率。 |
270112.12 |
| Duration |
string |
時長。 |
10.040000 |
| FileName |
string |
檔案名稱。 |
example.mp4 |
| FileSize |
string |
檔案大小(位元組)。 |
338990717 |
| FileStatus |
string |
檔案狀態。 |
Normal |
| FileType |
string |
檔案類型。 |
source_file |
| FileUrl |
string |
檔案 OSS 位址。 |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires= |
| FormatName |
string |
封裝格式。 |
mov,mp4,m4a,3gp,3g2,mj2 |
| Height |
string |
高。 |
1080 |
| Region |
string |
檔案儲存區域。 |
cn-shanghai |
| Width |
string |
寬。 |
1920 |
| MediaBasicInfo |
object |
媒資基礎資訊。 |
|
| BusinessType |
string |
媒資業務類型。 |
general |
| Category |
string |
分類。 |
video |
| CoverURL |
string |
封面位址。 |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires= |
| CreateTime |
string |
媒資建立時間。時間格式為 ISO 8601,使用 UTC 時間(以 Z 結尾)。 |
2021-01-08T16:52:04Z |
| DeletedTime |
string |
媒資刪除時間。時間格式為 ISO 8601,使用 UTC 時間(以 Z 結尾)。 |
2021-01-08T16:52:04Z |
| Description |
string |
內容描述。 |
description |
| InputURL |
string |
待註冊的媒資在相應系統中的位址。 |
https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| MediaId |
string |
媒資 ID。 |
****019b82e24b37a1c2958dec38**** |
| MediaTags |
string |
標籤。 |
sticker-daily |
| MediaType |
string |
媒資媒體類型。 |
video |
| ModifiedTime |
string |
媒資修改時間。時間格式為 ISO 8601,使用 UTC 時間(以 Z 結尾)。 |
2021-01-08T16:52:04Z |
| Snapshots |
string |
截圖。 |
null |
| Source |
string |
來源。 |
oss |
| Status |
string |
資源狀態。 |
Normal |
| Title |
string |
標題。 |
title 標題 |
| TranscodeStatus |
string |
轉碼狀態。 |
Init |
| UserData |
string |
使用者資料。 |
userData |
| MediaId |
string |
媒資 ID。 |
****019b82e24b37a1c2958dec38**** |
| NextToken |
string |
用來表示當前呼叫返回讀取到的位置,空代表資料已經讀取完畢。 |
8EqYpQbZ6Eh7+Zz8DxVYoQ== |
| RequestId |
string |
請求 ID。 |
******B7-7F87-4792-BFE9-63CD21****** |
| TotalCount |
integer |
符合要求的媒資總數。 |
2 |
樣本
正常返回樣本
JSON格式
{
"MaxResults": 2,
"MediaInfos": [
{
"FileInfoList": [
{
"FileBasicInfo": {
"Bitrate": "270112.12",
"Duration": "10.040000",
"FileName": "example.mp4",
"FileSize": "338990717",
"FileStatus": "Normal",
"FileType": "source_file",
"FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"FormatName": "mov,mp4,m4a,3gp,3g2,mj2",
"Height": "1080",
"Region": "cn-shanghai",
"Width": "1920"
}
}
],
"MediaBasicInfo": {
"BusinessType": "general",
"Category": "video",
"CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"CreateTime": "2021-01-08T16:52:04Z",
"DeletedTime": "2021-01-08T16:52:04Z",
"Description": "description",
"InputURL": "https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4",
"MediaId": "****019b82e24b37a1c2958dec38****",
"MediaTags": "sticker-daily",
"MediaType": "video",
"ModifiedTime": "2021-01-08T16:52:04Z",
"Snapshots": "null",
"Source": "oss",
"Status": "Normal",
"Title": "My video title",
"TranscodeStatus": "Init",
"UserData": "userData"
},
"MediaId": "****019b82e24b37a1c2958dec38****"
}
],
"NextToken": "8EqYpQbZ6Eh7+Zz8DxVYoQ==",
"RequestId": "******B7-7F87-4792-BFE9-63CD21******",
"TotalCount": 2
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。