FS-8290 #resolve [verto_communicator] automatically mark dedicated encoder if out/in bandwith isnt 'Server default'

FS-8290 [verto_communicator] fix logic

FS-8290 [verto_communicator] change Dedicated Encoder input from checkbox to hidden
This commit is contained in:
Stefan Yohansson 2015-10-02 17:36:53 -03:00
parent b514c9cd6e
commit 9b82894f02
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">
@ -96,10 +90,17 @@
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;
}
};
}
]);