Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/players/Vimeo.js
Original file line number Diff line number Diff line change
@@ -68,6 +68,7 @@ export default class Vimeo extends Base {
this.callPlayer('pause')
}
stop () {
if (this.preloading) return
this.callPlayer('unload')
}
seekTo (amount) {
1 change: 1 addition & 0 deletions src/players/YouTube.js
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ export default class YouTube extends Base {
this.callPlayer('pauseVideo')
}
stop () {
if (this.preloading) return
if (!document.body.contains(this.callPlayer('getIframe'))) return
this.callPlayer('stopVideo')
}

0 comments on commit 4c4d2ec

Please sign in to comment.