How to use the obs-websocket-js function in obs-websocket-js

To help you get started, we’ve selected a few obs-websocket-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github project-slippi / slippi-desktop-app / app / domain / SlpFileWriter.js View on Github external
constructor(settings) {
    this.folderPath = settings.folderPath;
    this.onFileStateChange = settings.onFileStateChange;
    this.obsSourceName = settings.obsSourceName;
    this.obsIP = settings.obsIP;
    this.id = settings.id;
    this.consoleNick = settings.consoleNick;
    this.currentFile = this.getClearedCurrentFile();
    this.obs = new OBSWebSocket();
    this.statusOutput = {
      status: false,
      timeout: null,
    };
    this.isRelaying = settings.isRelaying;
    this.clients = [];
    this.manageRelay();
  }
github clarkio / ttv-chat-light / src / server / obs-manager.ts View on Github external
constructor(
    private sceneEffectSettings: any | undefined,
    private permittedScenesForCommand: any | undefined,
    private sceneAliases: any | undefined
  ) {
    this.initSceneEffects();
    this.obs = new ObsWebSocket();
    this.obs
      .connect({
        address: config.obsSocketsServer,
        password: config.obsSocketsKey
      })
      .then(() => {
        log('log', constants.logs.obsConnectionSuccessfulMessage);
        this.getSceneList();
      })
      .catch(this.handleError);

    this.obs.on('error', this.handleError);
  }
github 715209 / nginx-obs-automatic-low-bitrate-switching / src / components / ObsSwitcher.js View on Github external
constructor(address, password, low, normal, offline, lowBitrateTrigger) {
        super();

        this.obs = new OBSWebSocket();
        this.isLive = false;
        this.address = address;
        this.password = password;
        this.lowBitrateScene = low;
        this.normalScene = normal;
        this.offlineScene = offline;
        this.lowBitrateTrigger = lowBitrateTrigger;
        this.bitrate = null;
        this.nginxVideoMeta = null;
        this.streamStatus = null;
        this.heartbeat = null;
        this.obsStreaming = false;
        this.currentScene = null;
        this.nginxSettings;
        this.previousScene = this.lowBitrateScene;
        this.scenes = null;

obs-websocket-js

OBS Websocket API in Javascript, consumes @Palakis/obs-websocket

MIT
Latest version published 4 months ago

Package Health Score

79 / 100
Full package analysis

Popular obs-websocket-js functions