RTCAnswerMessage

struct RTCAnswerMessage
extension RTCAnswerMessage: RTCMessageBuilderProtocol
extension RTCAnswerMessage: RTCMessageParserProtocol

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

  • Type of the message

    Declaration

    Swift

    let type: RTCMessageType
  • sdp

    SDP of the message

    Declaration

    Swift

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

    Declaration

    Swift

    func parsePayload() -> RTCMessage

    Return Value

    A RTC Message with .Answer type.

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

    Declaration

    Swift

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

    Return Value

    A RTC Answer Message.