obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.86k stars 707 forks source link

Feature Request: Control virtual camera source #1222

Open adhawkins opened 5 months ago

adhawkins commented 5 months ago

Feature Request Type

RPC Request

Feature Request Type (Other)

No response

Requested Feature

It is currently possible to turn the virtual camera on and off, toggle its state and request its state. However, there is no mechanism that I can see to be able to configure the source of the virtual camera.

There should be a command to set the source of the virtual camera, allowing you to specify Program, Preview, Scene (and the scene name) or Source (and the source name).

Requested Feature Usage Scenario

I stream CoOp games with my friend. While streaming, we are in a Discord call, and send our webcam from OBS to Discord using the virtual camera feature. When I go on a break, I have to take down my green screen to get out of the room. If he forgets to disable my camera source, it means everyone on his stream sees my streaming room while I'm away. What I'd like to do is use automation software (Streamer.Bot) to notice the change to the 'Break' scene, and switch the source of the virtual camera from my webcam to a static image.