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

This commit is contained in:
Anthony Minessale
2016-09-27 12:04:23 -05:00
parent 2ea20cca1b
commit 4bab51e306
4 changed files with 76 additions and 5 deletions

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 {