Skip to content

Commit

Permalink
fix(player): muted prop should take priority over storage
Browse files Browse the repository at this point in the history
closes #1247
  • Loading branch information
mihar-22 committed Apr 22, 2024
1 parent cf9b193 commit 7283344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vidstack/src/core/state/media-player-delegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class MediaPlayerDelegate {

if (provider) {
provider.setVolume((await storage?.getVolume()) ?? volume());
provider.setMuted((await storage?.getMuted()) ?? muted());
provider.setMuted(muted() || !!(await storage?.getMuted()));

const audioGain = (await storage?.getAudioGain()) ?? 1;
if (audioGain > 1) provider.audioGain?.setGain?.(audioGain);
Expand Down

0 comments on commit 7283344

Please sign in to comment.