Don't attempt to remove from sourceBuffer if it is updating
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -989,7 +989,7 @@ videojs.HlsHandler.prototype.loadSegment = function(segmentInfo) { | ... | @@ -989,7 +989,7 @@ videojs.HlsHandler.prototype.loadSegment = function(segmentInfo) { |
989 | // Chrome has a hard limit of 150mb of buffer and a very conservative "garbage collector" | 989 | // Chrome has a hard limit of 150mb of buffer and a very conservative "garbage collector" |
990 | // We manually clear out the old buffer to ensure we don't trigger the QuotaExceeded error | 990 | // We manually clear out the old buffer to ensure we don't trigger the QuotaExceeded error |
991 | // on the source buffer during subsequent appends | 991 | // on the source buffer during subsequent appends |
992 | if (this.sourceBuffer) { | 992 | if (this.sourceBuffer && !this.sourceBuffer.updating) { |
993 | // If we have a seekable range use that as the limit for what can be removed safely | 993 | // If we have a seekable range use that as the limit for what can be removed safely |
994 | // otherwise remove anything older than 1 minute before the current play head | 994 | // otherwise remove anything older than 1 minute before the current play head |
995 | if (seekable.length && seekable.start(0) > 0) { | 995 | if (seekable.length && seekable.start(0) > 0) { | ... | ... |
-
Please register or sign in to post a comment