Open exeldro opened 10 months ago
What's the use case for adding a new obs-browser js binding over say using obs-websockets? Is it just the hurdle of connecting to obs-ws?
Ever since obs-ws was made a core plugin I'm generally against adding new obs-browser bindings to avoid maintaining essentially two browser source APIs.
At the very least, I think a better approach here would be a more abstract system that allows browser sources to dispatch() an event to OBS plugins. Then your plugin could handle the source resizing in response to that event.
Description
Add function to resize the browser source from javascript
Motivation and Context
Allows browser sources to be sized to exactly fit its contents. This can be very useful for my Markdown Source plugin.
How Has This Been Tested?
On windows 11 64 bit using Markdown Source with the following javascript:
Types of changes
Checklist: