Skip to content

Commit

Permalink
Merge pull request #254 from bstst/master
Browse files Browse the repository at this point in the history
properly destroy HLS.JS and / or DASH.JS instances
  • Loading branch information
cookpete authored Oct 20, 2017
2 parents 2a92c54 + 6cfe1b3 commit 633aa39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ export default class FilePlayer extends Base {
stop () {
this.player.removeAttribute('src')
if (this.hls) {
this.hls.detachMedia()
this.hls.destroy()
}
if (this.dash) {
this.dash.reset()
}
}
seekTo (amount) {
Expand Down

0 comments on commit 633aa39

Please sign in to comment.