org.mobicents.media.server.impl.rtp
Class JitterBuffer

java.lang.Object
  extended by org.mobicents.media.server.impl.rtp.JitterBuffer
All Implemented Interfaces:
java.io.Serializable

public class JitterBuffer
extends java.lang.Object
implements java.io.Serializable

Implements jitter buffer. A jitter buffer temporarily stores arriving packets in order to minimize delay variations. If packets arrive too late then they are discarded. A jitter buffer may be mis-configured and be either too large or too small. If a jitter buffer is too small then an excessive number of packets may be discarded, which can lead to call quality degradation. If a jitter buffer is too large then the additional delay can lead to conversational difficulty. A typical jitter buffer configuration is 30mS to 50mS in size. In the case of an adaptive jitter buffer then the maximum size may be set to 100-200mS. Note that if the jitter buffer size exceeds 100mS then the additional delay introduced can lead to conversational difficulty.

Author:
Oleg Kulikov, amit bhayani
See Also:
Serialized Form

Constructor Summary
JitterBuffer(int jitter, int period, java.util.Map<java.lang.Integer,org.mobicents.media.Format> rtpMap)
          Creates new instance of jitter.
 
Method Summary
 int getJitter()
           
 org.mobicents.media.Buffer read()
           
 void reset()
           
 void setPeriod(int period)
           
 void write(byte[] data, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JitterBuffer

public JitterBuffer(int jitter,
                    int period,
                    java.util.Map<java.lang.Integer,org.mobicents.media.Format> rtpMap)
Creates new instance of jitter.

Parameters:
fmt - the format of the received media
jitter - the size of the jitter in milliseconds.
Method Detail

getJitter

public int getJitter()

setPeriod

public void setPeriod(int period)

write

public void write(byte[] data,
                  int offset,
                  int len)

reset

public void reset()

read

public org.mobicents.media.Buffer read()


Copyright © 2009. All Rights Reserved.