Menanyakan snapshot yang ditangkap dengan mengirimkan tugas snapshot atau thumbnail yang dihasilkan oleh sistem saat Anda mengunggah video.
Deskripsi operasi
Jika beberapa snapshot ada untuk satu video, Anda dapat memanggil operasi ini untuk menanyakan informasi tentang snapshot terbaru.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:ListSnapshots |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VideoId |
string |
Yes |
ID video. Anda dapat menggunakan salah satu metode berikut untuk memperoleh ID tersebut:
|
d3e680e618708fbf2cae7cc931**** |
| SnapshotType |
string |
No |
Jenis snapshot yang akan dikembalikan. Nilai yang valid:
|
CoverSnapshot |
| AuthTimeout |
string |
No |
Masa berlaku URL snapshot. Nilai default: 3600. Nilai minimum: 3600. Satuan: detik.
|
3600 |
| PageSize |
string |
No |
Jumlah entri per halaman. Nilai default: 20. Nilai maksimum: 100. |
20 |
| PageNo |
string |
No |
Nomor halaman. Nilai default: 1. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
25818875-5F78-4AF6-D7393642CA58**** |
| MediaSnapshot |
object |
Informasi tentang snapshot. |
|
| CreationTime |
string |
Waktu saat tugas snapshot dibuat. Waktu mengikuti standar ISO 8601 dalam format yyyy-MM-ddTHH:mm:ssZ. Waktu ditampilkan dalam UTC. |
2017-12-20T12:23:45Z |
| Regular |
string |
Aturan yang digunakan untuk menghasilkan URL snapshot. |
http://example.aliyundoc.com/snapshot/sample{SnapshotCount}.jpg |
| Total |
integer |
Jumlah total snapshot. |
100 |
| JobId |
string |
ID tugas snapshot. |
ad90a501b1b9472374ad005046**** |
| Snapshots |
object |
||
| Snapshot |
array<object> |
The details of the snapshot. |
|
|
object |
|||
| Index |
integer |
The index of the snapshot. |
1 |
| Url |
string |
The URL of the snapshot. |
http://example.aliyundoc.com/snapshot/sample00001****.jpg |
Contoh
Respons sukses
JSONformat
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"MediaSnapshot": {
"CreationTime": "2017-12-20T12:23:45Z",
"Regular": "http://example.aliyundoc.com/snapshot/sample{SnapshotCount}.jpg",
"Total": 100,
"JobId": "ad90a501b1b9472374ad005046****",
"Snapshots": {
"Snapshot": [
{
"Index": 1,
"Url": "http://example.aliyundoc.com/snapshot/sample00001****.jpg"
}
]
}
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.