mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Adjust volume behavior
This commit is contained in:
parent
36abc2a73f
commit
dad54ca2b0
@ -326,17 +326,12 @@ function VideoControls({
|
|||||||
className="size-5"
|
className="size-5"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
if (volume == 0) {
|
||||||
if (isDesktop) {
|
setShowVolume(true);
|
||||||
if (volume == 0) {
|
video.volume = 1;
|
||||||
setShowVolume(true);
|
|
||||||
video.volume = 1;
|
|
||||||
} else {
|
|
||||||
setShowVolume(false);
|
|
||||||
video.volume = 0;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
setShowVolume(!showVolume);
|
setShowVolume(false);
|
||||||
|
video.volume = 0;
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user