All Products
Search
Document Center

ApsaraVideo Live:UpdateLivePackageConfig

更新時間:Jul 26, 2024

Updates a live stream encapsulation configuration.

Usage notes

You can call this operation to update a live stream encapsulation configuration. The update takes effect only after you re-ingest the stream.

QPS limit

You can call this operation up to 300 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 UpdateLivePackageConfig

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

DomainName String Yes example.com

The main streaming domain.

AppName String Yes AppName

The application name. A value of * specifies that all applications are matched.

StreamName String Yes StreamName

The stream name. A value of * specifies that all streams under the application are matched.

Protocol String Yes HLS_CMAF

The streaming protocol and encapsulation format. Valid values:

  • HLS_CMAF
  • LLHLS_TS

    (low latency)

  • LLHLS_CMAF (low latency)
  • DASH_CMAF
  • HLSDASH_CMAF
SegmentNum Integer Yes 3

The number of segments. Valid values: 3 to 10.

SegmentDuration Integer Yes 5

The segment length. Unit: seconds.

  • If Protocol is set to HLS_CMAF, the valid values of this parameter are 1 to 10.
  • If Protocol is set to LLHLS_TS or LLHLS_CMAF, the valid values of this parameter are 1 to 2.
PartDuration Integer No 350

The part length. Unit: milliseconds.

Note This parameter is required if Protocol is set to LLHLS_TS or LLHLS_CMAF.
  • If the value of SegmentDuration is 1, the valid values of this parameter are 100 to 500.
  • If the value of SegmentDuration is 2, the valid values of this parameter are 100 to 1000.
IgnoreTranscode Boolean No true

Specifies whether to ignore the transcoded stream. Valid values:

  • true (default)
  • false

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=UpdateLivePackageConfig
&DomainName=example.com
&AppName=AppName
&StreamName=StreamName
&Protocol=HLS_CMAF
&SegmentNum=3
&SegmentDuration=5
&PartDuration=350
&IgnoreTranscode=true
&<Common request parameters>

Sample success responses

XML format

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

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

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.