Creating specific source types using the API

Neroph

New Member
I'm trying to write a script that will (as part of a larger process) create a Media Source. Since it's possible to do this using the UI, it seems like it should be possible to do this automatically with code, however I can't for the life of me find any kind of method to do this in the documentation or the source code.

Creating a custom source is easy enough, however it seems like it would be a waste to create an entire custom source for something which is already implemented in OBS (i.e. a source that uses a video file)
 
Top