/** * Returns the delay in milliseconds introduced by the jitter buffer. * Since there might be multiple <tt>ReceiveStreams</tt>, returns the * biggest delay found in any of them. * * @return the delay in milliseconds introduces by the jitter buffer */ public int getJitterBufferDelayMs() { int delay = 0; for(JitterBufferControl pqc : getJitterBufferControls()) if(pqc.getCurrentDelayMs() > delay) delay = pqc.getCurrentDelayMs(); return delay; }
/** * Returns the delay in number of packets introduced by the jitter buffer. * Since there might be multiple <tt>ReceiveStreams</tt>, returns the * biggest delay found in any of them. * * @return the delay in number of packets introduced by the jitter buffer */ public int getJitterBufferDelayPackets() { int delay = 0; for(JitterBufferControl pqc : getJitterBufferControls()) if(pqc.getCurrentDelayPackets() > delay) delay = pqc.getCurrentDelayPackets(); return delay; }
/** * Returns the number of packets in the first <tt>JitterBufferControl</tt> * found via <tt>getJitterBufferControls</tt>. * * @return the number of packets in the first <tt>JitterBufferControl</tt> * found via <tt>getJitterBufferControls</tt>. */ public int getPacketQueueCountPackets() { for(JitterBufferControl pqc : getJitterBufferControls()) return pqc.getCurrentPacketCount(); return 0; }
int discardedPacketCount = jbc.getDiscarded(); int maximumDelay = jbc.getMaximumDelay(); voipMetrics.setJitterBufferNominalDelay(jbc.getNominalDelay()); if (jbc.isAdaptiveBufferEnabled()) .ADAPTIVE_JITTER_BUFFER_ADAPTIVE); voipMetrics.setJitterBufferAbsoluteMaximumDelay( jbc.getAbsoluteMaximumDelay());
/** * Returns the number of Protocol Data Units (PDU) discarded by the * FMJ packet queue since the beginning of the session during resets. * It's the sum over all <tt>ReceiveStream</tt>s of the <tt>MediaStream</tt> * * @return the number of discarded packets during resets. */ public int getNbDiscardedReset() { int nbDiscardedReset = 0; for(JitterBufferControl pqc : getJitterBufferControls()) nbDiscardedReset =+ pqc.getDiscardedReset(); return nbDiscardedReset; }
/** * Returns the number of Protocol Data Units (PDU) discarded by the * FMJ packet queue since the beginning of the session due to shrinking. * It's the sum over all <tt>ReceiveStream</tt>s of the <tt>MediaStream</tt> * * @return the number of discarded packets due to shrinking. */ public int getNbDiscardedShrink() { int nbDiscardedShrink = 0; for(JitterBufferControl pqc : getJitterBufferControls()) nbDiscardedShrink =+ pqc.getDiscardedShrink(); return nbDiscardedShrink; }
/** * Returns the number of Protocol Data Units (PDU) discarded by the * FMJ packet queue since the beginning of the session because it was full. * It's the sum over all <tt>ReceiveStream</tt>s of the <tt>MediaStream</tt> * * @return the number of discarded packets because it was full. */ public int getNbDiscardedFull() { int nbDiscardedFull = 0; for(JitterBufferControl pqc : getJitterBufferControls()) nbDiscardedFull =+ pqc.getDiscardedFull(); return nbDiscardedFull; }
/** * Returns the total number of Protocol Data Units (PDU) discarded by the * FMJ packet queue since the beginning of the session. It's the sum over * all <tt>ReceiveStream</tt>s of the <tt>MediaStream</tt> * * @return the number of discarded packets. */ public long getNbDiscarded() { int nbDiscarded = 0; for(JitterBufferControl pqc : getJitterBufferControls()) nbDiscarded =+ pqc.getDiscarded(); return nbDiscarded; }
/** * Returns the size of the first <tt>JitterBufferControl</tt> found via * <tt>getJitterBufferControls</tt>. * * @return the size of the first <tt>JitterBufferControl</tt> found via * <tt>getJitterBufferControls</tt>. */ public int getPacketQueueSize() { for(JitterBufferControl pqc : getJitterBufferControls()) return pqc.getCurrentSizePackets(); return 0; }
/** * Returns the number of Protocol Data Units (PDU) discarded by the * FMJ packet queue since the beginning of the session because they were late. * It's the sum over all <tt>ReceiveStream</tt>s of the <tt>MediaStream</tt> * * @return the number of discarded packets because they were late. */ public int getNbDiscardedLate() { int nbDiscardedLate = 0; for(JitterBufferControl pqc : getJitterBufferControls()) nbDiscardedLate =+ pqc.getDiscardedLate(); return nbDiscardedLate; }