Added streamlock to disable refreshNextTimer() while streaming. Fixed bug in HLS Livestream Media Handler.
This commit is contained in:
parent
dd00a11b92
commit
a927b31919
2 changed files with 21 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue