mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-26 13:01:59 -08:00
parent
783fede2cb
commit
337d3d04ff
1 changed files with 6 additions and 0 deletions
|
|
@ -104,6 +104,12 @@ const loadStream = () => {
|
|||
video.play();
|
||||
});
|
||||
|
||||
// when the video is resumed after a manual or forced pause
|
||||
// (i.e. when the window is minimized), restore live streaming.
|
||||
video.onplay = () => {
|
||||
video.currentTime = hls.liveSyncPosition;
|
||||
};
|
||||
|
||||
hls.attachMedia(video);
|
||||
|
||||
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue