Namespace: RTCPeerConnection

QB.webrtc. RTCPeerConnection

Methods

staticQB.webrtc.RTCPeerConnection._addIceCandidate(iceCandidate){Promise.<void>}

modules/webrtc/qbRTCPeerConnection.js, line 273
Add ice candidate.
Name Type Description
iceCandidate RTCIceCandidateInit
Returns:
Type Description
Promise.<void>

staticQB.webrtc.RTCPeerConnection.addCandidates(iceCandidates)

modules/webrtc/qbRTCPeerConnection.js, line 286
Add ice candidates.
Name Type Description
iceCandidates Array.<RTCIceCandidateInit>

staticQB.webrtc.RTCPeerConnection.addLocalStream(stream)

modules/webrtc/qbRTCPeerConnection.js, line 257
Add local stream.
Name Type Description
stream MediaStream

staticQB.webrtc.RTCPeerConnection.getRemoteSDP(){RTCSessionDescriptionInit|undefined}

modules/webrtc/qbRTCPeerConnection.js, line 125
Returns SDP if it was set previously.
Returns:
Type Description
RTCSessionDescriptionInit | undefined

staticQB.webrtc.RTCPeerConnection.qbRTCPeerConnection(config)

modules/webrtc/qbRTCPeerConnection.js, line 16
Name Type Description
config RTCConfiguration optional

staticQB.webrtc.RTCPeerConnection.setLocalSessionDescription(params, callback)

modules/webrtc/qbRTCPeerConnection.js, line 135
Create offer or answer SDP and set as local description.
Name Type Description
params Object
Name Type Description
type 'answer' | 'offer'
options RTCOfferOptions optional
callback function

staticQB.webrtc.RTCPeerConnection.setRemoteSDP(newSDP)

modules/webrtc/qbRTCPeerConnection.js, line 111
Save remote SDP for future use.
Name Type Description
newSDP RTCSessionDescriptionInit

staticQB.webrtc.RTCPeerConnection.setRemoteSessionDescription(description, callback){void}

modules/webrtc/qbRTCPeerConnection.js, line 230
Set remote session description.
Name Type Description
description RTCSessionDescriptionInit
callback function
Returns:
Type Description
void