mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
FS-8087 #comment pass resCheck callback into deviceParams
This commit is contained in:
@@ -76,16 +76,15 @@
|
||||
videoParams: {},
|
||||
audioParams: {},
|
||||
loginParams: {},
|
||||
deviceParams: {},
|
||||
deviceParams: {onResCheck: null},
|
||||
userVariables: {},
|
||||
iceServers: false,
|
||||
ringSleep: 6000,
|
||||
sessid: null
|
||||
}, options);
|
||||
|
||||
|
||||
if (verto.options.deviceParams.useCamera) {
|
||||
$.FSRTC.getValidRes(verto.options.deviceParams.useCamera, undefined);
|
||||
$.FSRTC.getValidRes(verto.options.deviceParams.useCamera, verto.options.deviceParams.onResCheck);
|
||||
} else {
|
||||
verto.options.deviceParams.useCamera = "any";
|
||||
}
|
||||
@@ -152,7 +151,7 @@
|
||||
}
|
||||
|
||||
if (obj.useCamera) {
|
||||
$.FSRTC.getValidRes(verto.options.deviceParams.useCamera, undefined);
|
||||
$.FSRTC.getValidRes(verto.options.deviceParams.useCamera, obj ? obj.resCheck : undefined);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user