Ejemplo n.º 1
0
        public async override Task SendSRReport(RTPStream stream, RTPSessionState[] sessions)
        {
            RTPSessionState session = new RTPSessionState()
            {
                TCP            = false,
                RTPTransport   = RtpUdpClient,
                RTCPTransport  = RtcpUdpClient,
                RTPIPEndPoint  = new IPEndPoint(_address, _rtpPort),
                RTCPIPEndPoint = new IPEndPoint(_address, _rtcpPort),
                OctetCount     = 0,
                PacketsCount   = 0
            };

            var sr = new RTCPSRPacket(stream, session);
            await sr.sendReport();
        }
Ejemplo n.º 2
0
 public RTCPSRPacket(RTPStream stream, RTPSessionState session)
 {
     _stream  = stream;
     _session = session;
     _fOutBuf = new PacketBuffer(RTCPConstants.preferredRTCPPacketSize, RTCPConstants.maxRTCPPacketSize, RTCPConstants.maxRTCPPacketSize);
 }