// 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); } } }
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); } }