private void SendRtcpSenderReport(ulong ntpTimestamp, uint rtpTimestamp)
{
try
{
Console.WriteLine("Sending RTCP sender report to remote, ntp timestamp " + ntpTimestamp + ", rtp timestamp " + rtpTimestamp + ", packet count " + _senderPacketCount + ".");
RTCPPacket senderReport = new RTCPPacket(_syncSource, ntpTimestamp, rtpTimestamp, _senderPacketCount, _senderOctetCount);
var bytes = senderReport.GetBytes();
_controlSocket.BeginSendTo(bytes, 0, bytes.Length, SocketFlags.None, _rtcpRemoteEndPoint, SendRtcpCallback, _controlSocket);
_senderLastSentAt = DateTime.Now;
}
catch(Exception excp)
{
logger.Error("Exception SendRtcpSenderReport. " + excp);
}
}