private void ReceiveRtpLoop() { Task.Run(async() => { while (true) { try { var rtpPacket = await _rtpClient.ReceiveAsync(); _receptionReportScheduler.Track(rtpPacket); RtpPacketReceived?.Invoke(this, rtpPacket); } catch (Exception e) { Debug.WriteLine($"Error Processing RTP Packet {e}", nameof(RtspClient)); } } }); }
private void OnRtpPacketReceived(RtpPacket pkt) { RtpPacketReceived?.Invoke(pkt); }