/ fm / liveswitch / IceCandidateProcessor
Class: IceCandidateProcessor
fm.liveswitch.IceCandidateProcessor
Defines methods to obtain auxiliary information about ICE Candidates. This class helps in processing WebRTC ICE candidates and extracting their properties, particularly for relay candidates where we need to determine the protocol being used.
Table of contents
Constructors
Methods
Constructors
constructor
+ new IceCandidateProcessor(): IceCandidateProcessor
Returns: IceCandidateProcessor
Methods
getTypeString
▸ getTypeString(): string
Returns the type string identifier for this class
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/IceCandidateProcessor.ts:11
processCandidate
▸ Static
processCandidate(event
: RTCPeerConnectionIceEvent): Candidate
Processes an ICE candidate event and creates a icelink Candidate object. This method handles the conversion from a WebRTC ICE candidate to icelink's internal candidate representation, including protocol detection for relay candidates.
Parameters:
Name | Type | Description |
---|---|---|
event |
RTCPeerConnectionIceEvent | The RTCPeerConnection ICE candidate event containing the candidate |
Returns: Candidate
Promise resolving to a icelink Candidate object or null if invalid
Defined in: Generated/TypeScript/fm.liveswitch/IceCandidateProcessor.ts:23