]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8087 #comment add missing bit from last commit
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 28 Aug 2015 14:45:52 +0000 (09:45 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 28 Aug 2015 14:45:52 +0000 (09:45 -0500)
html5/verto/js/src/jquery.verto.js
html5/verto/video_demo/js/verto-min.js

index 79c68c1afd04a608c77150fb0ba7a02a3f6f1e25..35210c446bd2d3c137157b706403d44f0b9ddd72 100644 (file)
        for (var i in obj) {
             verto.options.deviceParams[i] = obj[i];
        }
+
+       if (obj.useCamera) {
+           $.FSRTC.getValidRes(verto.options.deviceParams.useCamera, undefined);
+       }
     };
 
     $.verto.prototype.videoParams = function(obj) {
index 6d86a4fde8032f1fb68f9bb04a93f82d5c99fc56..2ae6f9d6ad28ffce830d525d3c576524a9d2f7b5 100644 (file)
@@ -126,7 +126,8 @@ if(!verto.options.deviceParams.useSpeak){verto.options.deviceParams.useSpeak="an
 if(verto.options.sessid){verto.sessid=verto.options.sessid;}else{verto.sessid=localStorage.getItem("verto_session_uuid")||generateGUID();localStorage.setItem("verto_session_uuid",verto.sessid);}
 verto.dialogs={};verto.callbacks=callbacks||{};verto.eventSUBS={};verto.rpcClient=new $.JsonRpcClient({login:verto.options.login,passwd:verto.options.passwd,socketUrl:verto.options.socketUrl,loginParams:verto.options.loginParams,userVariables:verto.options.userVariables,sessid:verto.sessid,onmessage:function(e){return verto.handleMessage(e.eventData);},onWSConnect:function(o){o.call('login',{});},onWSLogin:function(success){if(verto.callbacks.onWSLogin){verto.callbacks.onWSLogin(verto,success);}},onWSClose:function(success){if(verto.callbacks.onWSClose){verto.callbacks.onWSClose(verto,success);}
 verto.purge();}});if(verto.options.ringFile&&verto.options.tag){verto.ringer=$("#"+verto.options.tag);}
-verto.rpcClient.call('login',{});};$.verto.prototype.deviceParams=function(obj){var verto=this;for(var i in obj){verto.options.deviceParams[i]=obj[i];}};$.verto.prototype.videoParams=function(obj){var verto=this;for(var i in obj){verto.options.videoParams[i]=obj[i];}};$.verto.prototype.iceServers=function(obj){var verto=this;verto.options.iceServers=obj;};$.verto.prototype.loginData=function(params){var verto=this;verto.options.login=params.login;verto.options.passwd=params.passwd;verto.rpcClient.loginData(params);};$.verto.prototype.logout=function(msg){var verto=this;verto.rpcClient.closeSocket();if(verto.callbacks.onWSClose){verto.callbacks.onWSClose(verto,false);}
+verto.rpcClient.call('login',{});};$.verto.prototype.deviceParams=function(obj){var verto=this;for(var i in obj){verto.options.deviceParams[i]=obj[i];}
+if(obj.useCamera){$.FSRTC.getValidRes(verto.options.deviceParams.useCamera,undefined);}};$.verto.prototype.videoParams=function(obj){var verto=this;for(var i in obj){verto.options.videoParams[i]=obj[i];}};$.verto.prototype.iceServers=function(obj){var verto=this;verto.options.iceServers=obj;};$.verto.prototype.loginData=function(params){var verto=this;verto.options.login=params.login;verto.options.passwd=params.passwd;verto.rpcClient.loginData(params);};$.verto.prototype.logout=function(msg){var verto=this;verto.rpcClient.closeSocket();if(verto.callbacks.onWSClose){verto.callbacks.onWSClose(verto,false);}
 verto.purge();};$.verto.prototype.login=function(msg){var verto=this;verto.logout();verto.rpcClient.call('login',{});};$.verto.prototype.message=function(msg){var verto=this;var err=0;if(!msg.to){console.error("Missing To");err++;}
 if(!msg.body){console.error("Missing Body");err++;}
 if(err){return false;}