Skip to content

Commit

Permalink
bug: slider on mute
Browse files Browse the repository at this point in the history
  • Loading branch information
asadbek064 committed Aug 26, 2023
1 parent 3dfc0b0 commit 1de32f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.6",
"version": "2.0.7",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/components/Controls/VolumeButton/VolumeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ const VolumeButton = () => {
(percent: number) => {
if (!videoEl) return;

if (videoEl.muted) videoEl.muted = false;

videoEl.volume = percent / 100;
},
[videoEl]
Expand Down

0 comments on commit 1de32f1

Please sign in to comment.