Problem description
The PlaylistName field in the Target node of the PutLiveChannel request does not end with .m3u8.
Causes
An invalid value is specified for the PlaylistName parameter in the Target node in the XML body of the PutLiveChannel request. The PlaylistName parameter specifies the name of a generated m3u8 file. The value of the PlaylistName parameter must be 6 to 128 characters in length and must end with .m3u8. The value cannot contain forward slashes (/). The default value of the parameter is 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>abc.text</PlaylistName>
</Target>
<Snapshot>
<RoleName>role_for_snapshot</RoleName>
<DestBucket>bucketdest</DestBucket>
<NotifyTopic>notifyTopic</NotifyTopic>
<Interval>1</Interval>
</Snapshot>
</LiveChannelConfigurationThe error is returned for the preceding request because the PlaylistName parameter in the Target node is set to abc.text, which does not end with .m3u8 and is invalid.
Solutions
Make sure that the parameters in the Target node 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