Memperbarui informasi dasar tentang file media.
Deskripsi operasi
The basic information that you can update by calling this operation includes the title, description, and category of a media file. This operation applies to a full update. You must set all the parameters unless you want to replace the value of a specific parameter with a NULL value.
QPS limit
You can call this operation up to 100 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:UpdateMedia |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| MediaId |
string |
Yes |
ID file media yang ingin Anda perbarui informasi dasarnya. Untuk mendapatkan ID file media, Anda dapat log on ke Konsol ApsaraVideo Media Processing (MPS) dan memilih Manajemen media > Daftar Media di panel navigasi sebelah kiri. |
3e1cd21131a94525be55acf65888**** |
| Title |
string |
No |
Judul file media. Mendukung berbagai jenis karakter, seperti huruf dan angka.
|
hello |
| Description |
string |
No |
Deskripsi file media. Mendukung berbagai jenis karakter, seperti huruf dan angka.
|
example description |
| CoverURL |
string |
No |
URL Gambar mini. Parameter ini digunakan untuk menentukan lokasi penyimpanan Gambar mini. Untuk mendapatkan URL, Anda dapat log on ke Konsol MPS dan memilih Alur kerja > Bucket Media di panel navigasi sebelah kiri. Atau, Anda dapat log on ke Konsol OSS dan mengklik Bucket di panel navigasi sebelah kiri.
|
http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/test****.jpg |
| CateId |
integer |
No |
ID kategori tempat file media berada. Nilai harus berupa bilangan bulat.
|
1 |
| Tags |
string |
No |
Tag yang ingin Anda tambahkan ke file media.
|
tag1,tag2 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
6A88246F-C91F-42BD-BABE-DB0DF993F960 |
| Media |
object |
The information about the media file. |
|
| CreationTime |
string |
The time when the media file was created. |
2016-09-14T08:30:33Z |
| CateId |
integer |
The ID of the category to which the media file belongs. |
1 |
| Height |
string |
The height of the media file. |
1080 |
| CensorState |
string |
The review state of the media file. Valid values:
|
Initiated |
| Tags |
object |
||
| Tag |
array |
The information about the tags. |
|
|
string |
The tags that you want to add to the media file. |
tag1,tag2 |
|
| Bitrate |
string |
The bitrate of the media file. |
2659.326 |
| MediaId |
string |
The ID of the media file. |
3e1cd21131a94525be55acf65888**** |
| File |
object |
The information about the input file. |
|
| State |
string |
The state of the input file. Valid values:
|
Normal |
| URL |
string |
The name of the OSS bucket in which the input media file is stored. |
http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com//example-****.mp4 |
| PublishState |
string |
The publishing state of the media file. Valid values:
|
Published |
| Description |
string |
The description of the media file. |
example description |
| Width |
string |
The width of the media file. |
1920 |
| Size |
string |
The size of the media file. |
2647692 |
| CoverURL |
string |
The URL of the thumbnail. |
http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/example-****.jpg |
| RunIdList |
object |
||
| RunId |
array |
The IDs of the media workflow execution instances. |
|
|
string |
The IDs of the media workflow execution instances. |
{"RunId":["47b42486019c4f688bf144c1a6ba****"]} |
|
| Duration |
string |
The duration of the media file. |
7.965000 |
| Fps |
string |
The frame rate of the media file. |
25.0 |
| Title |
string |
The title of the media file. |
hello |
| Format |
string |
The format of the media file. Valid values: mov, mp4, m4a, 3gp, 3g2, and mj2. |
mov |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6A88246F-C91F-42BD-BABE-DB0DF993F960",
"Media": {
"CreationTime": "2016-09-14T08:30:33Z",
"CateId": 1,
"Height": "1080",
"CensorState": "Initiated",
"Tags": {
"Tag": [
"tag1,tag2"
]
},
"Bitrate": "2659.326",
"MediaId": "3e1cd21131a94525be55acf65888****",
"File": {
"State": "Normal",
"URL": "http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com//example-****.mp4"
},
"PublishState": "Published",
"Description": "example description",
"Width": "1920",
"Size": "2647692",
"CoverURL": "http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/example-****.jpg",
"RunIdList": {
"RunId": [
"{\"RunId\":[\"47b42486019c4f688bf144c1a6ba****\"]}"
]
},
"Duration": "7.965000",
"Fps": "25.0",
"Title": "hello",
"Format": "mov"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.