]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't throw error on ice connection failed
authorChocobozzz <florian.bigard@gmail.com>
Tue, 28 Nov 2017 13:20:01 +0000 (14:20 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Tue, 28 Nov 2017 13:20:01 +0000 (14:20 +0100)
Just log it in the console

client/src/assets/player/peertube-videojs-plugin.ts

index 30ef7c49c635f6e190e6ccf09e8ca8a0b6e9690f..c54d8b5ea326b804a3d12c9b78bb84b217b7e2a1 100644 (file)
@@ -161,6 +161,11 @@ const peertubePlugin = function (options: PeertubePluginOptions) {
     player.torrent.on('warning', err => {
       // We don't support HTTP tracker but we don't care -> we use the web socket tracker
       if (err.message.indexOf('Unsupported tracker protocol: http') !== -1) return
+      // Users don't care about issues with WebRTC, but developers do so log it in the console
+      if (err.message.indexOf('Ice connection failed') !== -1) {
+        console.error(err)
+        return
+      }
 
       return handleError(err)
     })