LINXD-2270-p2 #19

Closed
sergiu wants to merge 58 commits from LINXD-2270-p2 into develop
2 changed files with 28 additions and 2 deletions
Showing only changes of commit 28059144cf - Show all commits

View File

@ -20387,7 +20387,20 @@ let consumerAudio // local consumer audio(consumer not transport)
const remoteSoundControl = document.getElementById('remoteSoundControl'); const remoteSoundControl = document.getElementById('remoteSoundControl');
remoteSoundControl.addEventListener('click', function handleClick() { remoteSoundControl.addEventListener('click', function handleClick() {
btn.textContent = 'Button clicked'; console.log('remoteSoundControl.textContent', remoteSoundControl.textContent);
remoteSoundControl.textContent = 'Button clicked';
// let soundElementIcon = document.getElementById('sound')
// if (isSoundOn) {
// soundElementIcon.src = noSoundImage
// soundElementIcon.alt = 'no-sound-image'
// isSoundOn = false
// vid.muted = !isSoundOn
// } else {
// soundElementIcon.src = soundImage
// soundElementIcon.alt = 'sound-image'
// isSoundOn = true
// vid.muted = !isSoundOn
// }
}); });
// https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerOptions // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerOptions

View File

@ -29,7 +29,20 @@ let consumerAudio // local consumer audio(consumer not transport)
const remoteSoundControl = document.getElementById('remoteSoundControl'); const remoteSoundControl = document.getElementById('remoteSoundControl');
remoteSoundControl.addEventListener('click', function handleClick() { remoteSoundControl.addEventListener('click', function handleClick() {
btn.textContent = 'Button clicked'; console.log('remoteSoundControl.textContent', remoteSoundControl.textContent);
remoteSoundControl.textContent = 'Button clicked';
// let soundElementIcon = document.getElementById('sound')
// if (isSoundOn) {
// soundElementIcon.src = noSoundImage
// soundElementIcon.alt = 'no-sound-image'
// isSoundOn = false
// vid.muted = !isSoundOn
// } else {
// soundElementIcon.src = soundImage
// soundElementIcon.alt = 'sound-image'
// isSoundOn = true
// vid.muted = !isSoundOn
// }
}); });
// https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerOptions // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerOptions