Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

PTZ Controls remain active even when window is not highlighted #8

Open
Tuskiurhil opened this issue Jul 13, 2022 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@Tuskiurhil
Copy link
Owner

Bug Report sent through Application

When a Live View window is open, the PTZ controls remain active for as long as the window is open. Chatting, browsing the web, etc. will trigger PTZ controls regardless.

Possible Fix: Check if Live View window is highlighted before executing PTZ commands.

@Tuskiurhil Tuskiurhil added the bug Something isn't working label Jul 13, 2022
@Tuskiurhil Tuskiurhil self-assigned this Jul 13, 2022
@Tuskiurhil
Copy link
Owner Author

Checking for an active window isn't as easy to implement as I hoped. (Huge differences in approach depending on Operating System of User)

Will look into implementing a button combo to turn feature on/off.

@Tuskiurhil
Copy link
Owner Author

Working on implementing a shortcut/key-combo that turns the controls on/off.
I was thinking of Alt+P.

Another thing I'll work on will be a background check for the type of camera.
(Dahua PTZ usually start with SD (Speed-Dome) or PTZ. [e.g. SD2A500-GN-HI-A-PV-0400, PTZ1A225-HNR-XA, SD6C3432XB-HNR-AGQ-PV])

If the camera name starts with SD or PTZ, the LiveView will provide a visual feedback that:
PTZ Controls are available
and
wether they're turned on or off

This will be in the next version.

@Tuskiurhil
Copy link
Owner Author

Added ability to toggle PTZ Controls with ALT+P in 0.3.

Ticket will remain open until active-window issue is resolved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant