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

java.lang.Object
  extended by org.mobicents.media.server.impl.BaseComponent
      extended by org.mobicents.media.server.impl.AbstractSource
          extended by org.mobicents.media.server.impl.rtp.ReceiveStream
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable, org.mobicents.media.Component, org.mobicents.media.MediaSource

public class ReceiveStream
extends AbstractSource
implements java.lang.Runnable

Author:
Oleg Kulikov
See Also:
Serialized Form

Field Summary
protected  org.mobicents.media.Format[] formats
           
 
Fields inherited from class org.mobicents.media.server.impl.AbstractSource
otherParty
 
Fields inherited from interface org.mobicents.media.Component
AUDIO_PLAYER, AUDIO_RECORDER, DTMF_DETECTOR, DTMF_GENERATOR
 
Constructor Summary
ReceiveStream(RtpSocket rtpSocket, int jitter)
          Creates a new instance of ReceiveStream
 
Method Summary
 org.mobicents.media.Format[] getFormats()
           
protected  void push(byte[] data, int offset, int len)
           
 void run()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.mobicents.media.server.impl.AbstractSource
connect, disconnect, isConnected
 
Methods inherited from class org.mobicents.media.server.impl.BaseComponent
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, sendEvent, setConnection, setEndpoint, setResourceType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mobicents.media.Component
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, setConnection, setEndpoint, setResourceType
 

Field Detail

formats

protected org.mobicents.media.Format[] formats
Constructor Detail

ReceiveStream

public ReceiveStream(RtpSocket rtpSocket,
                     int jitter)
Creates a new instance of ReceiveStream

Method Detail

push

protected void push(byte[] data,
                    int offset,
                    int len)

stop

public void stop()
Specified by:
stop in interface org.mobicents.media.MediaSource

start

public void start()
Specified by:
start in interface org.mobicents.media.MediaSource

getFormats

public org.mobicents.media.Format[] getFormats()
Specified by:
getFormats in interface org.mobicents.media.MediaSource

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2009. All Rights Reserved.