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"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
|
||||
if (isDesktop) {
|
||||
if (volume == 0) {
|
||||
setShowVolume(true);
|
||||
video.volume = 1;
|
||||
} else {
|
||||
setShowVolume(false);
|
||||
video.volume = 0;
|
||||
}
|
||||
if (volume == 0) {
|
||||
setShowVolume(true);
|
||||
video.volume = 1;
|
||||
} else {
|
||||
setShowVolume(!showVolume);
|
||||
setShowVolume(false);
|
||||
video.volume = 0;
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user