public class StreamRTPManager
extends java.lang.Object
Constructor and Description |
---|
StreamRTPManager(MediaStream stream,
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
<T> T |
getControl(java.lang.Class<T> controlType)
Gets a control of a specific type over this instance.
|
java.lang.Object |
getControl(java.lang.String controlType)
Gets a control of a specific type over this instance.
|
javax.media.rtp.GlobalReceptionStats |
getGlobalReceptionStats() |
javax.media.rtp.GlobalTransmissionStats |
getGlobalTransmissionStats() |
long |
getLocalSSRC() |
MediaStream |
getMediaStream()
Returns the MediaStream that uses this StreamRTPManager
|
java.util.Vector |
getReceiveStreams() |
java.util.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) |
void |
setSSRCFactory(SSRCFactory ssrcFactory)
Sets the SSRCFactory to be utilized by this instance to generate
new synchronization source (SSRC) identifiers.
|
public StreamRTPManager(MediaStream stream, RTPTranslator translator)
stream
- the MediaStream that created this
StreamRTPManager.translator
- the RTPTranslator to attach the new instance
to or null if the new instance is to not be attached to any
RTPTranslatorpublic void addFormat(javax.media.Format format, int payloadType)
public void addReceiveStreamListener(javax.media.rtp.ReceiveStreamListener listener)
public void addRemoteListener(javax.media.rtp.RemoteListener listener)
public void addSendStreamListener(javax.media.rtp.SendStreamListener listener)
public void addSessionListener(javax.media.rtp.SessionListener listener)
public javax.media.rtp.SendStream createSendStream(javax.media.protocol.DataSource dataSource, int streamIndex) throws java.io.IOException, javax.media.format.UnsupportedFormatException
java.io.IOException
javax.media.format.UnsupportedFormatException
public void dispose()
public <T> T getControl(java.lang.Class<T> controlType)
getControl(String)
.controlType
- a Class which specifies the type of the
control over this instance to getpublic java.lang.Object getControl(java.lang.String controlType)
controlType
- a String which specifies the type (i.e. the
name of the class) of the control over this instance to getpublic javax.media.rtp.GlobalReceptionStats getGlobalReceptionStats()
public javax.media.rtp.GlobalTransmissionStats getGlobalTransmissionStats()
public long getLocalSSRC()
public MediaStream getMediaStream()
public java.util.Vector getReceiveStreams()
public java.util.Vector getSendStreams()
public void initialize(javax.media.rtp.RTPConnector connector)
public void removeReceiveStreamListener(javax.media.rtp.ReceiveStreamListener listener)
public void removeRemoteListener(javax.media.rtp.RemoteListener listener)
public void removeSendStreamListener(javax.media.rtp.SendStreamListener listener)
public void removeSessionListener(javax.media.rtp.SessionListener listener)
public void setSSRCFactory(SSRCFactory ssrcFactory)
ssrcFactory
- the SSRCFactory to be utilized by this
instance to generate new synchronization source (SSRC) identifiers or
null if this instance is to employ internal logic to generate
new synchronization source (SSRC) identifiers
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.