videojs / videojs-contrib-hls

HLS library for video.js
http://videojs.github.io/videojs-contrib-hls/
Other
2.84k stars 791 forks source link

When m3u8 one of the signals has an error. #1438

Closed WeBBLiu closed 5 years ago

WeBBLiu commented 5 years ago

Description

When one of the signals has an error, Will not be able to switch other bandwidths and can not play, But the signals of other bandwidths are work. Very sure work fine. How to avoid being unable to play, Using html5 player will not have this problem.

The following message appears { video.min.js:12 VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported

VIDEOJS: ERROR: DOMException: Failed to set the 'duration' property on 'MediaSource': The MediaSource's readyState is not 'open'.

}

m3u8 content

EXTM3U

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=150000,RESOLUTION=320x180

/hls-vod/video/150k/T002010_1533_150k.mp4.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=350000,RESOLUTION=426x240

/hls-vod/video/350k/T002010_1533_350k.mp4.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=500000,RESOLUTION=640x360

/hls-vod/video/500k/T002010_1533_500k.mp4.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1200000,RESOLUTION=854x480

/hls-vod/video/1200k/T002010_1533_1200k.mp4.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2000000,RESOLUTION=1280x720

/hls-vod/video/2000k/T002010_1533_2000k.mp4.m3u8

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=128000,CODECS="mp4a.40.2"

/hls-vod/video/audio/T002010_1533.m4a.m3u8

forbesjo commented 5 years ago

Would you be able to provide a source for us to debug this issue? Thanks!