SessionDescription.fromRtcSdp constructor

SessionDescription.fromRtcSdp(
  1. RTCSessionDescription rtcSessionDescription
)

Implementation

SessionDescription.fromRtcSdp(RTCSessionDescription rtcSessionDescription) {
  sdp = rtcSessionDescription.sdp;
  switch (rtcSessionDescription.type) {
    case 'offer':
      type = SdpType.offer;
    case 'answer':
      type = SdpType.answer;
    case 'prAnswer':
      type = SdpType.prAnswer;
  }
}