-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to resume delayed playback when play after pause on live stream #5287
Comments
This comment explains how live HLS streams are played by HLS.js and similar players. The player can continue on resume as long as the HLS playlist has segments where the video was paused or the player has buffered all media (which is no longer in the playlist) between the current time and the live edge. If the segments are gone from the playlist and not buffered, the player has to resync with the "live window" or available segments in the live playlist. |
Could you share example code for this? |
Set video.currentTime = hls.liveSyncPosition; If you'd like to do this after pause, try using the "play" event: video.onplay = () => {
video.currentTime = hls.liveSyncPosition;
}; |
What do you want to do with Hls.js?
I want to resume the delayed playback when play after pause on live stream.
What have you tried so far?
No response
The text was updated successfully, but these errors were encountered: