0044-00000018
Updated at:
PutLiveChannel returns an error when PlaylistName in the Target node contains an invalid value.
Problem description
The PlaylistName parameter in the Target node of the PutLiveChannel request body does not end with .m3u8.
Causes
The PlaylistName parameter specifies the name of the generated m3u8 file. It must meet all of the following requirements:
| Requirement | Detail |
|---|---|
| Length | 6–128 characters |
| Suffix | Must end with .m3u8 |
| Allowed characters | No forward slashes (/) |
| Default value | playlist.m3u8 |
Examples
In the following request, PlaylistName is set to abc.text, which does not end with .m3u8.
Failing 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>
</LiveChannelConfiguration>Solutions
Fix the invalid parameter values in the Target node and resubmit the request. The following example shows a valid request:
Valid 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
Is this page helpful?