Don't log "The play() request was interrupted..."
This commit is contained in:
parent
84455f2b94
commit
70b40c2ed3
|
@ -331,6 +331,10 @@ class PeerTubePlugin extends Plugin {
|
|||
if (playPromise !== undefined) {
|
||||
return playPromise.then(done)
|
||||
.catch(err => {
|
||||
if (err.message.indexOf('The play() request was interrupted by a call to pause()') !== -1) {
|
||||
return
|
||||
}
|
||||
|
||||
console.error(err)
|
||||
this.player.pause()
|
||||
this.player.posterImage.show()
|
||||
|
|
Loading…
Reference in New Issue