//public double MaxSendRate { get; protected set; } //Fix public void SendData(byte[] data) { if (RtpClient != null) { RtpClient.OnRtpPacketReceieved(new Rtp.RtpPacket(data, 0)); } }
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)); }
// 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); } }