All Products
Search
Document Center

Intelligent Media Services:SubmitTraceM3u8Job

Last Updated:Dec 23, 2025

Submits a job that generates an M3U8 file containing specific trace watermark information.

Operation description

  • Before you call this operation, you must call SubmitTraceAbJob to get the TraceMediaId from its response.
  • This operation is supported only in the China (Shanghai) and China (Beijing) regions.
  • The M3U8 file generated by this job has a signed URL with an authentication validity period of 24 hours, starting from the moment the job is completed. Once the signature expires, you will no longer be able to trace the watermark information using that specific M3U8 file. If you need to use it after expiration, you must call this API again to generate a new M3U8 file.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:SubmitTraceM3u8Jobnone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
TraceMediaIdstringYes

The media ID for the trace watermark. You can obtain this from the response of the SubmitTraceAbJob operation.

437bd2b516ffda105d07b12a9a82****
OutputobjectYes

The OSS URL of the output M3U8 file.

Note The OSS bucket must reside in the same region as the service region.
TypestringYes

The type of the output file. Valid value:

  1. OSS: an OSS object.
OSS
MediastringYes

The OSS path where the output file is saved. You can specify the path in one of the following formats:

1. oss://bucket/object

2. http(s)://bucket.oss-[regionId].aliyuncs.com/object where bucket specifies an OSS bucket that resides in the same region as the job, and object specifies the object path in OSS.

oss://bucket/object
TracestringYes

The specific trace watermark information.

KeyUristringNo

The URI of the key server.

https://cipher.abc.com
ParamsstringNo

Additional parameters for the watermark job, provided as a JSON string. Supported parameter:

  • m3u8Type: The type of M3U8 to generate. Defaults to v1.

    • v1: Generates an M3U8 with absolute paths, playable directly. The signed URL for access is valid for 24 hours. If you need to use it after expiration, you must call this API again.
    • v2: Generates an M3U8 with relative paths. It must be placed in the same directory as the TS segment files to be playable.
{"m3u8Type":"v1"}

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

Dataobject

The data returned.

JobIdstring

The job ID.

bfb786c639894f4d8064879202****
Messagestring

The response message.

ok
RequestIdstring

Id of the request

******11-DB8D-4A9A-875B-275798******

Examples

Sample success responses

JSONformat

{
  "Data": {
    "JobId": "bfb786c639894f4d8064879202****"
  },
  "Message": "ok",
  "RequestId": "******11-DB8D-4A9A-875B-275798******"
}

Error codes

For a list of error codes, visit the Service error codes.