RTCCandidateMessage

struct RTCCandidateMessage
extension RTCCandidateMessage: RTCMessageBuilderProtocol
extension RTCCandidateMessage: RTCMessageParserProtocol

Type used to handle RTC Candidates received by GoogleRTC external lib.

  • Type of the message

    Declaration

    Swift

    let type: RTCMessageType
  • Candidate’s SDP

    Declaration

    Swift

    let candidate: String
  • id

    Candidate’s ID

    Declaration

    Swift

    let id: String
  • Candidate’s name

    Declaration

    Swift

    let label: Int32
  • Format a RTC payload into a RTC Candidate Message given to informations.

    Declaration

    Swift

    func parsePayload() -> RTCMessage

    Return Value

    A RTC Message with .Candidate type.

  • Parse Swift dictionnary [String: Any] to instantiate a RTC Candidate Message.

    Declaration

    Swift

    static func parse(payload: [String : Any]) -> RTCCandidateMessage?

    Return Value

    A RTC Candidate Message.