All Products
Search
Document Center

Object Storage Service:GetVodPlaylist

Last Updated:Apr 28, 2024

Queries the playlist that is generated by the streams ingested to a specified LiveChannel within a specified period of time.

Request syntax

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

Request headers

Header

Type

Required

Description

ChannelName

String

Yes

The name of an existing LiveChannel.

StartTime

Integer

Yes

The start time of the time range during which the TS files that you want to query are generated, which is a Unix timestamp.

EndTime

Integer

Yes

The end time of the time range during which the TS files that you want to query are generated in the Unix timestamp format.

Note

The value of EndTime must be greater than the value of StartTime. The duration between EndTime and StartTime must be less than one day.

Examples

Sample request

GET /test-channel?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 qn6q**************:77Dv****************

Sample response

HTTP/1.1 200
content-length: 312
server: AliyunOSS
connection: close
etag: "9C6104DD9CF1A0C4D0CFD21F43905D59"
x-oss-request-id: 57BE9A96B92475920B002359
date: Thu, 25 Aug 2016 07:13:26 GMT
Content-Type: application/x-mpegURL
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:13
#EXTINF:7.120,
1543895706266.ts
#EXTINF:5.840,
1543895706323.ts
#EXTINF:6.400,
1543895706356.ts
#EXTINF:5.520,
1543895706389.ts
#EXTINF:5.240,
1543895706428.ts
#EXTINF:13.320,
1543895706468.ts
#EXTINF:5.960,
1543895706538.ts
#EXTINF:6.520,
1543895706561.ts
#EXT-X-ENDLIST

SDK

Java