Skip to content

Commit

Permalink
Fix volume button on iOS/Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Feb 28, 2024
1 parent 075507a commit f3cdd23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VideoPlayerContexts/VolumeContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function VolumeContextProvider({children}) {
if (!currentVideoPlayerRef.current) {
return;
}
currentVideoPlayerRef.current.setStatusAsync({volume: newVolume});
currentVideoPlayerRef.current.setStatusAsync({volume: newVolume, isMuted: newVolume === 0});
volume.value = newVolume;
},
[currentVideoPlayerRef, volume],
Expand Down

0 comments on commit f3cdd23

Please sign in to comment.