Récupère toutes les ressources multimédias liées au projet de montage actuel.
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
|
ice:GetEditingProjectMaterials |
get |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| ProjectId |
string |
Oui |
L'identifiant du projet de montage en ligne. |
*****fb2101cb318***** |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Schéma de la réponse. |
||
| RequestId |
string |
L'identifiant de la requête. |
******89-C21D-4B78-AE24-3788B8****** |
| ProjectId |
string |
L'identifiant du projet. |
*****67ae06542b9b93e0d1c387***** |
| MediaInfos |
array<object> |
Collection des ressources multimédias correspondantes. |
|
|
array<object> |
|||
| MediaId |
string |
L'identifiant de la ressource multimédia. |
*****64623a94eca8516569c8fe***** |
| MediaBasicInfo |
object |
Informations de base sur la ressource multimédia. |
|
| MediaId |
string |
ID of the media asset. |
*****64623a94eca8516569c8f***** |
| InputURL |
string |
URL of the media asset in the source system. |
http://bucket.oss-cn-shanghai.aliyuncs.com/file.mp4 |
| MediaType |
string |
Media type of the asset. |
video |
| BusinessType |
string |
Business type of the media asset. |
general |
| Source |
string |
Source of the media asset. |
oss |
| Title |
string |
Title of the media asset. |
file.mp4 |
| Description |
string |
Description of the media asset. |
sample_description |
| Category |
string |
Category of the media asset. |
video |
| MediaTags |
string |
Tags associated with the media asset. |
tag1 |
| CoverURL |
string |
URL of the thumbnail image. |
http://sample-bucket.oss-cn-shanghai.aliyuncs.com/sample-corver.jpg?Expires=1628670610&OSSAccessKeyId=AK&Signature=signature |
| UserData |
string |
User-defined data. |
userData |
| Snapshots |
string |
Thumbnail images. |
null |
| Status |
string |
Status of the resource. |
Normal |
| TranscodeStatus |
string |
Status of the transcoding task. Valeurs valides :
|
Init |
| CreateTime |
string |
Time when the media asset was created. |
2020-12-26T04:11:08Z |
| ModifiedTime |
string |
Time when the media asset was last modified. |
2020-12-26T04:11:08Z |
| DeletedTime |
string |
Time when the media asset was deleted. |
2020-12-26T04:11:08Z |
| SpriteImages |
string |
Sprite image. |
null |
| FileInfoList |
array<object> |
Informations sur les fichiers. |
|
|
array<object> |
|||
| FileBasicInfo |
object |
Basic file information, such as duration and size. |
|
| FileName |
string |
Name of the file. |
example.mp4 |
| FileStatus |
string |
Status of the file. |
Normal |
| FileType |
string |
Type of the file. |
source_file |
| FileSize |
string |
Size of the file, in bytes. |
30611502 |
| FileUrl |
string |
OSS URL of the file. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires= |
| Region |
string |
Region where the file is stored. |
cn-shanghai |
| FormatName |
string |
Container format. |
mov,mp4,m4a,3gp,3g2,mj2 |
| Duration |
string |
Duration of the file. |
216.206667 |
| Bitrate |
string |
Bitrate of the file. |
1132.68 |
| Width |
string |
Width of the video. |
960 |
| Height |
string |
Height of the video. |
540 |
| LiveMaterials |
array<object> |
Ressources multimédias associées aux flux en direct. |
|
|
object |
|||
| AppName |
string |
Le nom de l'application de diffusion en direct. |
testrecord |
| StreamName |
string |
Le nom du flux en direct. |
testrecord |
| DomainName |
string |
Le nom de domaine de diffusion en direct. |
test.alivecdn.com |
| LiveUrl |
string |
L'URL de diffusion du flux en direct. |
rtmp://test.alivecdn.com/testrecord/teststream |
| ProjectMaterials |
array |
Ressources multimédias associées au projet de montage. Une fois qu'un flux en direct se termine, il est lié à un projet de montage standard. |
*****9b145c5cafc2e057304fcd***** |
|
string |
L'identifiant du projet de montage standard associé au projet de montage en direct. |
*****c38767ae06542b9b93e0d1***** |
Exemples
JSON format
{
"RequestId": "******89-C21D-4B78-AE24-3788B8******",
"ProjectId": "*****67ae06542b9b93e0d1c387*****",
"MediaInfos": [
{
"MediaId": "*****64623a94eca8516569c8fe*****",
"MediaBasicInfo": {
"MediaId": "*****64623a94eca8516569c8f*****",
"InputURL": "http://bucket.oss-cn-shanghai.aliyuncs.com/file.mp4",
"MediaType": "video",
"BusinessType": "general",
"Source": "oss",
"Title": "file.mp4",
"Description": "sample_description",
"Category": "video",
"MediaTags": "tag1",
"CoverURL": "http://sample-bucket.oss-cn-shanghai.aliyuncs.com/sample-corver.jpg?Expires=1628670610&OSSAccessKeyId=AK&Signature=signature",
"UserData": "userData",
"Snapshots": "null",
"Status": "Normal",
"TranscodeStatus": "Init",
"CreateTime": "2020-12-26T04:11:08Z",
"ModifiedTime": "2020-12-26T04:11:08Z",
"DeletedTime": "2020-12-26T04:11:08Z",
"SpriteImages": "null"
},
"FileInfoList": [
{
"FileBasicInfo": {
"FileName": "example.mp4",
"FileStatus": "Normal",
"FileType": "source_file",
"FileSize": "30611502",
"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": "216.206667",
"Bitrate": "1132.68",
"Width": "960",
"Height": "540"
}
}
]
}
],
"LiveMaterials": [
{
"AppName": "testrecord",
"StreamName": "testrecord",
"DomainName": "test.alivecdn.com",
"LiveUrl": "rtmp://test.alivecdn.com/testrecord/teststream"
}
],
"ProjectMaterials": [
"*****c38767ae06542b9b93e0d1*****"
]
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter \ is not valid. | |
| 404 | ProjectNotFound | The specified project not found |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.