Mengambil detail pekerjaan editing dan komposisi, seperti status task, timeline, template, dan data.
Deskripsi operasi
Batasan
API ini hanya dapat mengambil data pekerjaan editing dari satu tahun terakhir.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetMediaProducingJob |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
No |
ID pekerjaan produksi media. |
****cdb3e74639973036bc84**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Objek respons. |
||
| RequestId |
string |
ID permintaan. |
****83B7-7F87-4792-BFE9-63CD2137**** |
| MediaProducingJob |
object |
Detail pekerjaan produksi media. |
|
| JobId |
string |
ID pekerjaan. |
****cdb3e74639973036bc84**** |
| ProjectId |
string |
ID proyek. |
****fddd7748b58bf1d47e95**** |
| MediaId |
string |
ID aset media output. |
****0cc6ba49eab379332c5b**** |
| MediaURL |
string |
URL file media output. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example2.mp4 |
| Timeline |
string |
Timeline pekerjaan produksi media. |
{"VideoTracks":[{"VideoTrackClips":[{"MediaId":"****4d7cf14dc7b83b0e801c****"},{"MediaId":"****4d7cf14dc7b83b0e801c****"}]}]} |
| TemplateId |
string |
ID template yang digunakan untuk pekerjaan. |
****6e76134d739cc3e85d3e**** |
| ClipsParam |
string |
Parameter klip dari template yang digunakan untuk pekerjaan. |
{"VideoArray":["****05512043f49f697f7425****","****05512043f49f697f7425****","****05512043f49f697f7425****"]} |
| Duration |
number |
Durasi media output. Penting Parameter ini hanya dikembalikan jika pekerjaan berhasil dan output berupa file audio atau video. |
30.500000 |
| CreateTime |
string |
Waktu dalam UTC saat pekerjaan produksi media dibuat, diformat sebagai |
2020-12-23T13:33:40Z |
| CompleteTime |
string |
Waktu dalam UTC saat pekerjaan produksi media selesai, diformat sebagai |
2020-12-23T13:33:52Z |
| ModifiedTime |
string |
Waktu dalam UTC saat pekerjaan produksi media terakhir dimodifikasi, diformat sebagai |
2020-12-23T13:33:49Z |
| Status |
string |
Status pekerjaan produksi media. Nilai yang valid:
|
Failed |
| Code |
string |
Kode kesalahan pekerjaan produksi media. Penting Parameter ini hanya dikembalikan jika pekerjaan gagal. |
ExceededMaximumValue |
| Message |
string |
Pesan kesalahan pekerjaan produksi media. Penting Parameter ini hanya dikembalikan jika pekerjaan gagal. |
The specified "Width_Height" has exceeded maximum value. |
| VodMediaId |
string |
ID aset media di VOD (Video on Demand). ID ini dikembalikan jika output pekerjaan disimpan di VOD. |
****332c5b0cc6ba49eab379**** |
| UserData |
string |
Data pengguna, dalam format JSON. |
{"NotifyAddress":"http://xx.xx.xxx","Key":"Valuexxx"} |
| SubJobMaterials |
string |
Jika pekerjaan merupakan subtask dari tugas pembuatan video cerdas batch one-click, parameter ini berisi materi subtask, seperti judul dan skrip ucapan. |
{"Title": "标题", "SpeechText": "批量智能一键成片口播文案"} |
| Progress |
integer |
Progres pekerjaan. Nilai yang valid: 0 hingga 100. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "****83B7-7F87-4792-BFE9-63CD2137****",
"MediaProducingJob": {
"JobId": "****cdb3e74639973036bc84****",
"ProjectId": "****fddd7748b58bf1d47e95****",
"MediaId": "****0cc6ba49eab379332c5b****",
"MediaURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example2.mp4",
"Timeline": "{\"VideoTracks\":[{\"VideoTrackClips\":[{\"MediaId\":\"****4d7cf14dc7b83b0e801c****\"},{\"MediaId\":\"****4d7cf14dc7b83b0e801c****\"}]}]}",
"TemplateId": "****6e76134d739cc3e85d3e****",
"ClipsParam": "{\"VideoArray\":[\"****05512043f49f697f7425****\",\"****05512043f49f697f7425****\",\"****05512043f49f697f7425****\"]}",
"Duration": 30.5,
"CreateTime": "2020-12-23T13:33:40Z",
"CompleteTime": "2020-12-23T13:33:52Z",
"ModifiedTime": "2020-12-23T13:33:49Z",
"Status": "Failed",
"Code": "ExceededMaximumValue",
"Message": "The specified \"Width_Height\" has exceeded maximum value.",
"VodMediaId": "****332c5b0cc6ba49eab379****",
"UserData": "{\"NotifyAddress\":\"http://xx.xx.xxx\",\"Key\":\"Valuexxx\"}",
"SubJobMaterials": "{\"Title\": \"标题\", \"SpeechText\": \"批量智能一键成片口播文案\"}",
"Progress": 0
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter \ is not valid. | |
| 404 | JobNotFound | The specified job not found |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.