Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Avoid crashing all embed on uncaught error

Chocobozzzeb86c3d40716
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index 64331397e4..b9373a5d2a 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -95,6 +95,15 @@
return
}
+ // Video element is already created, don't crash the player
+ if (document.querySelector('.vjs-can-play')) {
+ if (window.logger && typeof window.logger.error === 'function') {
+ window.logger.error('Uncaught error in embed player ', err)
+ }
+
+ return
+ }
+
window.displayIncompatibleBrowser(err)
if (window.logger && typeof window.logger.error === 'function') {