Esempio n. 1
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);
                }
            }
        }
Esempio n. 2
0
        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);
            }
        }