Adds a default transcoding configuration.
Usage notes
You must obtain the customer master key (CMK) in Key Management Service (KMS) before you call this operation to add a default transcoding configuration. Only standard transcoding templates and Narrowband HD™ transcoding templates are supported for this operation.
QPS limit
You can call this operation up to 30 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | AddLiveStreamTranscode | The operation that you want to perform. Set the value to AddLiveStreamTranscode. |
Domain | String | Yes | example.com | The main streaming domain. |
App | String | Yes | liveApp**** | The name of the application to which the live stream belongs.
Note If you configure a transcoding template for which App is set to an asterisk (*), the transcoding template is used only if no transcoding template for which App is set to the same value as the application name specified in the ingest URL exists. |
Template | String | Yes | lsd | The transcoding template ID. Valid values:
|
EncryptParameters | String | No | {"EncryptType": "aliyun", "KmsKeyID":"afce5722-81d2-43c3-9930-7601da11****","KmsKeyExpireInterval":"3600"} | The encryption settings. The value must be a JSON string that includes the following fields:
|
Lazy | String | No | yes | Specifies whether to enable triggered transcoding. Valid values:
|
Response parameters
Parameter |
Type |
Example |
Description |
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 | The request ID. |
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=AddLiveStreamTranscode
&App=liveApp****
&Domain=example.com
&Template=lsd
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<AddLiveStreamTranscodeResponse>
<RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
</AddLiveStreamTranscodeResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"AddLiveStreamTranscodeResponse" : {
"RequestId" : "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
}
Error codes
For a list of error codes, see Service error codes.