Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activating hotkey by ID crashes obs-ptz #172

Open
jbrown123 opened this issue Sep 3, 2023 · 1 comment
Open

Activating hotkey by ID crashes obs-ptz #172

jbrown123 opened this issue Sep 3, 2023 · 1 comment

Comments

@jbrown123
Copy link

I'm using Bitfocus Companion to remote control OBS. It can generate keystrokes or it can activate a hotkey registered with OBS via the "activate hotkey by ID" API. I believe they are using the websocket API to communicate with OBS and calling the TriggerHotkeyByName function.

When I attempt to activate a PTZ preset (e.g. PTZ.Recall1) via the bitfocus tool I'm able to do that once or twice, then no presets work. I can't activate a preset using the mouse on the interface in OBS, an assigned hotkey, etc. Basically the PTZ plugin is just "dead" at that point. I have to restart OBS to get it to work again.

If I instead tell Companion to trigger the hotkey by keypress (e.g. control-alt-shift-1) then it works just fine.

I do this same thing (use Companion with the hotkey by ID) with OBS commands and with other plugins and they work fine. Notably the lower third plugin for example (https://obsproject.com/forum/resources/animated-lower-thirds-with-dockable-control-panel.1057/). This leads me to believe it is something in the obs-ptz plugin that is having issues.

@normen
Copy link

normen commented Nov 22, 2023

It might have to do with the fact that the plugin needs the "key released" to know when to stop controlling camera movement (given, thats not the case for presets). The websocket commands are just "triggers", so theres no key release event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants