mangui / flashls

HLS Flash Plugin/Player (Chromeless,OSMF,FlowPlayer,mediaelement.js,video.js,Clappr)
http://www.flashls.org
Mozilla Public License 2.0
751 stars 264 forks source link

Multiple Playlist M3U8 level onto m3u8 #109

Closed movewho closed 10 years ago

movewho commented 10 years ago

Hi, mangui, I have a problem with m3u8 playlist. I have a playlist m3u8:

EXTM3U

EXT-X-VERSION:3

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=700000,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=480x270

list_1.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1000000,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=640x360

list_2.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1500000,CODECS="avc1.77.31,mp4a.40.2",RESOLUTION=800x450

list_3.m3u8

In list_1.m3u8:

EXTM3U

EXT-X-VERSION:3

EXT-X-TARGETDURATION:13

EXT-X-MEDIA-SEQUENCE:0

EXTINF:12.137,

list_1_001.ts

EXTINF:11.637,

list_1_002.ts

EXT-X-ENDLIST

In list_2.m3u8:

EXTM3U

EXT-X-VERSION:3

EXT-X-TARGETDURATION:13

EXT-X-MEDIA-SEQUENCE:0

EXTINF:12.137,

list_2_001.ts

EXTINF:11.637,

list_2_002.ts

EXT-X-ENDLIST

But with list_3.m3u8:

EXTM3U

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=6050590

playlist.m3u8?wowzasessionid=228212431

I can play video from level 1 and 2, but when i change to level 3, flashhls can read content into m3u8 (playlist.m3u8) and player can play. How to fix it?
Thanks you.

samek commented 10 years ago

Is that at all valid? To have variant plist inside variant plist?

On 18. okt. 2014, at 10.52, Tran Vu notifications@github.com wrote:

Hi, mangui, I have a problem with m3u8 playlist. I have a playlist m3u8:

EXTM3U

EXT-X-VERSION:3

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=700000,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=480x270

list_1.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1000000,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=640x360

list_2.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1500000,CODECS="avc1.77.31,mp4a.40.2",RESOLUTION=800x450

list_3.m3u8

In list_1.m3u8:

EXTM3U

EXT-X-VERSION:3

EXT-X-TARGETDURATION:13

EXT-X-MEDIA-SEQUENCE:0

EXTINF:12.137,

list_1_001.ts

EXTINF:11.637,

list_1_002.ts

EXT-X-ENDLIST

In list_2.m3u8:

EXTM3U

EXT-X-VERSION:3

EXT-X-TARGETDURATION:13

EXT-X-MEDIA-SEQUENCE:0

EXTINF:12.137,

list_2_001.ts

EXTINF:11.637,

list_2_002.ts

EXT-X-ENDLIST

But with list_3.m3u8:

EXTM3U

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=6050590

playlist.m3u8?wowzasessionid=228212431

I can play video from level 1 and 2, but when i change to level 3, flashhls can read content into m3u8 (playlist.m3u8) and player can play. How to fix it?

Thanks you.

— Reply to this email directly or view it on GitHub.

movewho commented 10 years ago

Hi samek, If loading level wrong, Flashhls can play level before. Which line in code i have edit? Please help me. Thanks

mangui commented 10 years ago

this playlist is not valid, you cannot have variant playlist inside another variant playlist.