This adds integration into obs-websocket's new plugin API. The vendor name registered is obs-browser.
Vendor requests:
emit_event - Takes event_name and ?event_data parameters. Emits a custom event to all browser sources.
Motivation and Context
Integration between obs-browser and obs-websocket is a great proof of concept for our API and should serve as a great example for third-party plugin developers.
How Has This Been Tested?
Tested by sending a request to obs-websocket and listening for the event in a test HTML page.
Description
This adds integration into obs-websocket's new plugin API. The vendor name registered is
obs-browser
.Vendor requests:
emit_event
- Takesevent_name
and ?event_data
parameters. Emits a custom event to all browser sources.Motivation and Context
Integration between obs-browser and obs-websocket is a great proof of concept for our API and should serve as a great example for third-party plugin developers.
How Has This Been Tested?
Tested by sending a request to obs-websocket and listening for the event in a test HTML page.
Request:
Test HTML Page:
Result in dev tools:
Types of changes
Checklist: