Namespace: webrtc

jsxc.webrtc

WebRTC namespace for jsxc.
Source:

Members

(static) AUTO_ACCEPT

should we auto accept incoming calls?
Source:

(static) chatJids

bare jid to current jid mapping
Source:

(static) conn

strophe connection
Source:

(static) last_caller

jid of the last caller
Source:

(static) localStream

local video stream
Source:

(static) remoteStream

remote video stream
Source:

(static) reqFileFeatures

required disco features for file transfer
Source:

(static) reqVideoFeatures

required disco features for video call
Source:

Methods

(static) attachMediaStream(element, stream)

Attach media stream to element.
Parameters:
Name Type Description
element Element | jQuery
stream mediastream
Source:

(static) getCapableRes(jid, features) → {Array}

Return list of capable resources.
Parameters:
Name Type Description
jid
features string | Array.<string> list of required features
Source:
Returns:
Type
Array

(static) getScreenMedia()

Get screen media from local browser.
Source:

(static) getUserMedia()

Get user media from local browser.
Source:

(static) hangUp()

Hang up the current call.
Source:

(static) initiateOutgoingCall(jid, stream)

Start jingle session to jid with stream.
Parameters:
Name Type Description
jid String
stream Object
Source:

(static) initiateScreenSharing(jid, stream)

Initiate outgoing (one-way) jingle session to jid with stream.
Parameters:
Name Type Description
jid String
stream Object
Source:

(static) onIncoming(session)

Process incoming jingle offer.
Parameters:
Name Type Description
session BaseSession
Source:

(static) onIncomingFileTransfer(session)

Process incoming file offer.
Parameters:
Name Type Description
session FileSession
Source:

(static) onIncomingStream(session)

Process incoming stream offer.
Parameters:
Name Type Description
session MediaSession
Source:

(static) onReceivedFile(sess, file, metadata)

Display received file.
Parameters:
Name Type Description
sess object
file File
metadata object file metadata
Source:

(static) onSessionAccepted(session)

Session was accepted by other peer.
Parameters:
Name Type Description
session BaseSession
Source:

(static) onTerminated(session, reason)

Process jingle termination event.
Parameters:
Name Type Description
session BaseSession
reason Object Reason for termination
Source:

(static) reqUserMedia()

Request media from local user.
Source:

(static) sendFile(jid, file) → {object}

Send file to full jid via jingle.
Parameters:
Name Type Description
jid string full jid
file file
Source:
Returns:
session
Type
object

(static) setStatus(txt, d)

Display status message to user.
Parameters:
Name Type Description
txt message
d duration in ms
Source:

(static) snapshot(video)

Make a snapshot from a video stream and display it.
Parameters:
Name Type Description
video Video stream
Source:

(static) startCall(jid, um)

Start a call to the specified jid.
Parameters:
Name Type Description
jid String full jid
um Array.<String> requested user media
Source:

(static) startScreenSharing(jid)

Start outgoing screen sharing session.
Parameters:
Name Type Description
jid String
Source:

(static) updateIcon(bid)

Enable or disable "video" icon and assign full jid.
Parameters:
Name Type Description
bid CSS conform jid
Source: