[mirotalksfu] - #122 add popup msg
هذا الالتزام موجود في:
@@ -1439,6 +1439,7 @@ function handleSelects() {
|
|||||||
rc.updatePeerInfo(peer_name, socket.id, 'audio', true);
|
rc.updatePeerInfo(peer_name, socket.id, 'audio', true);
|
||||||
}
|
}
|
||||||
e.target.blur(); // Removes focus from the element
|
e.target.blur(); // Removes focus from the element
|
||||||
|
rc.roomMessage('ptt', isPushToTalkActive);
|
||||||
console.log(`Push-to-talk enabled: ${isPushToTalkActive}`);
|
console.log(`Push-to-talk enabled: ${isPushToTalkActive}`);
|
||||||
};
|
};
|
||||||
document.addEventListener('keydown', (e) => {
|
document.addEventListener('keydown', (e) => {
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ const html = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const icons = {
|
const icons = {
|
||||||
|
ptt: '<i class="fa-solid fa-hand-pointer"></i>',
|
||||||
lobby: '<i class="fas fa-shield-halved"></i>',
|
lobby: '<i class="fas fa-shield-halved"></i>',
|
||||||
lock: '<i class="fa-solid fa-lock"></i>',
|
lock: '<i class="fa-solid fa-lock"></i>',
|
||||||
unlock: '<i class="fa-solid fa-lock-open"></i>',
|
unlock: '<i class="fa-solid fa-lock-open"></i>',
|
||||||
@@ -4024,6 +4025,10 @@ class RoomClient {
|
|||||||
this.sound('switch');
|
this.sound('switch');
|
||||||
this.userLog('info', `${icons.sounds} Sounds notification ${status}`, 'top-end');
|
this.userLog('info', `${icons.sounds} Sounds notification ${status}`, 'top-end');
|
||||||
break;
|
break;
|
||||||
|
case 'ptt':
|
||||||
|
this.sound('switch');
|
||||||
|
this.userLog('info', `${icons.ptt} Push to talk ${status}`, 'top-end');
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم