0044-00000015

Updated at:

Description

The FragCount field in the Target node of the PutLiveChannel request is invalid.

Cause

This error occurs because the value of the FragCount parameter in the Target node of your PutLiveChannel request is invalid. The FragCount parameter specifies the number of transport stream (TS) files in an M3U8 file, and its value must be an integer from 1 to 100. If the dump type is HLS, OSS updates the M3U8 file after each TS file is generated. The M3U8 file can contain a maximum number of the most recent TS files, as specified by FragCount.

Sample problems

The following request is an example:

PUT /test-channel?live HTTP/1.1
Date: Wed, 24 Aug 2016 11:11:28 GMT
Content-Length: xxx
Host: test-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="utf-8"?>
<LiveChannelConfiguration>
    <Description />
    <Status>enabled</Status>
    <Target>
        <Type>HLS</Type>
        <FragDuration>2</FragDuration>
        <FragCount>abc</FragCount>
    </Target>
    <Snapshot>
        <RoleName>role_for_snapshot</RoleName>
        <DestBucket>bucketdest</DestBucket>
        <NotifyTopic>notifyTopic</NotifyTopic>
        <Interval>1</Interval>
     </Snapshot>
</LiveChannelConfiguration

The request fails because the value of the FragCount child node is abc. The value must be an integer from 1 to 100.

Solution

Ensure that the parameters in the Target node of the request body are valid. The following code provides an example:

PUT /test-channel?live HTTP/1.1
Date: Wed, 24 Aug 2016 11:11:28 GMT
Content-Length: xxx
Host: test-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="utf-8"?>
<LiveChannelConfiguration>
    <Description />
    <Status>enabled</Status>
    <Target>
        <Type>HLS</Type>
        <FragDuration>2</FragDuration>
        <FragCount>3</FragCount>
    </Target>
    <Snapshot>
        <RoleName>role_for_snapshot</RoleName>
        <DestBucket>snapshotdest</DestBucket>
        <NotifyTopic>snapshotnotify</NotifyTopic>
        <Interval>1</Interval>
     </Snapshot>
</LiveChannelConfiguration

Related documents