http-streaming icon indicating copy to clipboard operation
http-streaming copied to clipboard

Player stalls when mediaIndex is less than 0 at live mode within segment-loader.js

Open suggestedfixes opened this issue 5 years ago • 1 comments

This occurs when the computed mediaIndex is negative in checkBuffer_ in segment-loader.js https://github.com/videojs/http-streaming/blob/main/src/segment-loader.js#L1189 As a result, the player stalls. This is likely due to server-side expiring items not currently on the playlist. Proposed fix:

if (mediaIndex !== null) {
  mediaIndex = Math.max(0, mediaIndex)
  ...
}

suggestedfixes avatar Aug 17 '20 06:08 suggestedfixes

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 17 '20 20:10 stale[bot]