All Products
Search
Document Center

ApsaraVideo Live:UpdateLiveStreamTranscode

更新時間:Jul 15, 2024

Updates 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 update a 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.

Debugging

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 UpdateLiveStreamTranscode

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

Domain String Yes example.com

The main streaming domain, which cannot be modified.

App String Yes liveApp****

The name of the application to which the live stream belongs, which cannot be modified.

Template String Yes lsd

The transcoding template ID, which cannot be modified.

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:

  • EncryptType: the encryption type. Set the value to aliyun.
  • KmsKeyID: the ID of the CMK in KMS.
  • KmsKeyExpireInterval: the rotation period of the CMK. Valid values: 60 to 3600. Unit: seconds.

    Note If digital rights management (DRM) encryption is used, KmsKeyID cannot be modified.

Lazy String No yes

Specifies whether to enable triggered transcoding. Valid values:

  • yes: enables triggered transcoding.
  • no: disables triggered transcoding.

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=UpdateLiveStreamTranscode
&Domain=example.com
&App=liveApp****
&Template=lsd
&EncryptParameters={"EncryptType": "aliyun", "KmsKeyID":"afce5722-81d2-43c3-9930-7601da11****","KmsKeyExpireInterval":"3600"}
&Lazy=yes
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<UpdateLiveStreamTranscodeResponse>
    <RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
</UpdateLiveStreamTranscodeResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}

Error codes

For a list of error codes, see Service error codes.