Merge pull request #466 from videojs/fix-resetsrc
(development branch) fix calling abort on a sourceBuffer whose mediaSource.readyState != open
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -574,7 +574,7 @@ videojs.HlsHandler.prototype.resetSrc_ = function() { | ... | @@ -574,7 +574,7 @@ videojs.HlsHandler.prototype.resetSrc_ = function() { |
574 | this.cancelSegmentXhr(); | 574 | this.cancelSegmentXhr(); |
575 | this.cancelKeyXhr(); | 575 | this.cancelKeyXhr(); |
576 | 576 | ||
577 | if (this.sourceBuffer) { | 577 | if (this.sourceBuffer && this.mediaSource.readyState === 'open') { |
578 | this.sourceBuffer.abort(); | 578 | this.sourceBuffer.abort(); |
579 | } | 579 | } |
580 | }; | 580 | }; | ... | ... |
-
Please register or sign in to post a comment