Problem description
The EndTime parameter in the GetVodPlaylist request is invalid.
Causes
You initiate a GetVodPlaylist request to query playlists that are generated from ingested streams during a specified period of time, but does not specify the EndTime parameter or specify an invalid value for the EndTime parameter. This parameter specifies the end time of the time range during which the TS segments are queried. The value is a Unix timestamp.
Examples
For example, you initiate the following request:
GET /test-channel?vod&endTime=abc&startTime=1472020226 HTTP/1.1
Date: Thu, 25 Aug 2016 07:13:26 GMT
Host: test-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************The value of the EndTime parameter in the request is abc, which is not a valid Unix timestamp. As a result, an error is returned.
Solutions
Specify UNIX timestamps as the values of StartTime and EndTime, and make sure that the value of EndTime is greater than the value of StartTime and that the interval between StartTime and EndTime is less than or equal to one day. The following code provides a valid 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****************