Merge pull request #538 in FS/freeswitch from ~STEFAN_YOHANSSON/freeswitch:bugfix/FS-8290-automatically-mark-dedicated-encoder to master

* commit '9b82894f02370576483bc520e0906f99095c2008':
  FS-8290 #resolve [verto_communicator] automatically mark dedicated encoder if out/in bandwith isnt 'Server default'
This commit is contained in:
Ítalo Rossi 2015-10-05 19:53:42 -05:00
commit 1926629f64
2 changed files with 16 additions and 6 deletions

View File

@ -46,12 +46,6 @@
Use STUN
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="use_dedenc" ng-value="mydata.useDedenc" ng-model="mydata.useDedenc">
Use Dedicated Remote Encoder
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="mirror_input" ng-value="mydata.mirrorInput" ng-model="mydata.mirrorInput">
@ -95,11 +89,18 @@
ng-model="mydata.vidQual"
ng-options="item.id as item.label for item in verto.videoQuality"></select>
</div>
<input type="hidden" name="use_dedenc" ng-value="mydata.useDedenc" ng-model="mydata.useDedenc">
<div ng-show="mydata.useDedenc">
<b>Using Dedicated Remote Encoder</b>
</div>
<div class="form-group">
<label for="outgoing-bandwidth">Max outgoing bandwidth:</label>
<select name="outgoing_bandwidth" id="outgoing-bandwidth" class="form-control"
ng-model="mydata.outgoingBandwidth"
ng-change="checkUseDedRemoteEncoder(mydata.outgoingBandwidth)"
ng-options="item.id as item.label for item in verto.bandwidth"></select>
</div>
@ -107,6 +108,7 @@
<label for="incoming-bandwidth">Max incoming bandwidth:</label>
<select name="incoming_bandwidth" id="incoming-bandwidth" class="form-control"
ng-model="mydata.incomingBandwidth"
ng-change="checkUseDedRemoteEncoder(mydata.incomingBandwidth)"
ng-options="item.id as item.label for item in verto.bandwidth"></select>
</div>

View File

@ -34,6 +34,14 @@
window.location.reload();
};
};
$scope.checkUseDedRemoteEncoder = function(option) {
if ($scope.mydata.incomingBandwidth != 'default' || $scope.mydata.outgoingBandwidth != 'default') {
$scope.mydata.useDedenc = true;
} else {
$scope.mydata.useDedenc = false;
}
};
}
]);