From 9f265db8af87a857d8fa94c992cc0483ee431635 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 28 Aug 2023 18:49:15 +0200 Subject: [PATCH] [mirotalksfu] - #122 add popup msg --- public/js/Room.js | 1 + public/js/RoomClient.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/public/js/Room.js b/public/js/Room.js index bff2a459..13d05527 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -1439,6 +1439,7 @@ function handleSelects() { rc.updatePeerInfo(peer_name, socket.id, 'audio', true); } e.target.blur(); // Removes focus from the element + rc.roomMessage('ptt', isPushToTalkActive); console.log(`Push-to-talk enabled: ${isPushToTalkActive}`); }; document.addEventListener('keydown', (e) => { diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 1e85bda8..1acf4044 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -42,6 +42,7 @@ const html = { }; const icons = { + ptt: '', lobby: '', lock: '', unlock: '', @@ -4024,6 +4025,10 @@ class RoomClient { this.sound('switch'); this.userLog('info', `${icons.sounds} Sounds notification ${status}`, 'top-end'); break; + case 'ptt': + this.sound('switch'); + this.userLog('info', `${icons.ptt} Push to talk ${status}`, 'top-end'); + break; default: break; }