Skip to content

Commit

Permalink
Fix muted
Browse files Browse the repository at this point in the history
  • Loading branch information
yeeharn authored and LunatiqueCoder committed Aug 13, 2023
1 parent 801f6e6 commit f111216
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ export const VideoPlayer = (props: VideoPlayerProps) => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [showControls, loading]);

useEffect(() => {
setMuted(muted);
}, [muted]);

useEffect(() => {
const newVolume = volumePosition / volumeWidth;

Expand Down

0 comments on commit f111216

Please sign in to comment.