http-streaming
http-streaming copied to clipboard
Player stalls when mediaIndex is less than 0 at live mode within segment-loader.js
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)
...
}
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.