Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbar42 committed Nov 26, 2017
1 parent 51d664e commit a654fe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/buffer-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ class BufferController extends EventHandler {
if (this.media) {
URL.revokeObjectURL(this._objectUrl);

// clean up video tag src only if it's our own url
// clean up video tag src only if it's our own url. some external libraries might
// hijack the video tag and change its 'src' without destroying the Hls instance first
if (this.media.src === this._objectUrl) {
this.media.removeAttribute('src');
this.media.load();
Expand Down

0 comments on commit a654fe2

Please sign in to comment.