Exemple #1
0
        /// <summary>
        /// Начинать слушать порт, на который приходят RTCP пакеты
        /// и слать в ответ свои
        /// </summary>
        public void StartReporting()
        {
            var random = new System.Security.Cryptography.RNGCryptoServiceProvider();

            byte[] randomBytes = new byte[sizeof(UInt32)];
            random.GetNonZeroBytes(randomBytes);

            recieverSSRC        = BitConverter.ToUInt32(randomBytes, 0);
            senderReportCount   = 0;
            receivedRtpPackets  = 0;
            recieverReportCount = 0;
            initTimestamp       = 0;

            udpClient.StartReceiving();
        }
Exemple #2
0
 public void StartRecieving()
 {
     rtcpReporter.StartReporting();
     unicastUdpClient.StartReceiving();
 }