From 3a8bfc28674a0633f140a189045be8c76e3a3a6d Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 6 Dec 2023 15:55:18 +0000 Subject: [PATCH] Reset video/audio buttons when switching camera. --- static/cameras.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/cameras.js b/static/cameras.js index 83b7312..144894b 100644 --- a/static/cameras.js +++ b/static/cameras.js @@ -35,7 +35,13 @@ function selectCamera(name) { $('#video-button').hide(); } + $('#audio-button span').text('Audio'); + $('#video-button span').text('Video'); + stopAudioStream(); + audioPlaying = false; + videoPlaying = false; + if (audioUrl) { $('#audio-button-container').css('display', 'inline-block'); } else {