Esempio n. 1
0
        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));
                    }
                }
            });
        }
Esempio n. 2
0
 private void OnRtpPacketReceived(RtpPacket pkt)
 {
     RtpPacketReceived?.Invoke(pkt);
 }