public static RTCRtpReceiveParameters FromNativeToReceive(this Webrtc.RtpParameters nativeRtpParameters) => new RTCRtpReceiveParameters { Codecs = (nativeRtpParameters.Codecs as List <Webrtc.RtpParameters.Codec>) .Select(nativeCodec => nativeCodec.FromNative()).ToArray(), HeaderExtensions = (nativeRtpParameters.HeaderExtensions as List <Webrtc.RtpParameters.HeaderExtension>) .Select(nativeHeaderExtension => nativeHeaderExtension.FromNative()).ToArray(), Rtcp = null //// TODO: CHECK THIS };
public static RTCRtpSendParameters FromNativeToSend(this Webrtc.RtpParameters nativeRtpParameters) => new RTCRtpSendParameters { Codecs = (nativeRtpParameters.Codecs as List <Webrtc.RtpParameters.Codec>) .Select(nativeCodec => nativeCodec.FromNative()).ToArray(), HeaderExtensions = (nativeRtpParameters.HeaderExtensions as List <Webrtc.RtpParameters.HeaderExtension>) .Select(headerExtension => headerExtension.FromNative()).ToArray(), Rtcp = null,//// TODO: CHECK THIS Encodings = (nativeRtpParameters.Encodings as List <Webrtc.RtpParameters.Encoding>) .Select(nativeEncoding => nativeEncoding.FromNative()).ToArray(), TransactionId = nativeRtpParameters.TransactionId };