aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-videojs-plugin.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-28 14:20:01 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-28 14:20:01 +0100
commit7dbdc3bace5fce434d59ccb76b2e8c699cd07c1c (patch)
tree1bfff06fc17b92b016876d7a30847cd4a31ae68d /client/src/assets/player/peertube-videojs-plugin.ts
parenteb7a06c812a464e0ea2e75c03999426a2eaef4a5 (diff)
downloadPeerTube-7dbdc3bace5fce434d59ccb76b2e8c699cd07c1c.tar.gz
PeerTube-7dbdc3bace5fce434d59ccb76b2e8c699cd07c1c.tar.zst
PeerTube-7dbdc3bace5fce434d59ccb76b2e8c699cd07c1c.zip
Don't throw error on ice connection failed
Just log it in the console
Diffstat (limited to 'client/src/assets/player/peertube-videojs-plugin.ts')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts5
1 files changed, 5 insertions, 0 deletions
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) {
161 player.torrent.on('warning', err => { 161 player.torrent.on('warning', err => {
162 // We don't support HTTP tracker but we don't care -> we use the web socket tracker 162 // We don't support HTTP tracker but we don't care -> we use the web socket tracker
163 if (err.message.indexOf('Unsupported tracker protocol: http') !== -1) return 163 if (err.message.indexOf('Unsupported tracker protocol: http') !== -1) return
164 // Users don't care about issues with WebRTC, but developers do so log it in the console
165 if (err.message.indexOf('Ice connection failed') !== -1) {
166 console.error(err)
167 return
168 }
164 169
165 return handleError(err) 170 return handleError(err)
166 }) 171 })