private void AddReceiverReport(ReceiverReport rr) { cpb.Add_ReceiverReport(rr); }
public override void ReadDataFromBuffer(BufferChunk buffer) { // Make sure ItemCount and Data length agree if(Header.Length * 4 != Rtp.SSRC_SIZE + SenderReport.SIZE + ReceiverReport.SIZE * Header.ItemCount) { Debug.Assert(false, "Header length and item count disagree!"); throw new RtcpPacketException("Header length and item count disagree!"); } // Read ssrc SSRC = buffer.NextUInt32(); // Parse SenderReport sr.ReadDataFromBuffer(buffer); // Process Reports if(Header.ItemCount > 0) { receiverReports = new ArrayList(); for(int rrCount = 0; rrCount < Header.ItemCount; rrCount++) { ReceiverReport rr = new ReceiverReport(); rr.ReadDataFromBuffer(buffer); receiverReports.Add(rr); } } }
// private void RaiseParticipantStatusChangedEvent(RtpParticipant participant) // { // object[] args = {this, new RtpEvents.RtpParticipantEventArgs(participant)}; // EventThrower.QueueUserWorkItem(new RtpEvents.RaiseEvent(RtpEvents.RaiseRtpParticipantDataChangedEvent), args); // } // #endregion RaiseParticipantStatusChangedEvent #region RaiseReceiverReportEvent private void RaiseReceiverReportEvent(string senderCName, string sourceCName, ReceiverReport rr) { object[] args = {this, new RtpEvents.ReceiverReportEventArgs(senderCName, sourceCName, rr)}; EventThrower.QueueUserWorkItem(new RtpEvents.RaiseEvent(RtpEvents.RaiseReceiverReportEvent), args); }
/// <summary> /// Add a ReceiverReport entry to the ReceiverReportPacket /// </summary> /// <param name="rr"></param> public void AddReceiverReport(ReceiverReport rr) { ValidateItemSpace(receiverReports.Count); receiverReports.Add(rr); }
public override void ReadDataFromBuffer(BufferChunk buffer) { // Make sure ItemCount and Data length agree if(Header.Length * 4 != Header.ItemCount * ReceiverReport.SIZE + Rtp.SSRC_SIZE) { Debug.Assert(false, "Header length and item count disagree!"); throw new RtcpPacketException("Header length and item count disagree!"); } // Store Reporter SSRC SSRC = buffer.NextUInt32(); // Process Reports for(int rrCount = 0; rrCount < Header.ItemCount; rrCount++) { ReceiverReport rr = new ReceiverReport(); rr.ReadDataFromBuffer(buffer); receiverReports.Add(rr); } }
public void Add_ReceiverReport(ReceiverReport rr) { receiverReports.Enqueue(rr); }
public ReceiverReportEventArgs(string senderCName, string sourceCName, ReceiverReport receiverReport) { SenderCName = senderCName; SourceCName = sourceCName; ReceiverReport = receiverReport; }