FS-8616 [verto_communicator] - A new menu for moderator, added Gain buttons and removed the 3-dot-button, moving its behavior to member-name div

This commit is contained in:
Jaon EarlWolf
2015-12-04 16:05:58 -03:00
committed by Anthony Minessale
parent b91a1017e2
commit 3df5826098
3 changed files with 217 additions and 86 deletions

View File

@@ -49,6 +49,11 @@
});
});
$rootScope.$on('call.conference', function(event, data) {
$timeout(function() {
$scope.conf = verto.data.conf.params.laData;
});
});
$rootScope.$on('changedVideoLayout', function(event, layout) {
$scope.resIDs = getResByLayout(layout);
@@ -176,6 +181,12 @@
/**
* Public methods.
*/
$scope.toggleModMenu = function(index) {
if (verto.data.confRole != 'moderator') return;
$scope.openId = $scope.openId == index ? null : index;
};
$scope.send = function() {
// Only conferencing chat is supported for now
// but still calling method with the conference prefix
@@ -285,6 +296,16 @@
verto.data.conf.volumeUp(memberID);
};
$scope.confGainDown = function(memberID) {
console.log('$scope.confGainDown');
verto.data.conf.gainDown(memberID);
};
$scope.confGainUp = function(memberID) {
console.log('$scope.confGainUp');
verto.data.conf.gainUp(memberID);
};
$scope.confTransfer = function(memberID) {
console.log('$scope.confTransfer');
prompt({