]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8092 [verto_communicator] If there is no data in localStorage, select best resolut...
authorJoao Mesquita <jmesquita@indicium.com.ar>
Fri, 28 Aug 2015 20:56:51 +0000 (17:56 -0300)
committerJoao Mesquita <jmesquita@indicium.com.ar>
Fri, 28 Aug 2015 20:56:51 +0000 (17:56 -0300)
html5/verto/verto_communicator/src/storageService/services/storage.js
html5/verto/verto_communicator/src/vertoService/services/vertoService.js

index f2f7def4f52a2dda777103522004e9fa1b9d68af..377006c2580af8acf5913f5ebc384c0beb36d22e 100644 (file)
@@ -30,7 +30,7 @@
       mirrorInput: false,
       outgoingBandwidth: 'default',
       incomingBandwidth: 'default',
-      vidQual: 'qvga',
+      vidQual: undefined,
       askRecoverCall: false,
       googNoiseSuppression: false,
       googHighpassFilter: false,
index 87445f1ef6d2251369b624c98effba04731203c4..7a6e90c701ae31e46acb73c469319ed7c6c5e9ef 100644 (file)
@@ -123,7 +123,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
     };
 
     function cleanShareCall(that) {
-      that.refreshVideoResolution();
       data.shareCall = null;
       data.callState = 'active';
       that.refreshDevices();
@@ -193,7 +192,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
     return {
       data: data,
       callState: callState,
-      // changeData: changeData,
 
       // Options to compose the interface.
       videoQuality: videoQuality,
@@ -306,7 +304,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
           });
           videoQuality.forEach(function(qual){
             if (w === qual.width && h === qual.height) {
-              if (storage.data.vidQual !== qual.id) {
+              if (storage.data.vidQual !== qual.id || storage.data.vidQual === undefined) {
                 storage.data.vidQual = qual.id;
               }
             }
@@ -534,7 +532,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
           data.instance.deviceParams({
             useCamera: storage.data.selectedVideo,
             useMic: storage.data.selectedAudio,
-            resCheck: that.refreshVideoResolution
+            onResCheck: that.refreshVideoResolution
           });
 
         }
@@ -586,8 +584,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
       call: function(destination, callback) {
         console.debug('Attempting to call destination ' + destination + '.');
 
-        //this.refreshVideoResolution();
-
         var call = data.instance.newCall({
           destination_number: destination,
           caller_id_name: data.name,
@@ -621,8 +617,6 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
       screenshare: function(destination, callback) {
         console.log('share screen video');
 
-        this.refreshVideoResolution();
-
         var that = this;
 
         getScreenId(function(error, sourceId, screen_constraints) {