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:
 
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:
 
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:
 
subscribeEvents(fn)
    subscribeEvents
    Parameters:
| Name | Type | Description | 
|---|---|---|
fn | 
            
            string | funtcion to call | 
- Source: