Don't throw error on ice connection failed

Just log it in the console
pull/128/head
Chocobozzz 2017-11-28 14:20:01 +01:00
parent eb7a06c812
commit 7dbdc3bace
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 0 deletions

View 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)
})