private void AddReceiverReport(ReceiverReport rr) { cpb.Add_ReceiverReport(rr); }
public ReceiverReportEventArgs(uint rrSSRC, uint dataSourceSSRC, ReceiverReport receiverReport) { this.rrSSRC = rrSSRC; this.dataSourceSSRC = dataSourceSSRC; ReceiverReport = receiverReport; }
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 RaiseReceiverReportEvent(string senderCName, string sourceCName, ReceiverReport rr) { object[] args = {this, new RtpEvents.ReceiverReportEventArgs(senderCName, sourceCName, rr)}; EventThrower.QueueUserWorkItem(new RtpEvents.RaiseEvent(RtpEvents.RaiseReceiverReportEvent), args); }
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); } }
/// <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 void Add_ReceiverReport(ReceiverReport rr) { receiverReports.Enqueue(rr); }
public ReceiverReportEventArgs(string senderCName, string sourceCName, ReceiverReport receiverReport) { SenderCName = senderCName; SourceCName = sourceCName; ReceiverReport = receiverReport; }
private void RaiseReceiverReportEvent(uint rrSSRC, uint dataSourceSSRC, ReceiverReport rr) { object[] args = {this, new RtpEvents.ReceiverReportEventArgs(rrSSRC, dataSourceSSRC, rr)}; EventThrower.QueueUserWorkItem(new RtpEvents.RaiseEvent(RtpEvents.RaiseReceiverReportEvent), args); }