From: Chocobozzz Date: Fri, 29 Jun 2018 13:16:13 +0000 (+0200) Subject: Don't log "The play() request was interrupted..." X-Git-Tag: v1.0.0-beta.10.pre.1~106 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=70b40c2ed36b3e40833a268643cfed0068151c5b;p=oweals%2Fpeertube.git Don't log "The play() request was interrupted..." --- diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 848dcb266..5fad139b9 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts @@ -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()