Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.05 KB

File metadata and controls

34 lines (27 loc) · 1.05 KB

obsstudio.js

Normalizes and extends OBS Browser's JS interface.

Requirements

OBS Browser 1.31 or later.
This comes packaged with OBS Studio Full install.

Deviations

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 promise
  • obsstudio.getStatus() is made read only and now returns a promise
  • OBS related events are emitted against window.obsstudio instead of window

Using

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>

Documentation

For API documentation and examples refer to the wiki