From 28059144cf5e1e3d69669ca6c1585ad91b96ea10 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Mon, 19 Dec 2022 12:33:19 +0200 Subject: [PATCH] Update --- public/bundle.js | 15 ++++++++++++++- public/index.js | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 68203f4..ccd5897 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20387,7 +20387,20 @@ let consumerAudio // local consumer audio(consumer not transport) const remoteSoundControl = document.getElementById('remoteSoundControl'); 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 diff --git a/public/index.js b/public/index.js index 55efbf3..520fbe7 100644 --- a/public/index.js +++ b/public/index.js @@ -29,7 +29,20 @@ let consumerAudio // local consumer audio(consumer not transport) const remoteSoundControl = document.getElementById('remoteSoundControl'); 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