Change-Id: I60e5f101394137ac5be221c345a5aaa560dbcc5cchanges/56/9356/1
parent
a5311ede07
commit
9817a3936b
@ -0,0 +1,54 @@
|
||||
|
||||
JanusVideoroomClient
|
||||
====================
|
||||
|
||||
Node.js client that implements a subset of the WebSocket interface of the Janus WebRTC Gateway.
|
||||
|
||||
Note: For now it supports the videoroom plugin only.
|
||||
|
||||
### Setup
|
||||
|
||||
```javascript
|
||||
var JanusVideoroomClient = require('janus-videoroom-client').Janus;
|
||||
```
|
||||
|
||||
### Create a new client
|
||||
|
||||
#### Without authentication
|
||||
|
||||
```javascript
|
||||
var client = new JanusVideoroomClient({
|
||||
url: 'ws://localhost:8188'
|
||||
});
|
||||
```
|
||||
|
||||
#### Token based authentication
|
||||
|
||||
```javascript
|
||||
var client = new JanusVideoroomClient({
|
||||
url: 'ws://localhost:8188',
|
||||
token: 'yourToken'
|
||||
});
|
||||
```
|
||||
|
||||
#### Static secret authentication
|
||||
|
||||
```javascript
|
||||
var client = new JanusVideoroomClient({
|
||||
url: 'ws://localhost:8188',
|
||||
apiSecret: 'yourStaticSecret'
|
||||
});
|
||||
```
|
||||
|
||||
Run tests
|
||||
---------
|
||||
|
||||
npm test
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in new issue