feat(media): [closes #165] Hide media control selectors when not in use (#166)

This commit is contained in:
bharat 2023-09-16 20:34:58 +05:30 committed by GitHub
parent 29a20a930e
commit 3fe80f58fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ export function RoomAudioControls({ peerRoom }: RoomAudioControlsProps) {
{isSpeakingToRoom ? <RecordVoiceOver /> : <VoiceOverOff />}
</MediaButton>
</Tooltip>
{audioDevices.length > 0 && (
{audioDevices.length > 0 && isSpeakingToRoom && (
<Box sx={{ mt: 1 }}>
<List
component="nav"

View File

@ -72,7 +72,7 @@ export function RoomVideoControls({ peerRoom }: RoomVideoControlsProps) {
{isCameraEnabled ? <Videocam /> : <VideocamOff />}
</MediaButton>
</Tooltip>
{videoDevices.length > 0 && (
{videoDevices.length > 0 && isCameraEnabled && (
<Box sx={{ mt: 1 }}>
<List
component="nav"