Skip to content

Commit

Permalink
[mirotalkbro] - popup viewer camera/microphone status
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 20, 2025
1 parent b9f6caa commit 797e405
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/js/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ function toggleAudio(enabled) {
username: username,
enabled: enabled,
});

popupMessage('toast', 'Microphone', `Your microphone is ${enabled ? 'on' : 'off'}`, 'top');
}

// =====================================================
Expand All @@ -361,6 +363,8 @@ function toggleVideo() {
username: username,
enabled: !enabled,
});

popupMessage('toast', 'Camera', `Your camera is ${enabled ? 'off' : 'on'}`, 'top');
}

// =====================================================
Expand Down

0 comments on commit 797e405

Please sign in to comment.