From 898cc0cbf2bd1a238fad7b49acc8988ba72eb702 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Mon, 19 Dec 2022 12:30:25 +0200 Subject: [PATCH] Update --- public/bundle.js | 6 ++++++ public/index.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/public/bundle.js b/public/bundle.js index cbceb17..68203f4 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20384,6 +20384,12 @@ let originAssetId let consumerVideo // local consumer video(consumer not transport) let consumerAudio // local consumer audio(consumer not transport) +const remoteSoundControl = document.getElementById('remoteSoundControl'); + +remoteSoundControl.addEventListener('click', function handleClick() { + btn.textContent = 'Button clicked'; +}); + // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerOptions // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce let videoParams = { diff --git a/public/index.js b/public/index.js index 0d6298b..55efbf3 100644 --- a/public/index.js +++ b/public/index.js @@ -26,6 +26,12 @@ let originAssetId let consumerVideo // local consumer video(consumer not transport) let consumerAudio // local consumer audio(consumer not transport) +const remoteSoundControl = document.getElementById('remoteSoundControl'); + +remoteSoundControl.addEventListener('click', function handleClick() { + btn.textContent = 'Button clicked'; +}); + // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerOptions // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce let videoParams = {