FS-9242 fix screen share for chrome to work in VC with additional camera

This commit is contained in:
Anthony Minessale committed 2016-09-27 16:26:50 -05:00
1 parent e41ae3709a
commit 73e460e1f5
4 files changed
+76 -5

No files matched your search

+10 -1
View File
@@ -520,8 +520,17 @@
if (obj.options.screenShare) {
// fix for chrome to work for now, will need to change once we figure out how to do this in a non-mandatory style constraint.
var opt = [];
opt.push({sourceId: obj.options.useCamera});
if (bestFrameRate) {
opt.push({minFrameRate: bestFrameRate});
opt.push({maxFrameRate: bestFrameRate});
}
video = {
mandatory: obj.options.videoParams
mandatory: obj.options.videoParams,
optional: opt
};
} else {