This project connects a PTZ usb camera and a browser source via an OBS lua script.
This version is MacOS only.
An example use is creating a moving virtual background by sending the PTZ data to the Photo Sphere Viewer Javascript library.
USB Video Capture (UVC) Utility for Mac
OBS Lua Script to run UVC commands
stateDiagram
direction LR
A: USB PTZ Camera
B: OBS
uvc: uvc util
l: lua Script
b: browser
t: text source
[*] --> B
B --> [*]
state B {
direction LR
A --> l
l --> uvc
uvc --> t
t --> b
}