All helper and utility functions for
class are listed here.IceConnection
- Source:
Methods
(private, static) addIceCandidate(targetMid, candidateId, candidateType, nativeCandidate, roomState)
Parameters:
Name | Type | Description |
---|---|---|
targetMid |
String |
The mid of the target peer |
candidateId |
String |
The id of the ICE Candidate |
candidateType |
String |
Type of the ICE Candidate |
nativeCandidate |
RTCIceCandidate |
An RTCIceCandidate Object |
roomState |
SkylinkState |
Skylink State |
Fires:
- event:candidateProcessingState
(private, static) addIceCandidateFailure(room, targetMid, candidateId, candidateType, candidate, error)
Failure callback for adding an IceCandidate
Parameters:
Name | Type | Description |
---|---|---|
room |
SkylinkRoom |
The current room |
targetMid |
String |
The mid of the target peer |
candidateId |
String |
The id of the ICE Candidate |
candidateType |
String |
Type of the ICE Candidate |
candidate |
RTCIceCandidate |
An RTCIceCandidate Object |
error |
Error |
Error |
Fires:
- event:candidateProcessingState
(private, static) addIceCandidateFromQueue(targetMid, room)
Parameters:
Name | Type | Description |
---|---|---|
targetMid |
String | |
room |
SkylinkRoom |
(private, static) addIceCandidateSuccess(room, targetMid, candidateId, candidateType, candidate)
Success callback for adding an IceCandidate
Parameters:
Name | Type | Description |
---|---|---|
room |
SkylinkRoom |
The current room |
targetMid |
String |
The mid of the target peer |
candidateId |
String |
The id of the ICE Candidate |
candidateType |
String |
Type of the ICE Candidate |
candidate |
RTCIceCandidate |
An RTCIceCandidate Object |
Fires:
- event:candidateProcessingState
(private, static) addIceCandidateToQueue(targetMid, candidateId, candidateType, nativeCandidate, state)
Method that buffers candidates
Parameters:
Name | Type | Description |
---|---|---|
targetMid |
String | |
candidateId |
String | |
candidateType |
String | |
nativeCandidate |
RTCIceCandidate | |
state |
SkylinkState |
(private, static) onIceCandidate(targetMid, candidate, currentRoom) → {null}
Parameters:
Name | Type | Description |
---|---|---|
targetMid |
The mid of the target peer |
|
candidate |
RTCIceCandidate |
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate |
currentRoom |
SkylinkRoom |
Current room |
Fires:
- event:candidateGenerationState
(private, static) setIceServers(servers) → {filteredIceServers}
Parameters:
Name | Type | Description |
---|---|---|
servers |
Array.<RTCIceServer> |
The list of IceServers passed | https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer |