Enables the screen capture on firefox.
This commit is contained in:
parent
c0a51fedd0
commit
f7ba684cf6
|
@ -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" +
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue