obsproject / obs-websocket

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

Feature Request: Reverse Connection #902

Closed fGeorjje closed 2 years ago

fGeorjje commented 2 years ago

Feature Request Type

Other

Feature Request Type (Other)

Reverse Connection

Requested Feature

A configuration option to have obs-websocket establish a connection to an existing websocket server, instead of hosting a local server on the user machine.

Requested Feature Usage Scenario

I run production for a fully remotely streamed charity fundraising event. We distribute portable-mode OBS instances to our talent containing obs-websocket, but because the plugin hosts itself locally on the client machine, we have to jump through hoops (distributing an entirely separate application and launching it along OBS) to get bidirectional connections established.

Setting up port forwarding for 100+ talents during tech checks is not feasible, the connection must be established from the client machine. Having the plugin connect itself would cut out the middle proxy.

tt2468 commented 2 years ago

A client mode has been attempted multiple times in the past, at various stages of obs-websocket's development. Unfortunately, supporting both a client and a server mode has proven overly difficult to implement.

One idea could be to use a python script in obs-scripting to connect to obs-websocket, and then connect to your own hosted websocket and forward messages back and forth. That way you can at least keep everything contained within OBS (no dedicated processes)