Esempio n. 1
0
        /// <summary>
        /// rtcp包回调事件处理
        /// </summary>
        /// <param name="buffer"></param>
        /// <param name="rtcpSocket"></param>
        private void _rtpChannel_OnControlDataReceived(byte[] buffer, Socket rtcpSocket)
        {
            _rtcpSocket = rtcpSocket;
            DateTime packetTimestamp = DateTime.Now;

            _rtcpTimestamp = RTPChannel.DateTimeToNptTimestamp90K(DateTime.Now);
            if (_rtcpRemoteEndPoint != null)
            {
                SendRtcpSenderReport(RTPChannel.DateTimeToNptTimestamp(packetTimestamp), _rtcpTimestamp);
            }
        }