Don't log "The play() request was interrupted..."

This commit is contained in:
Chocobozzz 2018-06-29 15:16:13 +02:00
parent 84455f2b94
commit 70b40c2ed3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 0 deletions

View File

@ -331,6 +331,10 @@ class PeerTubePlugin extends Plugin {
if (playPromise !== undefined) { if (playPromise !== undefined) {
return playPromise.then(done) return playPromise.then(done)
.catch(err => { .catch(err => {
if (err.message.indexOf('The play() request was interrupted by a call to pause()') !== -1) {
return
}
console.error(err) console.error(err)
this.player.pause() this.player.pause()
this.player.posterImage.show() this.player.posterImage.show()