LINXD-2270-p2 #19
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user