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