Enables the screen capture on firefox.
This commit is contained in:
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user