diff --git a/html5/verto/js/src/jquery.verto.js b/html5/verto/js/src/jquery.verto.js
index e253d7d74a..f9790d611f 100644
--- a/html5/verto/js/src/jquery.verto.js
+++ b/html5/verto/js/src/jquery.verto.js
@@ -83,6 +83,18 @@
sessid: null
}, options);
+ if (!verto.options.deviceParams.useCamera) {
+ verto.options.deviceParams.useCamera = "any";
+ }
+
+ if (!verto.options.deviceParams.useMic) {
+ verto.options.deviceParams.useMic = "any";
+ }
+
+ if (!verto.options.deviceParams.useSpeak) {
+ verto.options.deviceParams.useSpeak = "any";
+ }
+
if (verto.options.sessid) {
verto.sessid = verto.options.sessid;
} else {
@@ -1812,19 +1824,15 @@
useVideo: verto.options.useVideo,
useStereo: verto.options.useStereo,
screenShare: false,
- useCamera: "any",
- useMic: "any",
- useSpeak: "any",
+ useCamera: verto.options.deviceParams.useCamera,
+ useMic: verto.options.deviceParams.useMic,
+ useSpeak: verto.options.deviceParams.useSpeak,
tag: verto.options.tag,
localTag: verto.options.localTag,
login: verto.options.login,
videoParams: verto.options.videoParams
}, params);
- dialog.useCamera = verto.options.deviceParams.useCamera;
- dialog.useMic = verto.options.deviceParams.useMic;
- dialog.useSpeak = verto.options.deviceParams.useSpeak;
-
dialog.verto = verto;
dialog.direction = direction;
dialog.lastState = null;
@@ -2282,10 +2290,6 @@
params.sdp = dialog.params.sdp;
- dialog.useCamera = dialog.verto.options.deviceParams.useCamera;
- dialog.useMic = dialog.verto.options.deviceParams.useMic;
- dialog.useSpeak = dialog.verto.options.deviceParams.useSpeak;
-
if (params) {
if (params.useVideo) {
dialog.useVideo(true);
diff --git a/html5/verto/video_demo/js/verto-min.js b/html5/verto/video_demo/js/verto-min.js
index 0ef55d0fe0..21ee54e92b 100644
--- a/html5/verto/video_demo/js/verto-min.js
+++ b/html5/verto/video_demo/js/verto-min.js
@@ -118,7 +118,10 @@ for(i=0;i=$.verto.enum.state.active.val){return;}
if(dialog.state.val>=$.verto.enum.state.early.val){dialog.setState($.verto.enum.state.active);}else{if(dialog.gotEarly){console.log("Dialog "+dialog.callID+" Got answer while still establishing early media, delaying...");}else{console.log("Dialog "+dialog.callID+" Answering Channel");dialog.rtc.answer(params.sdp,function(){dialog.setState($.verto.enum.state.active);},function(e){console.error(e);dialog.hangup();});console.log("Dialog "+dialog.callID+"ANSWER SDP",params.sdp);}}};$.verto.dialog.prototype.cidString=function(enc){var dialog=this;var party=dialog.params.remote_caller_id_name+(enc?" <":" <")+dialog.params.remote_caller_id_number+(enc?">":">");return party;};$.verto.dialog.prototype.sendMessage=function(msg,params){var dialog=this;if(dialog.callbacks.onMessage){dialog.callbacks.onMessage(dialog.verto,dialog,msg,params);}};$.verto.dialog.prototype.handleInfo=function(params){var dialog=this;dialog.sendMessage($.verto.enum.message.info,params.msg);};$.verto.dialog.prototype.handleDisplay=function(params){var dialog=this;if(params.display_name){dialog.params.remote_caller_id_name=params.display_name;}