SessionDescription.fromRtcSdp constructor
SessionDescription.fromRtcSdp(
- 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;
}
}