From 70b40c2ed36b3e40833a268643cfed0068151c5b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 29 Jun 2018 15:16:13 +0200 Subject: [PATCH] Don't log "The play() request was interrupted..." --- client/src/assets/player/peertube-videojs-plugin.ts | 4 ++++ 1 file changed, 4 insertions(+) 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() -- 2.25.1