Skip to content

Commit

Permalink
el.muted = !SpeakerStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
xdzqyyds committed Nov 21, 2024
1 parent 559e5f6 commit 0bcb6d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/components/device.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default function DeviceBar(props: { streamId: string }) {
</button>
<div className="flex flex-col justify-between w-1 pointer-events-none">
<div></div>
{!SpeakerStatus
{SpeakerStatus
? <div></div>
: <div className="w-8 h-1 bg-red-500 rounded-full rotate-45"
style={{
Expand Down
2 changes: 1 addition & 1 deletion webapp/components/player/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Player(props: { stream: MediaStream, muted: boolean, aud
el.setSinkId(currentDeviceSpeaker)
}

el.muted = SpeakerStatus
el.muted = !SpeakerStatus
el.play()

return () => {
Expand Down
2 changes: 1 addition & 1 deletion webapp/store/atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const enabledPresentationAtom = atom(get => get(presentationStreamAtom).stream.g
enabledPresentationAtom.debugLabel = 'enabledPresentation'

const deviceSpeakerAtom = atom<string>('')
const SpeakerStatusAtom = atom<boolean>(false)
const SpeakerStatusAtom = atom<boolean>(true)

export {
locationAtom,
Expand Down

0 comments on commit 0bcb6d6

Please sign in to comment.