Skip to content

Commit

Permalink
Change LocalAudioOutputProvider to not bind an audio element on start…
Browse files Browse the repository at this point in the history
…up when isAudioOn set is false
  • Loading branch information
James Cheese committed Sep 16, 2024
1 parent fd5a387 commit 110bf27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/LocalAudioOutputProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const LocalAudioOutputProvider: React.FC<
return;
}

if (audioRef.current) {
if (audioRef.current && isAudioOn) {
(async (element: HTMLAudioElement) => {
try {
await audioVideo.bindAudioElement(element);
Expand Down

0 comments on commit 110bf27

Please sign in to comment.