Added streamlock to disable refreshNextTimer() while streaming. Fixed bug in HLS Livestream Media Handler.

This commit is contained in:
rainbow napkin 2025-05-12 20:48:53 -04:00
parent dd00a11b92
commit a927b31919
2 changed files with 21 additions and 15 deletions

View file

@ -605,10 +605,15 @@ class hlsLiveStreamHandler extends hlsBase{
//Call derived method
super.onSeek(event);
//If we stopped playing the video
if(this.video == null){
//Don't worry about it
return;
}
//Calculate distance to end of stream
const difference = this.video.duration - this.video.currentTime;
//If we where buffering under sync lock
if(this.reSync){
//Set reSync to false