Skip to content

Commit

Permalink
Merge branch 'master' into seekbar-controls-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Aug 13, 2023
2 parents f440e5b + f111216 commit 3c521f6
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 @@ -422,6 +422,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 3c521f6

Please sign in to comment.