Submits a job to generate an M3U8 file with a video tracing watermark.
Operation description
-
Before you call this operation, you must submit a job to process the video's AB stream to obtain its media ID, which is a required input for this operation.
-
The digital watermark feature is available only in the China (Shanghai) and China (Beijing) regions.
-
This is an asynchronous API. After you submit a job, the system returns a job ID and queues it for background processing. You will receive the job result through a callback notification. You can also call the Query video trace watermark m3u8 job operation to query the job's status.
-
The signature authentication for the M3U8 file generated by the job is valid for 24 hours after the job completes. After the signature authentication expires, you can no longer retrieve the watermark information for the job. To retrieve the information again, you must submit a new job.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:SubmitTraceM3u8Job |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaId |
string |
Yes |
The media ID of the processed AB stream. You can obtain this ID from the response of the operation that submits the AB stream processing job. |
437bd2b516ffda105d07b12a9a82**** |
| Output |
string |
Yes |
The OSS location of the output M3U8 file. Note
The OSS bucket must be in the same region as your MPS service. |
{"Bucket":"exampleBucket","Location":"oss-cn-shanghai","Object":"out.m3u8"} |
| Trace |
string |
Yes |
The trace watermark information. |
今天星期一 |
| KeyUri |
string |
No |
The key server URI. |
https://cipher.abc.com |
| Params |
string |
No |
The parameters for the watermark job, specified as a JSON string. The following parameters are supported:
|
{"m3u8Type":"v1"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
DEB915C5-D001-5C17-AF65-FF8A65DFE432 |
| Data |
object |
The returned data. |
|
| JobId |
string |
The job ID. |
bfb786c639894f4d80648792021e**** |
| Message |
string |
The response message. |
ok |
Examples
Success response
JSON format
{
"RequestId": "DEB915C5-D001-5C17-AF65-FF8A65DFE432",
"Data": {
"JobId": "bfb786c639894f4d80648792021e****"
},
"Message": "ok"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.