aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-20 09:57:46 +0200
committerChocobozzz <me@florianbigard.com>2022-06-20 09:57:46 +0200
commitda8637bac9e32b21df2389d7698ce91070ec3a39 (patch)
tree609bf43b08b599c8669c36bedb10eb80048b8a78 /client/src
parent5e0dbb3e52797cdea7a9069a9dd605c8f84034dd (diff)
downloadPeerTube-da8637bac9e32b21df2389d7698ce91070ec3a39.tar.gz
PeerTube-da8637bac9e32b21df2389d7698ce91070ec3a39.tar.zst
PeerTube-da8637bac9e32b21df2389d7698ce91070ec3a39.zip
Don't break player on ice error
I don't really know why the ice error is not catched by simple-peer, where it should according to the code
Diffstat (limited to 'client/src')
-rw-r--r--client/src/standalone/videos/embed.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index f30dda96b..eab6f81a6 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -67,7 +67,12 @@
67 if (placeholderPreview) placeholderPreview.style.display = 'none' 67 if (placeholderPreview) placeholderPreview.style.display = 'none'
68 } 68 }
69 69
70 window.onerror = function () { 70 window.onerror = function (msg) {
71 if (typeof msg === 'string' && msg.toLowerCase().includes(' ice ')) {
72 console.warn(msg)
73 return
74 }
75
71 window.displayIncompatibleBrowser() 76 window.displayIncompatibleBrowser()
72 } 77 }
73 78