Lấy thông tin job
Mô tả: Truy vấn thông tin một job¶
Phương thức GET¶
URL: https://vms-api.swiftfederation.com/v7.4.0/job/{id}
Yêu cầu (Request)¶
- Header
Content-Type
:application/json; charset=UTF-8
-
Authorization
:Bearer <access_token>
-
Tham số URL
Trường | Bắt buộc | Kiểu dữ liệu | Mô tả |
---|---|---|---|
id |
Có | Long | ID của job cần truy vấn |
Phản hồi (Response)¶
- Header
-
Theo chuẩn HTTP
-
Body
Trường | Bắt buộc | Kiểu dữ liệu | Mô tả |
---|---|---|---|
request_id |
Có | String | ID duy nhất cho yêu cầu hiện tại |
job |
Có | Object | Đối tượng mô tả thông tin chi tiết về job (tham khảo Job Object) |
Ví dụ¶
Yêu cầu¶
GET https://vms-api.swiftfederation.com/v7.4.0/job/24777
Content-Type: application/json; charset=UTF-8
Authorization: Bearer <token>
Phản hồi¶
{
"request_id": "91fbbe26f3cb4f34905a887a231ca8eb.21.16346286427580002",
"job": {
"id": 24777,
"file_name": "s1.mp4",
"status": "Distributed",
"started": 1634628525650,
"ended": 1634628546217,
"origin": [
{
"protocol": "hls",
"manifest": "/20211018/24777/1/2/820/manifest.m3u8",
"playlist": [
{ "preset": "Transmuxing_only", "uri": "/20211018/24777/1/2/820/951/playlist.m3u8" },
{ "preset": "640x360,300kbps", "uri": "/20211018/24777/1/2/820/965/playlist.m3u8" },
{ "preset": "960x540,500kbps", "uri": "/20211018/24777/1/2/820/966/playlist.m3u8" },
{ "preset": "Audio_only", "uri": "/20211018/24777/1/2/820/997/audio_only/playlist.m3u8" }
],
"drm": "aes"
},
{
"protocol": "hls",
"manifest": "/20211018/24777/1/3/820/manifest.m3u8",
"playlist": [
{ "preset": "Transmuxing_only", "uri": "/20211018/24777/1/3/820/951/playlist.m3u8" },
{ "preset": "640x360,300kbps", "uri": "/20211018/24777/1/3/820/965/playlist.m3u8" },
{ "preset": "960x540,500kbps", "uri": "/20211018/24777/1/3/820/966/playlist.m3u8" },
{ "preset": "Audio_only", "uri": "/20211018/24777/1/3/820/997/audio_only/playlist.m3u8" }
],
"drm": "none"
},
{
"protocol": "hls",
"manifest": "/20211018/24777/1/3/918/manifest.m3u8",
"playlist": [
{ "preset": "360p (640x360,300kbps)", "uri": "/20211018/24777/1/3/918/1020/playlist.m3u8" }
],
"drm": "none"
},
{
"protocol": "hls",
"manifest": "/20211018/24777/1/2/918/manifest.m3u8",
"playlist": [
{ "preset": "360p (640x360,300kbps)", "uri": "/20211018/24777/1/2/918/1020/playlist.m3u8" }
],
"drm": "aes"
}
]
}
}
Giải thích thêm:
- status
: Trạng thái hiện tại của job (ví dụ: Distributed
có thể hiểu là đã phân phối xong).
- origin
: Danh sách các output theo giao thức (ví dụ: HLS
) kèm manifest và danh sách các phiên bản được mã hóa với độ phân giải và bitrate khác nhau.
- drm
: Cơ chế mã hóa nội dung (ví dụ: aes
, none
).