# Class: JanusVideoRoom

## JanusVideoRoom

#### new JanusVideoRoom(janusUrl, srvurl)

Interface with Janus Gateway Video Room and WebRTC-streamer API

##### Parameters:

Name | Type | Description
--- | --- | ---
`janusUrl` | string | url of Janus Gateway
`srvurl` | string | url of WebRTC-streamer

Source:
  - janusvideoroom.js, line 10

### Methods

#### join(janusroomid, url, name)

Ask to publish a stream from WebRTC-streamer in a Janus Video Room user

##### Parameters:

Name | Type | Description
--- | --- | ---
`janusroomid` | string | id of the Janus Video Room to join
`url` | string | WebRTC stream to publish
`name` | string | name in Janus Video Room

Source:
  - janusvideoroom.js, line 23

#### leave(janusroomid, url, name)

Ask to unpublish a stream from WebRTC-streamer in a Janus Video Room user

##### Parameters:

Name | Type | Description
--- | --- | ---
`janusroomid` | string | id of the Janus Video Room to join
`url` | string | WebRTC stream to publish
`name` | string | name in Janus Video Room

Source:
  - janusvideoroom.js, line 48

#### subscribeEvents(fn)

subscribeEvents

##### Parameters:

Name | Type | Description
--- | --- | ---
`fn` | string | funtcion to call

Source:
  - janusvideoroom.js, line 76