예제 #1
0
        //public double MaxSendRate { get; protected set; }

        //Fix

        public void SendData(byte[] data)
        {
            if (RtpClient != null)
            {
                RtpClient.OnRtpPacketReceieved(new Rtp.RtpPacket(data, 0));
            }
        }
예제 #2
0
파일: RtpSink.cs 프로젝트: acinep/net7mma-1
        public void SendData(byte[] data, int offset = 0, int length = -1)
        {
            if (Common.IDisposedExtensions.IsNullOrDisposed(RtpClient))
            {
                return;
            }

            RtpClient.OnRtpPacketReceieved(new Rtp.RtpPacket(data, offset, length >= 0 ? length : data.Length - offset));
        }
예제 #3
0
        //

        public void SendPacket(Common.IPacket packet)
        {
            if (RtpClient != null)
            {
                if (packet is Rtp.RtpPacket)
                {
                    RtpClient.OnRtpPacketReceieved(packet as Rtp.RtpPacket);
                }
                else if (packet is Rtcp.RtcpPacket)
                {
                    RtpClient.OnRtcpPacketReceieved(packet as Rtcp.RtcpPacket);
                }
            }
        }
예제 #4
0
파일: RtpSink.cs 프로젝트: acinep/net7mma-1
        public void SendPacket(Common.IPacket packet)
        {
            if (Common.IDisposedExtensions.IsNullOrDisposed(RtpClient) ||
                Common.IDisposedExtensions.IsNullOrDisposed(packet))
            {
                return;
            }

            if (packet is Rtp.RtpPacket)
            {
                RtpClient.OnRtpPacketReceieved(packet as Rtp.RtpPacket);
            }
            else if (packet is Rtcp.RtcpPacket)
            {
                RtpClient.OnRtcpPacketReceieved(packet as Rtcp.RtcpPacket);
            }
        }