aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-29 15:16:13 +0200
committerChocobozzz <me@florianbigard.com>2018-06-29 17:10:51 +0200
commit70b40c2ed36b3e40833a268643cfed0068151c5b (patch)
tree2240058907550485c0afbc7c02db076ec4fa9f9b /client
parent84455f2b94d14b387f77fdb92f5e646621d7bef9 (diff)
downloadPeerTube-70b40c2ed36b3e40833a268643cfed0068151c5b.tar.gz
PeerTube-70b40c2ed36b3e40833a268643cfed0068151c5b.tar.zst
PeerTube-70b40c2ed36b3e40833a268643cfed0068151c5b.zip
Don't log "The play() request was interrupted..."
Diffstat (limited to 'client')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts4
1 files changed, 4 insertions, 0 deletions
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 {
331 if (playPromise !== undefined) { 331 if (playPromise !== undefined) {
332 return playPromise.then(done) 332 return playPromise.then(done)
333 .catch(err => { 333 .catch(err => {
334 if (err.message.indexOf('The play() request was interrupted by a call to pause()') !== -1) {
335 return
336 }
337
334 console.error(err) 338 console.error(err)
335 this.player.pause() 339 this.player.pause()
336 this.player.posterImage.show() 340 this.player.posterImage.show()