]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't log "The play() request was interrupted..."
authorChocobozzz <me@florianbigard.com>
Fri, 29 Jun 2018 13:16:13 +0000 (15:16 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 29 Jun 2018 15:10:51 +0000 (17:10 +0200)
client/src/assets/player/peertube-videojs-plugin.ts

index 848dcb266a7078db99f9a9b0328991ef5c6a314e..5fad139b90438cf9aa0efb300c45d65b3f97e79b 100644 (file)
@@ -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()