Normalizes and extends OBS Browser's JS interface.
OBS Browser 1.31 or later.
This comes packaged with OBS Studio Full install.
obsstudio.js alters behaviors of the OBS interface in the following ways:
obsstudio.pluginVersion
is made read only.obsstudio.getCurrentScene()
is made read only and now returns a promiseobsstudio.getStatus()
is made read only and now returns a promise- OBS related events are emitted against
window.obsstudio
instead ofwindow
Include obsstudio.js in your html file prior to scripts that make use of it:
<html>
<head>
<!-- Other head stuff -->
<script src="./obsstudio.js"></script>
<!-- Other scripts that make use of the modified obsstudio object -->
</head>
<body>
...
</body>
</html>
For API documentation and examples refer to the wiki