From: Chocobozzz Date: Tue, 28 Nov 2017 13:20:01 +0000 (+0100) Subject: Don't throw error on ice connection failed X-Git-Tag: v0.0.1-alpha~171 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7dbdc3bace5fce434d59ccb76b2e8c699cd07c1c;p=oweals%2Fpeertube.git Don't throw error on ice connection failed Just log it in the console --- diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 30ef7c49c..c54d8b5ea 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts @@ -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) })