videojs / videojs-contrib-hls

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

playback stucked when still downloading ts file, with hls live stream #1318

Closed lgyytm closed 6 years ago

lgyytm commented 6 years ago

video.js : https://unpkg.com/video.js/dist/video.js; videojs-contrib-hls.js: https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js script: window.onload = function () { var player = window.player = videojs('video', { html5: { hls: { // withCredentials: true } } }); player.ready(function () { var hls = window.hls = player .tech({ IWillNotUseThisInPlugins: true }) .hls; }) } src: '//120.55.85.1:8001/proxy_ip120.55.85.1:5112/33T1HZ/KX9001201706.m3u8'

gesinger commented 6 years ago

Hey @lgyytm , I noticed that the stream only has 2 segments in it. The HLS specification requires at least enough segments to cover 3 target durations worth of time: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-6.2.2

The server MUST NOT remove a Media Segment from a Playlist file
   without an EXT-X-ENDLIST tag if that would produce a Playlist whose
   duration is less than three times the target duration.  Doing so can
   trigger playback stalls.
lgyytm commented 6 years ago

thank you