]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8641 [verto-communicator] - Added Frame Rate setting
authorJaon EarlWolf <jamonsterr@gmail.com>
Thu, 10 Dec 2015 20:08:35 +0000 (17:08 -0300)
committerJaon EarlWolf <jamonsterr@gmail.com>
Thu, 10 Dec 2015 20:08:35 +0000 (17:08 -0300)
html5/verto/verto_communicator/src/partials/modal_settings.html
html5/verto/verto_communicator/src/storageService/services/storage.js
html5/verto/verto_communicator/src/vertoService/services/vertoService.js

index f4775c0e36007a382c6e93d8d1bd6a12bbb006d8..4cb666fbbb787dd32b815390f70aee205e5964a8 100644 (file)
@@ -2,7 +2,6 @@
   <h3 class="modal-title">Device Settings</h3>
 </div>
 <div class="modal-body">
-
   <div class="form-group" ng-show="mydata.useVideo">
     <label for="settings-camera">Camera:</label>
     <select name="camera" id="settings-camera" class="form-control"
 
   </div>
 
+  <div class="form-group">
+    <label for="settings-framerate">Best frame rate:</label>
+    <select name="settings-framerate" id="settings-framerate" class="form-control"
+            ng-model="mydata.bestFrameRate"
+            ng-options="item.id as item.label for item in verto.framerate"></select>
+  </div>
+
   <div class="form-group">
     <label for="settings-microphone">Audio settings:</label>
     <div class="checkbox">
               ng-options="item.id as item.label for item in verto.bandwidth"></select>
     </div>
   </div>
-
 </div>
 <div class="modal-footer">
   <button class="btn btn-danger pull-left btn-pull-left" ng-click="resetSettings()">Factory reset</button>
index da3a6005897da0ca4d0b58d94d6bdc08c0bebc90..1e2dc6c0bc6ebce51b4e750a45c9e9ffa57d4efa 100644 (file)
@@ -38,7 +38,8 @@
           googHighpassFilter: true,
           googEchoCancellation: true,
           autoBand: true,
-          testSpeedJoin: true
+          testSpeedJoin: true,
+          bestFrameRate: 15
        };
 
     data.$default(defaultSettings);
index 7a9a5fca283fee6534f1712c28eba2b6762c9ddb..930501cc4882134fcc78c68021e7731e85c80285 100644 (file)
@@ -93,6 +93,17 @@ var bandwidth = [{
   label: 'Server Default'
 }, ];
 
+var framerate = [{
+  id: '15',
+  label: '15 FPS'
+}, {
+  id: '20',
+  label: '20 FPS'
+}, {
+  id: '30',
+  label: '30 FPS'
+}, ];
+
 var vertoService = angular.module('vertoService', ['ngCookies']);
 
 vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'storage',
@@ -203,6 +214,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
       videoQuality: videoQuality,
       videoResolution: videoResolution,
       bandwidth: bandwidth,
+      framerate: framerate,
 
       refreshDevicesCallback : function refreshDevicesCallback(callback) {
         data.videoDevices = [{
@@ -364,7 +376,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
             maxWidth: w,
             maxHeight: h,
             minFrameRate: 15,
-            vertoBestFrameRate: 15
+            vertoBestFrameRate: storage.data.bestFrameRate
           });
           videoQuality.forEach(function(qual){
             if (w === qual.width && h === qual.height) {