Skip to main content

Config the HLS configuration of a Domain

Modify the HLS configuration of a streaming domain name, including the HLS segment duration and count in playlist m3u8.

Request

Request-Line

POST /lls/v1.0/domain/{domain}/hls

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
domainStringMandatorydomain name.

Request Body

ParameterTypeRequiredDescription
hlsConfigsArrayMandatoryArray of HLS configuratoins of applications. refer to App HLS Configuration Object
Object: HLS Configuration
ParameterTypeRequiredDescription
appStringOptionalapplication name.
hlsSegmentFormatStringMandatoryFormat of HLS segment. valid value is ts, mp4.
hlsSegmentDurationIntegerMandatoryHLS segment duration, in second.
hlsSegmentCountIntegerMandatoryNumber of HLS segments in each M3U8 file

Response

Response Body

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400LLS.Domain.NotFoundDomain name is not found.

Examples

Modify the HLS configuration of a Domain

Request

POST /lls/v1.0/domain/ingest.example.com/hls HTTP/1.1
{
"hlsConfigs": [
{
"app": "appdemo1",
"hlsSegmentFormat": "ts",
"hlsSegmentDuration": 6,
"hlsSegmentCount": 6
},
{
"app": "appdemo2",
"hlsSegmentFormat": "mp4",
"hlsSegmentDuration": 4,
"hlsSegmentCount": 6
}
]
}

Best Practices

Rate Limiting

Rate Limits

Rate limiting is posed upon the API, please kindly check your API calls to ensure complying with the rate limit below:

  • 100 requests per minute
  • 1000 requests per hour