Creates transcoding configurations for a streaming domain.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes AddLiveStreamTranscode

The operation that you want to perform. Set the value to AddLiveStreamTranscode.

App String Yes testApp

The name of the application to which the live stream belongs.

Domain String Yes

The main streaming domain.

Template String Yes lsd

The transcoding template. Valid values:

  • lld, lsd, lhd, and lud: standard-quality templates.
  • ld, sd, hd, and ud: Narrowband HD™ transcoding templates.
RegionId String No cn-shanghai

The ID of the region where the streaming domain resides.

EncryptParameters String No {"EncryptType": "aliyun", "KmsKeyID":"afce5722-81d2-43c3-9930-7601da11****","KmsKeyExpireInterval":"3600"}

The encryption configurations. The value is a JSON-formatted string. The following fields are included in the syntax:

  • EncryptType: the type of the encryption. The value is aliyun.
  • KmsKeyID: the ID of the customer master key (CMK) in Key Management Service (KMS).
  • KmsKeyExpireInterval: the validity period of the encryption key. Valid values: 60 to 3600. Unit: seconds.
Lazy String No 1

This parameter is reserved.

Response parameters

Parameter Type Example Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request.


Sample requests

http(s):// Action=AddLiveStreamTranscode
&EncryptParameters={"EncryptType": "aliyun", "KmsKeyID":"afce5722-81d2-43c3-9930-7601da11****","KmsKeyExpireInterval":"3600"}
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.