Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Enables the screen capture on firefox.

Boris Grozevf7ba684cf689
diff --git a/modules/RTC/RTCUtils.js b/modules/RTC/RTCUtils.js
index a965d61e61..adf7b201e2 100644
--- a/modules/RTC/RTCUtils.js
+++ b/modules/RTC/RTCUtils.js
@@ -93,6 +93,12 @@ function getConstraints(um, resolution, bandwidth, fps, desktopStream) {
}
]
};
+ } else if (RTCBrowserType.isFirefox()) {
+ constraints.video = {
+ mozMediaSource: "window",
+ mediaSource: "window"
+ };
+
} else {
console.error(
"'screen' WebRTC media source is supported only in Chrome" +
diff --git a/modules/desktopsharing/desktopsharing.js b/modules/desktopsharing/desktopsharing.js
index 21802b5b91..835e27a4ea 100644
--- a/modules/desktopsharing/desktopsharing.js
+++ b/modules/desktopsharing/desktopsharing.js
@@ -235,6 +235,8 @@ function setDesktopSharing(method) {
obtainDesktopStream = obtainWebRTCScreen;
console.info("Using Chrome WebRTC for desktop sharing");
}
+ } else if (RTCBrowserType.isFirefox()) {
+ obtainDesktopStream = obtainWebRTCScreen;
}
if (!obtainDesktopStream) {