Class: WebRTC

Apps.Presentation~WebRTC

new WebRTC(socket, options)

A interface of customized webrtc.io

Name Type Description
socket Apps.Presentation~Host#io| Apps.Presentation~Client#io

instance of socket.io

options object

Requires

  • module:webrtc.io.js

Members

$body jQueryObject

audio Audio

join function

leave function

on function

waiting boolean

Type Definitions

room Object

The Room Interface

Properties:
Name Type Description
rtc object
paused array
broadcast function

broadcast data using rtc data channel

send function

send data using rtc data channel

resume function
pause function
on function

sock webrtc.io

webrtc.io connection

Methods

add(stream, socketId)

Name Type Description
stream object
socketId string

attach(callback)

Name Type Description
callback function

remove(socketId)

Name Type Description
socketId string
comments powered by Disqus