Git Product home page Git Product logo

obs-remote-js's Introduction

OBS Remote JS

❗ DEPRECATION NOTICE ❗

This library is for the very old OBS Remote plugin for the very old OBS Classic. It DOES NOT work with the newer OBS Studio or obs-websocket. You probably want to use obs-websocket-js instead.


OBS Remote JS is a Javascript API for OBS Remote, a plugin for Open Broadcaster Software, which can be used in browsers and NodeJS. It largely follows the API laid out in this plugin, but some callbacks have been changed for ease of use. Documentation is provided in the docs folder.

Installation and Usage

#####Node npm install obs-remote

var obs = new OBSRemote();
obs.connect('localhost', 'myPassword');```

#####Browser (via Bower)
`bower install obs-remote`

```var obs = new OBSRemote();
obs.connect('localhost', 'myPassword');```

### License
OBS Remote JS is provided under the MIT license, which is available to read in the [LICENSE][] file.
[license]: LICENSE

obs-remote-js's People

Contributors

cach116 avatar mattmcnam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

obs-remote-js's Issues

this._authHash is not a function

I get this error every time I use obs.connect. Do I need nodecg or does this work on it's own?

`C:\Users\Max\Documents\stream launcher\node_modules\obs-remote\dist\obs-remote.js:168
this._authHash(password, function(authResp) {
^

TypeError: this._authHash is not a function
at OBSRemote.authenticate (C:\Users\Max\Documents\stream launcher\node_modules\obs-remote\dist\obs-remote.js:168:14)
at C:\Users\Max\Documents\stream launcher\node_modules\obs-remote\dist\obs-remote.js:142:22
at cb (C:\Users\Max\Documents\stream launcher\node_modules\obs-remote\dist\obs-remote.js:232:13)
at OBSRemote._messageReceived (C:\Users\Max\Documents\stream launcher\node_modules\obs-remote\dist\obs-remote.js:593:13)
at WebSocket._socket.onmessage (C:\Users\Max\Documents\stream launcher\node_modules\obs-remote\dist\obs-remote.js:157:18)
at WebSocket.onMessage (C:\Users\Max\Documents\stream launcher\node_modules\ws\lib\WebSocket.js:418:14)
at emitTwo (events.js:87:13)
at WebSocket.emit (events.js:172:7)
at Receiver.ontext (C:\Users\Max\Documents\stream launcher\node_modules\ws\lib\WebSocket.js:816:10)
at C:\Users\Max\Documents\stream launcher\node_modules\ws\lib\Receiver.js:477:18`

Uncaught DOMException when connecting to remote IP on remote server in Chrome

When NodeCG is deployed on a remote server, connecting to a remote IP address fails and the error Uncaught (in promise) DOMException: Only secure origins are allowed (see https://goo.gl/Y0ZkNV). is shown - this issue only appears in Chrome (v48 and v49 beta) so my current workaround is to use the NodeCG dashboard in Internet Explorer/Edge.

Stepping through the code shows that when crypto.subtle.digest('SHA-256') is called, the exception is raised.

For reference, bilhamil/OBSRemote works under the same conditions (remote host, remote IP) - although I'm not knowledgeable enough to identify any specific differences between the two implementations.

Poorly Documented

Please document the library . Adding a readme with bunch of functions or whatever isn't good documentation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.