# Class: WebRtcStreamer

## WebRtcStreamer

#### new WebRtcStreamer(videoElement, srvurl)

Interface with WebRTC-streamer API

##### Parameters:

Name | Type | Description
--- | --- | ---
`videoElement` | string | id of the video element tag
`srvurl` | string | url of webrtc-streamer (default is current location)

Source:
  - webrtcstreamer.js, line 8

### Methods

#### connect(videourl, audiourl, options, stream)

Connect a WebRTC Stream to videoElement

##### Parameters:

Name | Type | Description
--- | --- | ---
`videourl` | string | id of WebRTC video stream
`audiourl` | string | id of WebRTC audio stream
`options` | string | options of WebRTC call
`stream` | string | local stream to send

Source:
  - webrtcstreamer.js, line 28

#### disconnect()

Disconnect a WebRTC Stream and clear videoElement source

Source:
  - webrtcstreamer.js, line 54