Enables the screen capture on firefox.

This commit is contained in:
Boris Grozev 2015-08-24 16:04:32 -05:00
parent c0a51fedd0
commit f7ba684cf6
2 changed files with 8 additions and 0 deletions

View File

@ -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" +

View File

@ -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) {