Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia
Class StreamRTPManager

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.StreamRTPManager

public class StreamRTPManager
extends Object

Implements the RTPManager interface as used by a MediaStream.

Author:
Lyubomir Marinov

Constructor Summary
StreamRTPManager(RTPTranslator translator)
          Initializes a new StreamRTPManager instance which is, optionally, attached to a specific RTPTranslator which is to forward the RTP and RTCP flows of the associated MediaStream to other MediaStreams.
 
Method Summary
 void addFormat(javax.media.Format format, int payloadType)
           
 void addReceiveStreamListener(javax.media.rtp.ReceiveStreamListener listener)
           
 void addRemoteListener(javax.media.rtp.RemoteListener listener)
           
 void addSendStreamListener(javax.media.rtp.SendStreamListener listener)
           
 void addSessionListener(javax.media.rtp.SessionListener listener)
           
 javax.media.rtp.SendStream createSendStream(javax.media.protocol.DataSource dataSource, int streamIndex)
           
 void dispose()
           
 Object getControl(String controlType)
           
 javax.media.rtp.GlobalReceptionStats getGlobalReceptionStats()
           
 javax.media.rtp.GlobalTransmissionStats getGlobalTransmissionStats()
           
 long getLocalSSRC()
           
 Vector getReceiveStreams()
           
 Vector getSendStreams()
           
 void initialize(javax.media.rtp.RTPConnector connector)
           
 void removeReceiveStreamListener(javax.media.rtp.ReceiveStreamListener listener)
           
 void removeRemoteListener(javax.media.rtp.RemoteListener listener)
           
 void removeSendStreamListener(javax.media.rtp.SendStreamListener listener)
           
 void removeSessionListener(javax.media.rtp.SessionListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamRTPManager

public StreamRTPManager(RTPTranslator translator)
Initializes a new StreamRTPManager instance which is, optionally, attached to a specific RTPTranslator which is to forward the RTP and RTCP flows of the associated MediaStream to other MediaStreams.

Parameters:
translator - the RTPTranslator to attach the new instance to or null if the new instance is to not be attached to any RTPTranslator
Method Detail

addFormat

public void addFormat(javax.media.Format format,
                      int payloadType)

addReceiveStreamListener

public void addReceiveStreamListener(javax.media.rtp.ReceiveStreamListener listener)

addRemoteListener

public void addRemoteListener(javax.media.rtp.RemoteListener listener)

addSendStreamListener

public void addSendStreamListener(javax.media.rtp.SendStreamListener listener)

addSessionListener

public void addSessionListener(javax.media.rtp.SessionListener listener)

createSendStream

public javax.media.rtp.SendStream createSendStream(javax.media.protocol.DataSource dataSource,
                                                   int streamIndex)
                                            throws IOException,
                                                   javax.media.format.UnsupportedFormatException
Throws:
IOException
javax.media.format.UnsupportedFormatException

dispose

public void dispose()

getControl

public Object getControl(String controlType)

getGlobalReceptionStats

public javax.media.rtp.GlobalReceptionStats getGlobalReceptionStats()

getGlobalTransmissionStats

public javax.media.rtp.GlobalTransmissionStats getGlobalTransmissionStats()

getLocalSSRC

public long getLocalSSRC()

getReceiveStreams

public Vector getReceiveStreams()

getSendStreams

public Vector getSendStreams()

initialize

public void initialize(javax.media.rtp.RTPConnector connector)

removeReceiveStreamListener

public void removeReceiveStreamListener(javax.media.rtp.ReceiveStreamListener listener)

removeRemoteListener

public void removeRemoteListener(javax.media.rtp.RemoteListener listener)

removeSendStreamListener

public void removeSendStreamListener(javax.media.rtp.SendStreamListener listener)

removeSessionListener

public void removeSessionListener(javax.media.rtp.SessionListener listener)

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.