This commit is contained in:
Sergiu Toma 2022-12-19 12:40:54 +02:00
parent 2ada7b66db
commit 968da6ea98
3 changed files with 5 additions and 5 deletions

View File

@ -20390,10 +20390,10 @@ remoteSoundControl.defaultMuted = true
remoteSoundControl.addEventListener('click', function handleClick() {
console.log('remoteSoundControl.textContent', remoteSoundControl.textContent);
if (remoteSoundControl.textContent === 'Unmute') {
vid.muted = false
remoteSoundControl.muted = false
remoteSoundControl.textContent = 'Mute';
} else {
vid.muted = true
remoteSoundControl.muted = true
remoteSoundControl.textContent = 'Unmute';
}
});

View File

@ -48,7 +48,7 @@
</td>
<td>
<div id="sharedBtns">
<video id="remoteVideo" autoplay class="video" muted></video>
<video id="remoteVideo" autoplay class="video" muted controls></video>
</div>
</td>
</tr>

View File

@ -32,10 +32,10 @@ remoteSoundControl.defaultMuted = true
remoteSoundControl.addEventListener('click', function handleClick() {
console.log('remoteSoundControl.textContent', remoteSoundControl.textContent);
if (remoteSoundControl.textContent === 'Unmute') {
vid.muted = false
remoteSoundControl.muted = false
remoteSoundControl.textContent = 'Mute';
} else {
vid.muted = true
remoteSoundControl.muted = true
remoteSoundControl.textContent = 'Unmute';
}
});