mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-03 22:26:51 +00:00
Merge pull request #629 in FS/freeswitch from ~JAONZE/freeswitch:bugfix/FS-8641-make-frame-rate-configurable to master
* commit '682850c02f749714fc6f51d023f329daaacca264': FS-8641 [verto-communicator] - Added Frame Rate setting
This commit is contained in:
commit
6b8a6005de
@ -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 @@
|
|||||||
|
|
||||||
</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 @@
|
|||||||
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 @@
|
|||||||
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 = [{
|
|||||||
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
|
|||||||
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
|
|||||||
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user