public void SendRTPRaw(byte[] payload)
{
try
{
if (!_isClosed && _rtpSocket != null && _remoteEndPoint != null && _rtpSocketError == SocketError.Success)
{
_rtpSocket.SendTo(payload, _remoteEndPoint);
}
}
catch (Exception excp)
{
if (!_isClosed)
{
logger.Error("Exception RTPChannel.SendRTPRaw attempting to send to " + _remoteEndPoint + ". " + excp);
OnRTPSocketDisconnected?.Invoke();
}
}
}