Membuat kueri informasi tentang beberapa file audio atau video sekaligus berdasarkan ID. Informasi yang dikembalikan mencakup judul, deskripsi, durasi, URL thumbnail, status, waktu pembuatan, ukuran, snapshot, kategori, dan tag.
Deskripsi operasi
-
Anda dapat membuat kueri informasi tentang maksimum 20 file audio atau video dalam satu panggilan.
-
Setelah Anda mengunggah file audio atau video, ApsaraVideo VOD menganalisis file sumber. Informasi aset media dihasilkan secara asinkron. Anda dapat mengonfigurasi notifikasi peristiwa untuk peristiwa VideoAnalysisComplete. Setelah Anda menerima notifikasi, Anda dapat memanggil operasi ini untuk membuat kueri informasi audio atau video.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetVideoInfos |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VideoIds |
string |
No |
Daftar ID audio atau video. Pisahkan beberapa ID dengan koma (,). Anda dapat menentukan maksimum 20 ID. Anda dapat memperoleh ID audio atau video dengan cara berikut:
|
7753d144efd8e649c6c45fe0579****,7753d144efd74d6c45fe0570**** |
| ReferenceIds |
string |
No |
Daftar satu atau beberapa ID kustom. Pisahkan beberapa ID dengan koma (,). Anda dapat menentukan maksimum 20 ID. |
123-123,1234-1234 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Respons. |
||
| RequestId |
string |
ID permintaan. |
25818875-5F78-4AF6-D7393642CA58**** |
| NonExistVideoIds |
array |
Daftar ID audio atau video yang tidak ada. |
|
|
string |
Daftar ID audio atau video yang tidak ada. |
["7753d144efd8e649c6c45fe0579****"] |
|
| NonExistReferenceIds |
array |
Daftar ID kustom yang tidak ada. |
|
|
string |
Daftar ID kustom yang tidak ada. |
123-123 |
|
| VideoList |
array<object> |
Daftar informasi audio atau video. |
|
|
object |
Detail file audio atau video. |
||
| StorageLocation |
string |
Alamat penyimpanan file audio atau video. |
out-****.oss-cn-shanghai.aliyuncs.com |
| CreationTime |
string |
Waktu pembuatan file audio atau video. Waktu mengikuti format yyyy-MM-ddTHH:mm:ssZ dalam UTC. |
2017-06-26T05:38:48Z |
| Status |
string |
Status video. Nilai yang valid:
|
Normal |
| CateId |
integer |
ID kategori. |
781111**** |
| VideoId |
string |
ID file audio atau video. |
7753d144efd74d6c45fe0570**** |
| DownloadSwitch |
string |
Menunjukkan apakah fitur unduhan offline diaktifkan. Setelah fitur ini diaktifkan, pengguna seluler dapat menggunakan ApsaraVideo Player untuk menyimpan cache video untuk pemutaran offline. Untuk informasi selengkapnya, lihat Unduhan offline. Nilai yang valid:
|
on |
| Tags |
string |
Tag file audio atau video. Pisahkan beberapa tag dengan koma (,). |
tag1, tag2 |
| ModificationTime |
string |
Waktu terakhir kali file audio atau video dimodifikasi. Waktu mengikuti format yyyy-MM-ddTHH:mm:ssZ dalam UTC. |
2017-06-26T06:38:48Z |
| CateName |
string |
Nama kategori. |
cate1 |
| Description |
string |
Deskripsi file audio atau video. |
Alibaba Cloud VOD video description |
| AppId |
string |
ID aplikasi. |
app-**** |
| Size |
integer |
Ukuran file audio atau video sumber. Satuan: byte. |
453 |
| CoverURL |
string |
URL thumbnail file audio atau video. |
https://example.aliyundoc.com/****.jpg |
| TemplateGroupId |
string |
ID grup template transcoding. |
b4039216985f4312a5382a4ed**** |
| Duration |
number |
Durasi file audio atau video. Satuan: detik. |
120 |
| Title |
string |
Judul file audio atau video. |
Alibaba Cloud VOD Video Title |
| Snapshots |
array |
Array URL snapshot video. |
|
|
string |
Array URL snapshot video. Catatan
Operasi ini hanya mengembalikan data snapshot thumbnail video. Untuk membuat kueri data snapshot normal, sprite, gambar sprite asli, dan snapshot WebVTT yang diambil menggunakan fitur snapshot video, panggil operasi ListSnapshots. |
["http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****","http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27243****",...] |
|
| StorageClass |
string |
Kelas penyimpanan aset media. Nilai yang valid:
|
Standard |
| RestoreStatus |
string |
Status pemulihan aset media. Nilai yang valid:
|
Success |
| RestoreExpiration |
string |
Waktu kedaluwarsa aset media yang dipulihkan. |
2023-03-30T10:14:14Z |
| UserData |
string |
Pengaturan kustom. Ini adalah string JSON yang mendukung pengaturan seperti callback pesan dan akselerasi unggah. Untuk informasi selengkapnya, lihat UserData. |
{"MessageCallback":{"CallbackURL":"http://example.aliyundoc.com"},"Extend":{"localId":"*****","test":"www"}} |
| ReferenceId |
string |
ID kustom. ID hanya boleh berisi huruf kecil, huruf besar, digit, tanda hubung (-), dan garis bawah (_). Panjang ID harus 6 hingga 64 karakter dan harus unik untuk setiap pengguna. |
123-123 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"NonExistVideoIds": [
"[\"7753d144efd8e649c6c45fe0579****\"]"
],
"NonExistReferenceIds": [
"123-123"
],
"VideoList": [
{
"StorageLocation": "out-****.oss-cn-shanghai.aliyuncs.com",
"CreationTime": "2017-06-26T05:38:48Z",
"Status": "Normal",
"CateId": 0,
"VideoId": "7753d144efd74d6c45fe0570****",
"DownloadSwitch": "on",
"Tags": "tag1, tag2",
"ModificationTime": "2017-06-26T06:38:48Z",
"CateName": "cate1",
"Description": "Alibaba Cloud VOD video description",
"AppId": "app-****",
"Size": 453,
"CoverURL": "https://example.aliyundoc.com/****.jpg",
"TemplateGroupId": "b4039216985f4312a5382a4ed****",
"Duration": 120,
"Title": "Alibaba Cloud VOD Video Title",
"Snapshots": [
"[\"http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****\",\"http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27243****\",...]"
],
"StorageClass": "Standard",
"RestoreStatus": "Success",
"RestoreExpiration": "2023-03-30T10:14:14Z",
"UserData": "{\"MessageCallback\":{\"CallbackURL\":\"http://example.aliyundoc.com\"},\"Extend\":{\"localId\":\"*****\",\"test\":\"www\"}}",
"ReferenceId": "123-123"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.