From 012c9fb3298dfc1b921d621e52ad08d1c70a8f05 Mon Sep 17 00:00:00 2001 From: eastmancr Date: Mon, 3 Nov 2025 14:25:10 -0600 Subject: [PATCH] feat(base): add WebRTC availability detection (#16608) * feat(base/environment) add WebRTC availability detection * feat(base/unsupported-browser) switch to JitsiMeetJS WebRTC detection * fix(static/webrtcUnsupported) remove links --- .../DefaultUnsupportedDesktopBrowser.tsx | 11 +++++++++-- static/webrtcUnsupported.html | 17 +++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 static/webrtcUnsupported.html diff --git a/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.tsx b/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.tsx index 772504a1f3..a8bd743da3 100644 --- a/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.tsx +++ b/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.tsx @@ -1,5 +1,7 @@ import React, { Component } from 'react'; +import JitsiMeetJS from '../../base/lib-jitsi-meet'; + /** * React component representing unsupported browser page. * @@ -8,12 +10,17 @@ import React, { Component } from 'react'; class DefaultUnsupportedDesktopBrowser extends Component { /** - * Redirects to the static recommended browsers page that is also used for IE. + * Redirects to the static recommended browsers page or the WebRTC unsupported page. + * IE and other browsers without WebRTC support will show the WebRTC unsupported page. * * @returns {void} */ override componentDidMount() { - window.location.pathname = 'static/recommendedBrowsers.html'; + if (!JitsiMeetJS.isWebRtcSupported()) { + window.location.pathname = 'static/webrtcUnsupported.html'; + } else { + window.location.pathname = 'static/recommendedBrowsers.html'; + } } /** diff --git a/static/webrtcUnsupported.html b/static/webrtcUnsupported.html new file mode 100644 index 0000000000..2e54dd1a1c --- /dev/null +++ b/static/webrtcUnsupported.html @@ -0,0 +1,17 @@ + + + + + + + +
+

+ WebRTC is not available in your browser +

+

+ It looks like your browser does not support WebRTC. Please enable it or try another browser. +

+
+ +