提交 6b8a6005 authored 作者: Anthony Minessale II's avatar Anthony Minessale II

Merge pull request #629 in FS/freeswitch from…

Merge pull request #629 in FS/freeswitch from ~JAONZE/freeswitch:bugfix/FS-8641-make-frame-rate-configurable to master

* commit '682850c0':
  FS-8641 [verto-communicator] - Added Frame Rate setting
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<h3 class="modal-title">Device Settings</h3> <h3 class="modal-title">Device Settings</h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="form-group" ng-show="mydata.useVideo"> <div class="form-group" ng-show="mydata.useVideo">
<label for="settings-camera">Camera:</label> <label for="settings-camera">Camera:</label>
<select name="camera" id="settings-camera" class="form-control" <select name="camera" id="settings-camera" class="form-control"
...@@ -68,6 +67,13 @@ ...@@ -68,6 +67,13 @@
</div> </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"> <div class="form-group">
<label for="settings-microphone">Audio settings:</label> <label for="settings-microphone">Audio settings:</label>
<div class="checkbox"> <div class="checkbox">
...@@ -138,7 +144,6 @@ ...@@ -138,7 +144,6 @@
ng-options="item.id as item.label for item in verto.bandwidth"></select> ng-options="item.id as item.label for item in verto.bandwidth"></select>
</div> </div>
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn btn-danger pull-left btn-pull-left" ng-click="resetSettings()">Factory reset</button> <button class="btn btn-danger pull-left btn-pull-left" ng-click="resetSettings()">Factory reset</button>
......
...@@ -38,7 +38,8 @@ ...@@ -38,7 +38,8 @@
googHighpassFilter: true, googHighpassFilter: true,
googEchoCancellation: true, googEchoCancellation: true,
autoBand: true, autoBand: true,
testSpeedJoin: true testSpeedJoin: true,
bestFrameRate: 15
}; };
data.$default(defaultSettings); data.$default(defaultSettings);
......
...@@ -93,6 +93,17 @@ var bandwidth = [{ ...@@ -93,6 +93,17 @@ var bandwidth = [{
label: 'Server Default' 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']); var vertoService = angular.module('vertoService', ['ngCookies']);
vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'storage', vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'storage',
...@@ -203,6 +214,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora ...@@ -203,6 +214,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
videoQuality: videoQuality, videoQuality: videoQuality,
videoResolution: videoResolution, videoResolution: videoResolution,
bandwidth: bandwidth, bandwidth: bandwidth,
framerate: framerate,
refreshDevicesCallback : function refreshDevicesCallback(callback) { refreshDevicesCallback : function refreshDevicesCallback(callback) {
data.videoDevices = [{ data.videoDevices = [{
...@@ -364,7 +376,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora ...@@ -364,7 +376,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
maxWidth: w, maxWidth: w,
maxHeight: h, maxHeight: h,
minFrameRate: 15, minFrameRate: 15,
vertoBestFrameRate: 15 vertoBestFrameRate: storage.data.bestFrameRate
}); });
videoQuality.forEach(function(qual){ videoQuality.forEach(function(qual){
if (w === qual.width && h === qual.height) { if (w === qual.width && h === qual.height) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论