All Products
Search
Document Center

Object Storage Service:0044-00000017

Last Updated:Apr 28, 2024

Problem description

The PlaylistName parameter of the Target node in the PutLiveChannel request exceeds the limit in length.

Causes

You initiate a PutLiveChannel request to create a LiveChannel, but specify an invalid value for the PlaylistName parameter of the Target node in the XML request body. This parameter specifies the name of the generated M3U8 file. The value must be 6 to 128 characters in length and must end with .m3u8. The value cannot contain forward slashes (/). Default value: playlist.m3u8.

Examples

For example, you initiate the following request:

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>
        <PlaylistName>xxx...(200 characters omitted)...xxx.m3u8</PlaylistName>
    </Target>
    <Snapshot>
        <RoleName>role_for_snapshot</RoleName>
        <DestBucket>bucketdest</DestBucket>
        <NotifyTopic>notifyTopic</NotifyTopic>
        <Interval>1</Interval>
     </Snapshot>
</LiveChannelConfiguration

An error is returned because the PlaylistName parameter of the Target node in the request exceeds the limit in length.

Solutions

Make sure that the parameters of the Target node in the XML request body are valid. The following code provides a valid sample request:

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>
        <PlaylistName>myplaylist.m3u8</PlaylistName>
    </Target>
    <Snapshot>
        <RoleName>role_for_snapshot</RoleName>
        <DestBucket>snapshotdest</DestBucket>
        <NotifyTopic>snapshotnotify</NotifyTopic>
        <Interval>1</Interval>
     </Snapshot>
</LiveChannelConfiguration

References