mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
FS-7746 #resolve this should work now
This commit is contained in:
@@ -468,6 +468,8 @@ var iceTimer;
|
||||
}
|
||||
|
||||
var video = {};
|
||||
var bestFrameRate = obj.options.videoParams.vertoBestFrameRate;
|
||||
delete obj.options.videoParams.vertoBestFrameRate;
|
||||
|
||||
if (window.moz) {
|
||||
video = obj.options.videoParams;
|
||||
@@ -478,15 +480,20 @@ var iceTimer;
|
||||
video = {
|
||||
mandatory: obj.options.videoParams,
|
||||
optional: []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var useVideo = obj.options.useVideo;
|
||||
|
||||
if (useVideo && obj.options.useCamera && obj.options.useCamera !== "none") {
|
||||
if (obj.options.useCamera !== "any") {
|
||||
video.optional = [{sourceId: obj.options.useCamera}]
|
||||
video.optional.push({sourceId: obj.options.useCamera});
|
||||
}
|
||||
|
||||
if (bestFrameRate && !window.moz) {
|
||||
video.optional.push({minFrameRate: bestFrameRate});
|
||||
}
|
||||
|
||||
} else {
|
||||
video = null;
|
||||
useVideo = null;
|
||||
|
Reference in New Issue
Block a user