RTCOfferMessage

struct RTCOfferMessage
extension RTCOfferMessage: RTCMessageBuilderProtocol
extension RTCOfferMessage: RTCMessageParserProtocol

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

  • Type of the message

    Declaration

    Swift

    let type: RTCMessageType
  • sdp

    Candidate’s SDP

    Declaration

    Swift

    let sdp: String
  • Format a RTC payload into a RTC Offer Message given to informations.

    Declaration

    Swift

    func parsePayload() -> RTCMessage

    Return Value

    A RTC Message with .Offer type.

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

    Declaration

    Swift

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

    Return Value

    A RTC Offer Message.