public RtcpReceptionReportScheduler(IRtcpClient rtcpClient) { ReportTransmissionInterval = TimeSpan.FromSeconds(5); _timer = new Timer(SendReport, null, ReportTransmissionInterval, ReportTransmissionInterval); _rtcpClient = rtcpClient; _random = new Random(); }
public RtspPlayer( IRtspClient rtspClient, IRtpClient rtpClient, IRtcpClient rtcpClient, IRtcpReceptionReportScheduler receptionReportScheduler) { _rtspClient = rtspClient; _rtpClient = rtpClient; _rtcpClient = rtcpClient; _receptionReportScheduler = receptionReportScheduler; ReceiveRtpLoop(); ReceiveRtcpLoop(); }