# Class: XMPPVideoRoom

## XMPPVideoRoom

#### new XMPPVideoRoom(xmppUrl, srvurl)

Interface with Jitsi Video Room and WebRTC-streamer API

##### Parameters:

Name | Type | Description
--- | --- | ---
`xmppUrl` | string | url of XMPP server
`srvurl` | string | url of WebRTC-streamer

Source:
  - xmppvideoroom.js, line 10

### Methods

#### join(roomid, url, name)

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

##### Parameters:

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

Source:
  - xmppvideoroom.js, line 24

#### leave(roomid, name)

Ask to leave a XMPP Video Room user

##### Parameters:

Name | Type | Description
--- | --- | ---
`roomid` | string | id of the XMPP Video Room to leave
`name` | string | name in Video Room

Source:
  - xmppvideoroom.js, line 54

#### leaveAll()

Ask to leave all XMPP Video Room

Source:
  - xmppvideoroom.js, line 65