Skip to content

Commit

Permalink
html5_video: delete src attribute on destroy instead set empty source
Browse files Browse the repository at this point in the history
Avoid HTML5 Video error: "Code 4: MEDIA_ELEMENT_ERROR: Empty src attribute"
  • Loading branch information
vagnervjs committed Mar 27, 2018
1 parent 147867b commit 6e7209a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playbacks/html5_video/html5_video.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export default class HTML5Video extends Playback {
this._destroyed = true
this.handleTextTrackChange && this.el.textTracks.removeEventListener('change', this.handleTextTrackChange)
this.$el.remove()
this.el.src = ''
delete this.el.src
this._src = null
DomRecycler.garbage(this.$el)
}
Expand Down

0 comments on commit 6e7209a

Please sign in to comment.