Generates a VoD playlist (m3u8 file) for the ts files generated by the streams pushed to a specified LiveChannel in a specified time period.

Request syntax

POST /ChannelName/PlaylistName?vod&endTime=EndTime&startTime=StartTime HTTP/1.1
Date: GMT date
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue

Request elements

Element Description Required
ChannelName Specifies the name of an existing LiveChannel. Yes
PlaylistName Specifies the name of the generated VoD playlist, which must be ended with ".m3u8". Yes
StartTime Specifies the start time of the ts file that you want to query, which is a Unix timestamp. Yes
EndTime Specifies the end time of the ts file that you want to query, which is a Unix timestamp. Yes

Detail analysis

  • The value of EndTime must be later than that of StartTime. The period between the EndTime and StartTime must be shorter than one day.
  • OSS queries all ts files generated by the streams pushed to the LiveChannel in a specified time period, and splices the files into a playlist.

Examples

Request example

POST /test-channel/vod.m3u8?vod&endTime=1472020226&startTime=1472020031 HTTP/1.1
Date: Thu, 25 Aug 2016 07:13:26 GMT
Host: test-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS YJjHKOKWDWINLKXv:ABIigvnLtCHK+7fMHLeRlOUnzv0=

Response example

HTTP/1.1 200
content-length: 0
server: AliyunOSS
connection: close
etag: "9C6104DD9CF1A0C4D0CFD21F43905D59"
x-oss-request-id: 57BE9A96B92475920B002359
date: Thu, 25 Aug 2016 07:13:26 GMT