[mirotalksfu] - #122 add popup msg

هذا الالتزام موجود في:
Miroslav Pejic
2023-08-28 18:49:15 +02:00
الأصل 4dd8375dcb
التزام 9f265db8af
2 ملفات معدلة مع 6 إضافات و0 حذوفات

عرض الملف

@@ -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) => {

عرض الملف

@@ -42,6 +42,7 @@ const html = {
};
const icons = {
ptt: '<i class="fa-solid fa-hand-pointer"></i>',
lobby: '<i class="fas fa-shield-halved"></i>',
lock: '<i class="fa-solid fa-lock"></i>',
unlock: '<i class="fa-solid fa-lock-open"></i>',
@@ -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;
}