This represents a 'source' in OBS. It only holds data.
Constructs a new OBSSource object.
width
Numberheight
Numberx
Numbery
Numbername
Stringrendered
Boolean
This represents a 'scene' in OBS. It only holds data.
Constructs a new OBSSource object.
name
Stringsources
Array of OBSSource
This class is responsible for communication with OBS.
Constructs a new OBSRemote object.
Connects to OBS. If address is not given, localhost:4444
is used.
If the password is given, OBSRemote will automatically attempt authentication.
Attempts to authenticate with OBS.
Will cause either onAuthenticationFailed
or onAuthenticationSucceeded
to be called
Checks if authentication is required
Starts or stops OBS from streaming, recording, or previewing.
Result of this will be either the onStreamStarted
or onStreamStopped
callback.
Requests the OBS Remote plugin version
Gets name of current scene and full list of all other scenes
Gets the current scene and full list of sources
Tells OBS to switch to the given scene name
If successful the onSceneSwitched
will be called
Reorders sources in the current scene
sources
can be an Array of either Strings or OBSSources
Sets a source's render state in the current scene
Gets current streaming status, and if we're previewing or not
remote.getVolumes(function (Number microphoneVolume, Boolean microphoneMuted, Number desktopVolume, Boolean desktop) {} )
Gets current volume levels and mute statuses
Sets microphone volume, and whether we're still adjusting it
Toggles microphone mute state
Sets desktop volume, and whether we're still adjusting it
Toggles desktop mute state
Called when the connection to OBS is made You may still need to authenticate!
Called when the connection to OBS is closed
Called when the connection to OBS fails
Called when authentication is successful
Called when authentication fails
Called when OBS starts streaming, recording or previewing
Called when OBS stops streaming, recording or previewing
remote.onStatusUpdate(streaming, previewing, bytesPerSecond, strain, streamDurationInMS, totalFrames, droppedFrames, framesPerSecond)
Called frequently by OBS while live or previewing
Called when OBS switches scene
Called when the scene list changes (new order, addition, removal or renaming)
Called when source oder changes in the current scene
Called when a source is added or removed from the current scene
Called when a source in the current scene changes
Called when the microphone volume changes, or is muted
Called when the desktop volume changes, or is muted