[mirotlaksfu] - fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2023-05-23 14:39:16 +02:00
الأصل 8c7032d94a
التزام 5186705cef
4 ملفات معدلة مع 14 إضافات و14 حذوفات

عرض الملف

@@ -150,6 +150,7 @@ module.exports = class Peer {
consumer = await consumerTransport.consume({ consumer = await consumerTransport.consume({
producerId: producer_id, producerId: producer_id,
rtpCapabilities, rtpCapabilities,
enableRtx: true, // Enable NACK for OPUS.
paused: false, paused: false,
}); });
} catch (error) { } catch (error) {

عرض الملف

@@ -989,22 +989,22 @@ function handleButtons() {
rc.closeThenProduce(RoomClient.mediaType.video, null, true); rc.closeThenProduce(RoomClient.mediaType.video, null, true);
}; };
raiseHandButton.onclick = () => { raiseHandButton.onclick = () => {
rc.updatePeerInfo(peer_name, rc.peer_id, 'hand', true); rc.updatePeerInfo(peer_name, socket.id, 'hand', true);
}; };
lowerHandButton.onclick = () => { lowerHandButton.onclick = () => {
rc.updatePeerInfo(peer_name, rc.peer_id, 'hand', false); rc.updatePeerInfo(peer_name, socket.id, 'hand', false);
}; };
startAudioButton.onclick = () => { startAudioButton.onclick = () => {
setAudioButtonsDisabled(true); setAudioButtonsDisabled(true);
if (!isEnumerateAudioDevices) initEnumerateAudioDevices(); if (!isEnumerateAudioDevices) initEnumerateAudioDevices();
rc.produce(RoomClient.mediaType.audio, microphoneSelect.value); rc.produce(RoomClient.mediaType.audio, microphoneSelect.value);
rc.updatePeerInfo(peer_name, rc.peer_id, 'audio', true); rc.updatePeerInfo(peer_name, socket.id, 'audio', true);
// rc.resumeProducer(RoomClient.mediaType.audio); // rc.resumeProducer(RoomClient.mediaType.audio);
}; };
stopAudioButton.onclick = () => { stopAudioButton.onclick = () => {
setAudioButtonsDisabled(true); setAudioButtonsDisabled(true);
rc.closeProducer(RoomClient.mediaType.audio); rc.closeProducer(RoomClient.mediaType.audio);
rc.updatePeerInfo(peer_name, rc.peer_id, 'audio', false); rc.updatePeerInfo(peer_name, socket.id, 'audio', false);
// rc.pauseProducer(RoomClient.mediaType.audio); // rc.pauseProducer(RoomClient.mediaType.audio);
}; };
startVideoButton.onclick = () => { startVideoButton.onclick = () => {
@@ -1029,7 +1029,7 @@ function handleButtons() {
rc.closeProducer(RoomClient.mediaType.screen); rc.closeProducer(RoomClient.mediaType.screen);
}; };
fileShareButton.onclick = () => { fileShareButton.onclick = () => {
rc.selectFileToShare(rc.peer_id, true); rc.selectFileToShare(socket.id, true);
}; };
videoShareButton.onclick = () => { videoShareButton.onclick = () => {
rc.shareVideo('all'); rc.shareVideo('all');
@@ -2175,13 +2175,13 @@ async function getParticipantsTable(peers) {
<tr> <tr>
<td>&nbsp;<i class="fas fa-users fa-lg"></i></td> <td>&nbsp;<i class="fas fa-users fa-lg"></i></td>
<td>all</td> <td>all</td>
<td><button id="muteAllButton" onclick="rc.peerAction('me','${rc.peer_id}','mute',true,true)">${_PEER.audioOff}</button></td> <td><button id="muteAllButton" onclick="rc.peerAction('me','${socket.id}','mute',true,true)">${_PEER.audioOff}</button></td>
<td><button id="hideAllButton" onclick="rc.peerAction('me','${rc.peer_id}','hide',true,true)">${_PEER.videoOff}</button></td> <td><button id="hideAllButton" onclick="rc.peerAction('me','${socket.id}','hide',true,true)">${_PEER.videoOff}</button></td>
<td></td> <td></td>
<td><button id="sendAllButton" onclick="rc.selectFileToShare('${rc.peer_id}', true)">${_PEER.sendFile}</button></td> <td><button id="sendAllButton" onclick="rc.selectFileToShare('${socket.id}', true)">${_PEER.sendFile}</button></td>
<td><button id="sendMessageToAll" onclick="rc.sendMessageTo('all','all')">${_PEER.sendMsg}</button></td> <td><button id="sendMessageToAll" onclick="rc.sendMessageTo('all','all')">${_PEER.sendMsg}</button></td>
<td><button id="sendVideoToAll" onclick="rc.shareVideo('all');">${_PEER.sendVideo}</button></td> <td><button id="sendVideoToAll" onclick="rc.shareVideo('all');">${_PEER.sendVideo}</button></td>
<td><button id="ejectAllButton" onclick="rc.peerAction('me','${rc.peer_id}','eject',true,true)">${_PEER.ejectPeer}</button></td> <td><button id="ejectAllButton" onclick="rc.peerAction('me','${socket.id}','eject',true,true)">${_PEER.ejectPeer}</button></td>
</tr> </tr>
`; `;
} }
@@ -2197,7 +2197,7 @@ async function getParticipantsTable(peers) {
let peer_sendMsg = _PEER.sendMsg; let peer_sendMsg = _PEER.sendMsg;
let peer_id = peer_info.peer_id; let peer_id = peer_info.peer_id;
let avatarImg = getParticipantAvatar(peer_name); let avatarImg = getParticipantAvatar(peer_name);
if (rc.peer_id === peer_id) { if (socket.id === peer_id) {
table += ` table += `
<tr id='${peer_name}'> <tr id='${peer_name}'>
<td><img src="${avatarImg}"></td> <td><img src="${avatarImg}"></td>

عرض الملف

@@ -940,7 +940,6 @@ class RoomClient {
audio: { audio: {
echoCancellation: true, echoCancellation: true,
noiseSuppression: true, noiseSuppression: true,
sampleRate: 44100,
deviceId: deviceId, deviceId: deviceId,
}, },
video: false, video: false,

عرض الملف

@@ -237,15 +237,15 @@ function execVoiceCommands(transcript) {
break; break;
case commands.participantsVideoOff: case commands.participantsVideoOff:
printCommand(commands.participantsVideoOff); printCommand(commands.participantsVideoOff);
rc.peerAction('me', rc.peer_id, 'hide', true, true); rc.peerAction('me', socket.id, 'hide', true, true);
break; break;
case commands.participantsAudioOff: case commands.participantsAudioOff:
printCommand(commands.participantsAudioOff); printCommand(commands.participantsAudioOff);
rc.peerAction('me', rc.peer_id, 'mute', true, true); rc.peerAction('me', socket.id, 'mute', true, true);
break; break;
case commands.participantsKickOut: case commands.participantsKickOut:
printCommand(commands.participantsKickOut); printCommand(commands.participantsKickOut);
rc.peerAction('me', rc.peer_id, 'eject', true, true); rc.peerAction('me', socket.id, 'eject', true, true);
break; break;
case commands.fileShareOn: case commands.fileShareOn:
printCommand(commands.fileShareOn); printCommand(commands.fileShareOn);