obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
777 stars 221 forks source link

Draw different things on stream and in interact window? #49

Closed Simran-B closed 6 years ago

Simran-B commented 7 years ago

I'm not sure how interacting with the browser source works internally (if it's drawn independently), but if it's possible, I would love to see a property window.obsstudio.isInteractive that could be used to let a web app draw different things in the window for interaction and the source as later seen on stream.

It could show additional (but perhaps confidential) info to the broadcaster, or simply to hide buttons to trigger actions on the page to the viewers.

BTW: Is there any chance that one could interact directly with the browser source preview instead of in a separate window? For certain applications it would probably be sufficient if the preview could receive left and right clicks to trigger actions (based on where you clicked, to simulate a button).

CoDEmanX commented 7 years ago

Can anyone clarify if something can be drawn in interactive mode, which will not be visible in the preview/stream?

OsirisNL commented 7 years ago

This is not possible, the interact window shows w/e the source shows.

CoDEmanX commented 7 years ago

Bummer! Any chance though to allow direct interaction without the popup window?

OsirisNL commented 7 years ago

No, OBS Studio would need to support that.

kc5nra commented 7 years ago

The way most people get around this is by using websockets to have two different 'views', and the one in obs is the rendered one while a control panel-esque view is what you would interact with outside of OBS.

CoDEmanX commented 7 years ago

That's what I guessed, having a web or a local service that renders differently (admin view in a browser tab, stream view in OBS). Was just curious.