Consulte la liste des ressources multimédias de la bibliothèque multimédia publique répondant aux conditions spécifiées. Un maximum de 100 ressources multimédias peuvent être renvoyées.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| MediaTagId |
string |
Non |
La balise multimédia. Toutes les ressources multimédias contenant la balise multimédia spécifiée sont renvoyées. Valeurs valides : |
sticker-atmosphere |
| NextToken |
string |
Non |
Le jeton de pagination utilisé dans la requête suivante pour récupérer une nouvelle page de résultats. Vous n'avez pas besoin de spécifier ce paramètre pour la première requête. Vous devez spécifier le jeton obtenu lors de la requête précédente comme valeur de NextToken. |
pSa1SQ0wCe5pzVrQ6mWZEw== |
| MaxResults |
integer |
Non |
Le nombre maximal d'entrées à renvoyer. |
5 |
| PageNo |
integer |
Non |
Le numéro de page. Valeur par défaut : 1. |
1 |
| PageSize |
integer |
Non |
Le nombre d'entrées par page. Valeur par défaut : 10. Valeur maximale : 100. |
10 |
| IncludeFileBasicInfo |
boolean |
Non |
Indique si les informations de base de la ressource multimédia doivent être renvoyées. |
true |
| BusinessType |
string |
Non |
Le type d'activité de la ressource multimédia. Valeurs valides : |
sticker |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Les paramètres de réponse. |
||
| RequestId |
string |
L'identifiant de la requête. |
******B7-7F87-4792-BFE9-63CD21****** |
| TotalCount |
integer |
Le nombre total de ressources multimédias répondant aux conditions spécifiées. |
2 |
| MediaInfos |
array<object> |
Les ressources multimédias répondant aux conditions spécifiées. |
|
|
array<object> |
|||
| MediaId |
string |
L'identifiant de la ressource multimédia. |
****019b82e24b37a1c2958dec38**** |
| MediaBasicInfo |
object |
Les informations de base de la ressource multimédia. |
|
| 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. |
My video 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> |
Les informations de fichier de la ressource multimédia. |
|
|
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 |
Un jeton de pagination. Il peut être utilisé dans la requête suivante pour récupérer une nouvelle page de résultats. Si NextToken est vide, il n'y a pas de page suivante. |
8EqYpQbZ6Eh7+Zz8DxVYoQ== |
| MaxResults |
integer |
Le nombre maximal d'entrées renvoyées. |
2 |
Exemples
JSON format
{
"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": "My video 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
}
Codes d'erreur
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.