Skip to content

Commit

Permalink
Reset video/audio buttons when switching camera.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Dec 6, 2023
1 parent 5bbad1b commit 3a8bfc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions static/cameras.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3a8bfc2

Please sign in to comment.