Skip to content

Commit

Permalink
(fix): clear video src to prevent old video from continue to load
Browse files Browse the repository at this point in the history
  • Loading branch information
ptgamr committed Jul 8, 2022
1 parent 80b2da1 commit ad4b03f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default class FilePlayer extends Component {
}

componentWillUnmount () {
this.player.src = ''
this.removeListeners(this.player)
if (this.hls) {
this.hls.destroy()
Expand Down

0 comments on commit ad4b03f

Please sign in to comment.