Mencantumkan informasi dasar Aset media di Pustaka Media publik yang sesuai dengan kondisi yang ditentukan. Maksimal 100 catatan dapat dikembalikan.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| MediaTagId |
string |
No |
Tag aset media. Aset media yang mengandung tag ini dikembalikan berdasarkan mediaTagId yang ditentukan. Nilai valid:
|
sticker-atmosphere |
| NextToken |
string |
No |
Posisi tempat pemanggilan saat ini mulai membaca. Nilai kosong menunjukkan bahwa semua data telah dibaca. |
pSa1SQ0wCe5pzVrQ6mWZEw== |
| MaxResults |
integer |
No |
Jumlah maksimum catatan yang dikembalikan dalam permintaan ini. Nilai maksimum: 100. Nilai default: 10. |
5 |
| PageNo |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 10. Nilai maksimum: 100. |
10 |
| IncludeFileBasicInfo |
boolean |
No |
Apakah akan menyertakan informasi dasar file dalam tanggapan. Jika parameter ini diatur ke true, informasi dasar file disertakan dalam tanggapan. |
true |
| BusinessType |
string |
No |
Tipe bisnis aset media. Nilai valid:
|
sticker |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
******B7-7F87-4792-BFE9-63CD21****** |
| TotalCount |
integer |
Jumlah total aset media yang sesuai dengan kondisi. |
2 |
| MediaInfos |
array<object> |
Kumpulan aset media yang sesuai dengan kondisi. |
|
|
array<object> |
|||
| MediaId |
string |
ID aset media. |
****019b82e24b37a1c2958dec38**** |
| MediaBasicInfo |
object |
Informasi dasar Aset media. |
|
| MediaId |
string |
The ID of the media asset. |
****019b82e24b37a1c2958dec38**** |
| InputURL |
string |
The URL of the media asset in another service. |
https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| MediaType |
string |
The type of the media asset. |
video |
| BusinessType |
string |
The business type of the media asset. |
general |
| Source |
string |
The source of the media asset. |
oss |
| Title |
string |
The title of the media asset. |
title标题 |
| Description |
string |
The description of the media asset. |
description |
| Category |
string |
The category of the media asset. |
video |
| MediaTags |
string |
The tags of the media asset. |
sticker-daily |
| CoverURL |
string |
The thumbnail URL of the media asset. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires= |
| UserData |
string |
The user data. |
userData |
| Snapshots |
string |
The snapshots of the media asset. |
null |
| Status |
string |
The status of the media asset. |
Normal |
| TranscodeStatus |
string |
The transcoding status of the media asset. |
Init |
| CreateTime |
string |
The time when the media asset was created. |
2021-01-08T16:52:04Z |
| ModifiedTime |
string |
The time when the media asset was last modified. |
2021-01-08T16:52:04Z |
| DeletedTime |
string |
The time when the media asset was deleted. |
2021-01-08T16:52:04Z |
| FileInfoList |
array<object> |
Informasi file. |
|
|
array<object> |
|||
| FileBasicInfo |
object |
The basic information of the file, such as the duration and size. |
|
| FileName |
string |
The file name. |
example.mp4 |
| FileStatus |
string |
The file status. |
Normal |
| FileType |
string |
The file type. |
source_file |
| FileSize |
string |
The file size. Unit: bytes. |
338990717 |
| FileUrl |
string |
The Object Storage Service (OSS) URL of the file. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires= |
| Region |
string |
The region in which the file resides. |
cn-shanghai |
| FormatName |
string |
The container format. |
mov,mp4,m4a,3gp,3g2,mj2 |
| Duration |
string |
The duration. |
10.040000 |
| Bitrate |
string |
The bitrate. |
270112.12 |
| Width |
string |
The width. |
1920 |
| Height |
string |
The height. |
1080 |
| NextToken |
string |
Posisi tempat pemanggilan saat ini mulai membaca. Nilai kosong menunjukkan bahwa semua data telah dibaca. |
8EqYpQbZ6Eh7+Zz8DxVYoQ== |
| MaxResults |
integer |
Jumlah maksimum catatan yang dikembalikan dalam permintaan ini. |
2 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "******B7-7F87-4792-BFE9-63CD21******",
"TotalCount": 2,
"MediaInfos": [
{
"MediaId": "****019b82e24b37a1c2958dec38****",
"MediaBasicInfo": {
"MediaId": "****019b82e24b37a1c2958dec38****",
"InputURL": "https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4",
"MediaType": "video",
"BusinessType": "general",
"Source": "oss",
"Title": "title标题",
"Description": "description",
"Category": "video",
"MediaTags": "sticker-daily",
"CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"UserData": "userData",
"Snapshots": "null",
"Status": "Normal",
"TranscodeStatus": "Init",
"CreateTime": "2021-01-08T16:52:04Z",
"ModifiedTime": "2021-01-08T16:52:04Z",
"DeletedTime": "2021-01-08T16:52:04Z"
},
"FileInfoList": [
{
"FileBasicInfo": {
"FileName": "example.mp4",
"FileStatus": "Normal",
"FileType": "source_file",
"FileSize": "338990717",
"FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"Region": "cn-shanghai",
"FormatName": "mov,mp4,m4a,3gp,3g2,mj2",
"Duration": "10.040000",
"Bitrate": "270112.12",
"Width": "1920",
"Height": "1080"
}
}
]
}
],
"NextToken": "8EqYpQbZ6Eh7+Zz8DxVYoQ==",
"MaxResults": 2
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.