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
Parameter | Type | Required | Description |
---|---|---|---|
domain | String | Mandatory | domain name. |
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
hlsConfigs | Array | Mandatory | Array of HLS configuratoins of applications. refer to App HLS Configuration Object |
Object: HLS Configuration
Parameter | Type | Required | Description |
---|---|---|---|
app | String | Optional | application name. |
hlsSegmentFormat | String | Mandatory | Format of HLS segment. valid value is ts, mp4. |
hlsSegmentDuration | Integer | Mandatory | HLS segment duration, in second. |
hlsSegmentCount | Integer | Mandatory | Number of HLS segments in each M3U8 file |
Response
Response Body
Status Codes, Error Codes and Error Messages
Status Code | Error Code | Error Message |
---|---|---|
400 | LLS.Domain.NotFound | Domain 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