Updates a Live-to-VOD configuration.

QPS limit

You can call this operation up to 1,000 times per minute 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 limit on an API operation in ApsaraVideo Live.

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 UpdateLiveRecordVodConfig

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

DomainName String Yes example.com

The main streaming domain.

AppName String Yes testName

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

StreamName String No stream

The name of the live stream.

VodTranscodeGroupId String Yes e2d796d3bb5fd8049d32bff62f94****

The ID of the transcoding template group in ApsaraVideo VOD.

CycleDuration Integer No 300

The duration of the recording period. Unit: seconds. Valid values: 300 to 21600. Default value: 3600.

AutoCompose String No OFF

Specifies whether to enable automatic merging. Valid values:

  • ON: enables automatic merging. If you set this parameter to ON, you must also specify the ComposeVodTranscodeGroupId parameter.
  • OFF: disables automatic merging.
ComposeVodTranscodeGroupId String No *****

The ID of the transcoding template group in ApsaraVideo VOD that is used to transcode the video file, into which the VOD files are automatically merged.

OnDemand Integer No 0

Specifies whether to enable on-demand recording. Valid values:

  • 0 (default): disables on-demand recording.
  • 1: enables on-demand recording by using the HTTP callback method.

Response parameters

Parameter Type Example Description
RequestId String 61C96B9A-F203-4EC5-8E43-CB92E68F67DF

The request ID.

Examples

Sample requests

http(s)://live.aliyuncs.com/?Action=UpdateLiveRecordVodConfig
&DomainName=example.com
&AppName=testName
&StreamName=stream
&VodTranscodeGroupId=e2d796d3bb5fd8049d32bff62f94****
&CycleDuration=300
&AutoCompose=OFF
&ComposeVodTranscodeGroupId=*****
&OnDemand=0
&<Common request parameters>

Sample success responses

XML format

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

<UpdateLiveRecordVodConfigResponse>
    <RequestId>61C96B9A-F203-4EC5-8E43-CB92E68F67DF</RequestId>
</UpdateLiveRecordVodConfigResponse>

JSON format

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

{
  "RequestId" : "61C96B9A-F203-4EC5-8E43-CB92E68F67DF"
}

Error codes

HttpCode Error code Error message Description
400 ConfigAlreadyExists Config has already exist. The error message returned because the configuration already exists.

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