74845780 by BCJwhisenant

added more tests for manifest parsing

the "missing extinf" test currently blows up the test suite :)
1 parent 58c7ad86
{
"allowCache": true,
"mediaSequence": 1,
"playlistType":"VOD",
"segments": [
{
"duration": 6.64,
"timeRange": {
"end": 6.64,
"start": 0
},
"uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts"
},
],
"targetDuration": 8,
"totalDuration": 6.64
}
#EXTM3U
#EXT-X-PLAYLIST-TYPE:STRING
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:8
#EXTINF:6.640,{}
/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts
#EXT-X-ENDLIST
{
"allowCache": true,
"mediaSequence": 0,
"playlistType": "VOD",
"segments": [
{
"duration": 10,
"timeRange": {
"end": 10,
"start": 0
},
"uri": "/test/ts-files/zencoder/gogo/00001.ts"
},
],
"totalDuration": 10
}
#EXTM3U
#ZEN-TOTAL-DURATION:50
#EXT-X-TARGETDURATION:-10
#EXTINF:10,
/test/ts-files/zencoder/gogo/00001.ts
#EXT-X-ENDLIST
{
"allowCache": true,
"mediaSequence": 0,
"playlistType": "VOD",
"segments": [
{
"duration": 10,
"timeRange": {
"end": 10,
"start": 0
},
"uri": "/test/ts-files/zencoder/gogo/00001.ts"
},
{
"duration": 10,
"timeRange": {
"end": 20,
"start": 10
},
"uri": "/test/ts-files/zencoder/gogo/00002.ts"
},
{
"duration": 10,
"timeRange": {
"end": 30,
"start": 20
},
"uri": "/test/ts-files/zencoder/gogo/00003.ts"
},
{
"duration": 10,
"timeRange": {
"end": 40,
"start": 30
},
"uri": "/test/ts-files/zencoder/gogo/00004.ts"
},
{
"duration": 10,
"timeRange": {
"end": 50,
"start": 40
},
"uri": "/test/ts-files/zencoder/gogo/00005.ts"
},
],
"targetDuration": 10,
"totalDuration": 30
}
#EXTM3U
#ZEN-TOTAL-DURATION:50
#EXT-X-TARGETDURATION:10
#EXTINF:10,
/test/ts-files/zencoder/gogo/00001.ts
#EXTINF:10,
/test/ts-files/zencoder/gogo/00002.ts
#EXTINF:10,
/test/ts-files/zencoder/gogo/00003.ts
#EXT-X-ENDLIST
#EXTINF:10,
/test/ts-files/zencoder/gogo/00004.ts
#EXTINF:10,
/test/ts-files/zencoder/gogo/00005.ts
{
"allowCache": true,
"mediaSequence": 0,
"playlistType":"VOD",
"segments": [
{
"duration": 10.0,
"timeRange": {
"end": 10.0,
"start": 0
},
"uri": "/test/ts-files/zencoder/gogo/00001.ts"
},
],
"targetDuration": 10,
"totalDuration": 10.0
}
#ZEN-TOTAL-DURATION:10
#EXT-X-TARGETDURATION:10
#EXTINF:10,
/test/ts-files/zencoder/gogo/00001.ts
#EXT-X-ENDLIST
{
"allowCache": true,
"mediaSequence": 0,
"playlistType": "VOD",
"segments": [
{
"duration": 10,
"timeRange": {
"end": 10,
"start": 0
},
"uri": "hls_450k_video.ts"
},
{
"uri": "hls_450k_video.ts"
},
{
"duration": 5,
"timeRange": {
"end": 30,
"start": 20
},
"uri": "hls_450k_video.ts"
},
],
"targetDuration": 10,
"totalDuration": 30
}
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:10
hls_450k_video.ts
hls_450k_video.ts
#EXTINF:10,
hls_450k_video.ts
#EXT-X-ENDLIST
{
"allowCache": true,
"mediaSequence": 17,
"playlistType":"VOD",
"segments": [
{
"duration": 6.64,
"timeRange": {
"end": 6.64,
"start": 0
},
"uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts"
},
],
"targetDuration": 8,
"totalDuration": 6.64
}
#EXTM3U
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MEDIA-SEQUENCE:17
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:8
#EXTINF:6.640,{}
/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts
#EXT-X-ENDLIST