Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't log "The play() request was interrupted..."

Chocobozzz70b40c2ed36b
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts
index 848dcb266a..5fad139b90 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()