Mengkueri informasi tentang pekerjaan refresh atau pra-ambil media, seperti status pekerjaan dan kondisi penyaringan.
Deskripsi operasi
You can query the information about all media files or a specific media file in a refresh or prefetch job.
QPS limits
You can call this operation up to 50 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 limits on API operations in ApsaraVideo VoD.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetMediaRefreshJobs |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| MediaRefreshJobId |
string |
Yes |
ID pekerjaan refresh atau pra-ambil. Ini adalah nilai parameter MediaRefreshJobId yang dikembalikan dari pemanggilan operasi RefreshMediaPlayUrls. |
41d465e31957**** |
| MediaId |
string |
No |
ID file media. Ini adalah nilai parameter MediaIds yang Anda tentukan saat memanggil operasi RefreshMediaPlayUrls. Anda hanya dapat menentukan satu ID media. Jika Anda mengosongkan parameter ini, informasi tentang semua file media dalam pekerjaan refresh atau pra-ambil yang ditentukan oleh MediaRefreshJobId akan dikembalikan. Jika Anda menetapkan parameter ini, hanya informasi tentang file media yang ditentukan akan dikembalikan. |
ca3a8f6e4957b658067095869**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The ID of the request. |
25818875-5F78-4AF6-D7393642CA58**** |
| MediaRefreshJobs |
array<object> |
The media refresh or prefetch jobs. |
|
|
object |
The information about the media refresh or prefetch job. |
||
| MediaRefreshJobId |
string |
The ID of the job. |
41d465e31957**** |
| MediaId |
string |
The ID of the media file. |
ca3a8f6e4957b658067095869**** |
| TaskType |
string |
The type of the job. Valid values:
|
Preload |
| FilterPolicy |
string |
The filtering conditions for stream playback. The value is a JSON string. This parameter is used as a request parameter of the RefreshMediaPlayUrls operation. |
{"Formats":"mp4,m3u8", "Definitions":"HD,SD", " StreamType":"video", "ResultType":"Single", " SliceFlag":false, "SliceCount": 3} |
| Status |
string |
The status of the job. Valid values:
|
success |
| SuccessPlayUrls |
string |
The playback URLs that were refreshed or prefetched. |
https://shenzhen.****.aliyuncdn.com/74401a4f546007bf845cd8840****.m3u8,https://shenzhen.****.aliyuncdn.com/24041e7d13582d86604d8****.m3u8 |
| TaskIds |
string |
The IDs of the refresh or prefetch tasks for the playback URLs of media files. Only one URL can be refreshed or prefetched in a task. This value is used in the DescribeVodRefreshTasks operation, which queries the status of refresh or prefetch tasks for playback URLs of media files. |
70422****,9524**** |
| ErrorCode |
string |
The error code. This parameter is returned if the refresh or prefetch task fails. |
PreloadQueueFull |
| ErrorMessage |
string |
The error message. This parameter is returned if the refresh or prefetch task fails. |
Preload queue is full, please try again later! |
| UserData |
string |
The user data that you passed when you submit a refresh or prefetch task. |
{"MessageCallback":{"CallbackURL":"http://example.aliyundoc.com"}, "Extend":{"localId":"xxx","test":"www"}} |
| GmtCreate |
string |
The time when the task was created. |
2022-05-20T08:23:22Z |
| GmtModified |
string |
The time when the task was modified. |
2022-05-21T08:23:22Z |
Contoh
Respons sukses
JSONformat
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"MediaRefreshJobs": [
{
"MediaRefreshJobId": "41d465e31957****",
"MediaId": "ca3a8f6e4957b658067095869****",
"TaskType": "Preload",
"FilterPolicy": "{\"Formats\":\"mp4,m3u8\", \"Definitions\":\"HD,SD\", \" StreamType\":\"video\", \"ResultType\":\"Single\", \" SliceFlag\":false, \"SliceCount\": 3}",
"Status": "success",
"SuccessPlayUrls": "https://shenzhen.****.aliyuncdn.com/74401a4f546007bf845cd8840****.m3u8,https://shenzhen.****.aliyuncdn.com/24041e7d13582d86604d8****.m3u8",
"TaskIds": "70422****,9524****",
"ErrorCode": "PreloadQueueFull",
"ErrorMessage": "Preload queue is full, please try again later!",
"UserData": "{\"MessageCallback\":{\"CallbackURL\":\"http://example.aliyundoc.com\"}, \"Extend\":{\"localId\":\"xxx\",\"test\":\"www\"}}",
"GmtCreate": "2022-05-20T08:23:22Z",
"GmtModified": "2022-05-21T08:23:22Z"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.