obsproject / obs-browser

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

Add function to signal the browser source from JavaScript #439

Open exeldro opened 5 months ago

exeldro commented 5 months ago

Description

adds void source_browser_signal(ptr source, string signal) to the global signal handler adds void browser_signal(ptr source, string signal) to the signal handler of the browser source in javascript you can signal a signal handler like this: window.obsstudio.signal("signal")

Motivation and Context

Allow JavaScript to send signals to plugins, without the need for an obs websocket connection More generic solution replacing #423

How Has This Been Tested?

On windows 11 with changes to the markdown source to allow it to resize it self

Types of changes

Checklist: