All Products
Search
Document Center

ApsaraVideo Live:UpdateLivePullStreamInfoConfig

更新時間:Jun 12, 2024

Modifies the stream pulling configurations of a live stream.

Usage notes

This operation is applicable to regular stream pulling. This operation updates stream pulling information such as the rigin URL of the live stream, start time, and end time.

Note After this operation is complete, ApsaraVideo Live uses updated configurations for regular stream pulling. Make sure that your configuration changes do not affect your business application.

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 limits.

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 UpdateLivePullStreamInfoConfig

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

DomainName String Yes example.com

The domain name used for stream pulling. It is the main streaming domain.

AppName String Yes liveApp****

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

StreamName String Yes liveStream****

The name of the live stream.

SourceUrl String Yes rtmp://guide.aliyundoc.com/liveApp****/liveStream****;rtmp://developer.aliyundoc.com/liveApp****/liveStream****

The complete URL of the origin server of the live stream. If you specify multiple origin URLs, separate them with semicolons (;).

StartTime String Yes 2017-12-21T08:00:00Z

The time when stream pulling starts.

The time range specified by the StartTime and EndTime parameters cannot exceed 7 days. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

EndTime String Yes 2017-12-22T08:00:00Z

The time when stream pulling ends.

The time range specified by the StartTime and EndTime parameters cannot exceed 7 days. The time specified by the EndTime parameter must be later than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

Response parameters

Parameter

Type

Example

Description

RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CF8

The request ID.

Examples

Sample requests

http(s)://live.aliyuncs.com/?Action=UpdateLivePullStreamInfoConfig
&AppName=liveApp****
&DomainName=example.com
&EndTime=2017-12-22T08:00:00Z
&SourceUrl=rtmp://guide.aliyundoc.com/liveApp****/liveStream****;rtmp://developer.aliyundoc.com/liveApp****/liveStream****
&StartTime=2017-12-21T08:00:00Z
&StreamName=liveStream****
&<Common request parameters>

Sample success responses

XML format

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

<UpdateLivePullStreamInfoConfigResponse>
    <RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CF8</RequestId>
</UpdateLivePullStreamInfoConfigResponse>

JSON format

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

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

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidStartTime.Malformed Specified StartTime is malformed. The StartTime parameter is malformed.
400 InvalidEndTime.Malformed Specified EndTime is malformed. The EndTime parameter is malformed.
400 InvalidEndTime.Mismatch Specified end time does not math the specified start time. The end time does not match the start time. Check whether the value of the EndTime parameter matches.

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

Special error codes

Error code

Error message

HTTP status code

Description

InternalError

The request processing has failed due to some unknown error.

500

An unknown error occurred.

InvalidDomain.NotFound

The domain provided does not exist in our records.

404

The domain name is not found within your Alibaba Cloud account.

IllegalOperation

Illegal domain operate is not permitted.

403

The current operation is not supported because, for example, the specified domain name is not a domain name in ApsaraVideo Live.

Duration.Exceed

Duration between StartTime and EndTime is too long.

400

The time range specified by the StartTime and EndTime parameters exceeds the limit.