Hls.js: Delayed playback resume with `hls.startLoad()` on live stream

Created on 20 Dec 2016  路  2Comments  路  Source: video-dev/hls.js

Environment

Steps to reproduce
  1. Go to http://osd.mediacdn.ru/issue/.
  2. Hit play and allow playback for some time.
  3. Hit pause button, video event pause will be triggered at this moment, and hls.stopLoad() will be called in the handler.
  4. Wait for a few minutes and hit play button to resume playback, video event play will be triggered at this moment, and hls.startLoad() will be called in the handler. The attempt to load fragment will fail(404) cause it doesn't exist anymore. Hls.js will start to continuously reload playlist, causing delayed playback resume.
  5. Bug doesn't happen in 100% of cases, so probably it will require 2-3 attempts to reproduce it.
Expected behavior

Up-to-date level playlist being loaded after hls.startLoad() is called and playback resumes in a few seconds.

Actual behavior

Playlists being loaded after hls.startLoad() are outdated, playlists are reloaded for quite a long time until the one with relevant fragments is reached.

Console output

Available here

Bug

Most helpful comment

I'm still seeing the same issue on a live broadcast using version 0.7.3. After pausing the playback using stopLoad and waiting long enough, any attempts to resume playback using startLoad only allow playback up to whatever fragment was fetched before the pause event was issued. Once that point is reached, the same chunklist file is just fetched over and over and the stream never refreshes.

Are there other config options that need to be set to make this work? Or should we be passing an explicit value to startLoad to force a refresh of the latest playlist?

All 2 comments

fixed

I'm still seeing the same issue on a live broadcast using version 0.7.3. After pausing the playback using stopLoad and waiting long enough, any attempts to resume playback using startLoad only allow playback up to whatever fragment was fetched before the pause event was issued. Once that point is reached, the same chunklist file is just fetched over and over and the stream never refreshes.

Are there other config options that need to be set to make this work? Or should we be passing an explicit value to startLoad to force a refresh of the latest playlist?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phillydogg28 picture phillydogg28  路  4Comments

ronag picture ronag  路  4Comments

osamay picture osamay  路  4Comments

PeterBassemYoussef picture PeterBassemYoussef  路  3Comments

shalommeoded picture shalommeoded  路  3Comments