diff --git a/html5/verto/js/src/jquery.verto.js b/html5/verto/js/src/jquery.verto.js index a2574ed387..892838bc30 100644 --- a/html5/verto/js/src/jquery.verto.js +++ b/html5/verto/js/src/jquery.verto.js @@ -1298,6 +1298,14 @@ this.modCommand("stop", null, "all"); }; + $.verto.conf.prototype.deaf = function(memberID) { + this.modCommand("deaf", parseInt(memberID)); + }; + + $.verto.conf.prototype.undeaf = function(memberID) { + this.modCommand("undeaf", parseInt(memberID)); + }; + $.verto.conf.prototype.record = function(file) { this.modCommand("recording", null, ["start", file]); }; diff --git a/html5/verto/verto_communicator/src/locales/locale-en.json b/html5/verto/verto_communicator/src/locales/locale-en.json index 3eb1063817..13a12b4e17 100644 --- a/html5/verto/verto_communicator/src/locales/locale-en.json +++ b/html5/verto/verto_communicator/src/locales/locale-en.json @@ -145,10 +145,13 @@ "CHAT_TITLE_VOL_PLUS": "Volume +", "CHAT_TITLE_GAIN_MINUS": "Gain -", "CHAT_TITLE_GAIN_PLUS": "Gain +", + "CHAT_TITLE_DEAF_UNDEAF": "Deaf/Undeaf", "CHAT_VOL_MINUS": "Vol -", "CHAT_VOL_PLUS": "Vol +", "CHAT_GAIN_MINUS": "Gain -", "CHAT_GAIN_PLUS": "Gain +", + "CHAT_DEAF": "Deaf", + "CHAT_UNDEAF": "Undeaf", "LANGUAGE": "Language:", "BROWSER_LANGUAGE": "Browser Language", "FACTORY_RESET_SETTINGS": "Factory Reset Settings", diff --git a/html5/verto/verto_communicator/src/locales/locale-pt.json b/html5/verto/verto_communicator/src/locales/locale-pt.json index 0cf75ca880..226f32e28a 100644 --- a/html5/verto/verto_communicator/src/locales/locale-pt.json +++ b/html5/verto/verto_communicator/src/locales/locale-pt.json @@ -145,10 +145,13 @@ "CHAT_TITLE_VOL_PLUS": "Volume +", "CHAT_TITLE_GAIN_MINUS": "Ganho -", "CHAT_TITLE_GAIN_PLUS": "Ganho +", + "CHAT_TITLE_DEAF_UNDEAF": "Ligar/Desligar Áudio", "CHAT_VOL_MINUS": "Vol -", "CHAT_VOL_PLUS": "Vol +", "CHAT_GAIN_MINUS": "Ganho -", "CHAT_GAIN_PLUS": "Ganho +", + "CHAT_DEAF": "Ligar Áudio", + "CHAT_UNDEAF": "Desligar Áudio", "FACTORY_RESET_SETTINGS": "Redefinir configurações", "AUTOGAIN_CONTROL": "Controle de Ganho Automático (AGC)" } diff --git a/html5/verto/verto_communicator/src/partials/chat.html b/html5/verto/verto_communicator/src/partials/chat.html index 06124ca08e..91a40c66c7 100644 --- a/html5/verto/verto_communicator/src/partials/chat.html +++ b/html5/verto/verto_communicator/src/partials/chat.html @@ -55,7 +55,7 @@
-
+ diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js index 115da6ddf3..c3f25a5806 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js @@ -333,6 +333,18 @@ }); }; + $scope.confToggleDeaf = function(member) { + if(verto.data.confRole == 'moderator') { + console.log('$scope.confToggleDeaf'); + + if (member.status.audio.deaf) { + verto.data.conf.undeaf(member.id); + } else { + verto.data.conf.deaf(member.id); + } + } + }; + function shortPrompt(text, cb) { prompt({ title: text,