public class RTPTranslatorImpl extends AbstractRTPTranslator implements javax.media.rtp.ReceiveStreamListener
RTPTranslator.WriteFilter| Constructor and Description |
|---|
RTPTranslatorImpl()
Initializes a new RTPTranslatorImpl instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFormat(StreamRTPManager streamRTPManager,
javax.media.Format format,
int payloadType)
Specifies the RTP payload type (number) to be used for a specific
Format.
|
void |
addReceiveStreamListener(StreamRTPManager streamRTPManager,
javax.media.rtp.ReceiveStreamListener listener)
Adds a ReceiveStreamListener to be notified about
ReceiveStreamEvents related to a specific neomedia
MediaStream (expressed as a StreamRTPManager for the
purposes of and in the terms of RTPTranslator).
|
void |
addRemoteListener(StreamRTPManager streamRTPManager,
javax.media.rtp.RemoteListener listener)
Adds a RemoteListener to be notified about RemoteEvents
received by this RTPTranslatorImpl.
|
void |
addSendStreamListener(StreamRTPManager streamRTPManager,
javax.media.rtp.SendStreamListener listener)
Not implemented because there are currently no uses of the underlying
functionality.
|
void |
addSessionListener(StreamRTPManager streamRTPManager,
javax.media.rtp.SessionListener listener)
Not implemented because there are currently no uses of the underlying
functionality.
|
javax.media.rtp.SendStream |
createSendStream(StreamRTPManager streamRTPManager,
javax.media.protocol.DataSource dataSource,
int streamIndex)
Creates a SendStream from the stream of a specific
DataSource that is at a specific zero-based position within the
array/list of streams of that DataSource.
|
void |
dispose()
Releases the resources allocated by this instance in the course of its
execution and prepares it to be garbage collected.
|
void |
dispose(StreamRTPManager streamRTPManager)
Releases the resources allocated by this instance for the purposes of the
functioning of a specific StreamRTPManager in the course of its
execution and prepares that StreamRTPManager to be garbage
collected (as far as this RTPTranslatorImpl is concerned).
|
StreamRTPManager |
findStreamRTPManagerByReceiveSSRC(int receiveSSRC)
Finds the
StreamRTPManager which receives a specific SSRC. |
Object |
getControl(StreamRTPManager streamRTPManager,
String controlType)
Exposes
Controls.getControl(String) on the internal/underlying
RTPManager. |
javax.media.rtp.GlobalReceptionStats |
getGlobalReceptionStats(StreamRTPManager streamRTPManager)
Exposes
RTPManager.getGlobalReceptionStats() on the
internal/underlying RTPManager. |
javax.media.rtp.GlobalTransmissionStats |
getGlobalTransmissionStats(StreamRTPManager streamRTPManager)
Exposes
RTPManager.getGlobalTransmissionStats() on the
internal/underlying RTPManager. |
long |
getLocalSSRC(StreamRTPManager streamRTPManager)
Exposes
RTPSessionMgr.getLocalSSRC() on the internal/underlying
RTPSessionMgr. |
Vector<javax.media.rtp.ReceiveStream> |
getReceiveStreams(StreamRTPManager streamRTPManager)
Gets the ReceiveStreams associated with/related to a neomedia
MediaStream (specified in the form of a
StreamRTPManager instance for the purposes of and in the terms
of RTPManagerImpl).
|
RTCPFeedbackMessageSender |
getRtcpFeedbackMessageSender()
Gets the RTCPFeedbackMessageSender which should be used for
sending RTCP Feedback Messages from this RTPTranslator.
|
Vector<javax.media.rtp.SendStream> |
getSendStreams(StreamRTPManager streamRTPManager)
Gets the SendStreams associated with/related to a neomedia
MediaStream (specified in the form of a
StreamRTPManager instance for the purposes of and in the terms
of RTPManagerImpl).
|
net.sf.fmj.media.rtp.SSRCCache |
getSSRCCache()
Provides access to the underlying SSRCCache that holds
statistics information about each SSRC that we receive.
|
List<StreamRTPManager> |
getStreamRTPManagers()
Returns a list of StreamRTPManagers currently attached to
this RTPTranslator.
|
void |
initialize(StreamRTPManager streamRTPManager,
javax.media.rtp.RTPConnector connector) |
void |
removeReceiveStreamListener(StreamRTPManager streamRTPManager,
javax.media.rtp.ReceiveStreamListener listener)
Removes a ReceiveStreamListener to no longer be notified about
ReceiveStreamEvents related to a specific neomedia
MediaStream (expressed as a StreamRTPManager for the
purposes of and in the terms of RTPTranslator).
|
void |
removeRemoteListener(StreamRTPManager streamRTPManager,
javax.media.rtp.RemoteListener listener)
Removes a RemoteListener to no longer be notified about
RemoteEvents received by this RTPTranslatorImpl.
|
void |
removeSendStreamListener(StreamRTPManager streamRTPManager,
javax.media.rtp.SendStreamListener listener)
Not implemented because there are currently no uses of the underlying
functionality.
|
void |
removeSessionListener(StreamRTPManager streamRTPManager,
javax.media.rtp.SessionListener listener)
Not implemented because there are currently no uses of the underlying
functionality.
|
void |
setSSRCFactory(SSRCFactory ssrcFactory)
Sets the SSRCFactory which is to generate new synchronization
source (SSRC) identifiers.
|
void |
update(javax.media.rtp.event.ReceiveStreamEvent event)
Notifies this ReceiveStreamListener about a specific event
related to a ReceiveStream.
|
boolean |
writeControlPayload(Payload controlPayload,
MediaStream destination)
Writes an RTCPFeedbackMessage into a destination identified by
a specific MediaStream.
|
addWriteFilter, getWriteFilters, removeWriteFilter, willWrite, willWritepublic RTPTranslatorImpl()
public void addFormat(StreamRTPManager streamRTPManager, javax.media.Format format, int payloadType)
streamRTPManager - the StreamRTPManager that is requesting
the association of format to payloadTypeformat - the Format which is to be associated with the
specified RTP payload type (number)payloadType - the RTP payload type (number) to be associated with
the specified formatpublic void addReceiveStreamListener(StreamRTPManager streamRTPManager, javax.media.rtp.ReceiveStreamListener listener)
streamRTPManager - the StreamRTPManager which specifies
the neomedia MediaStream with which the
ReceiveStreamEvents delivered to the specified listener
are to be related. In other words, a ReceiveStreamEvent received
by RTPTranslatorImpl is first examined to determine which
StreamRTPManager it is related to and then it is delivered to
the ReceiveStreamListeners which have been added to this
RTPTranslatorImpl by that StreamRTPManager.listener - the ReceiveStreamListener to be notified about
ReceiveStreamEvents related to the specified
streamRTPManagerpublic void addRemoteListener(StreamRTPManager streamRTPManager, javax.media.rtp.RemoteListener listener)
streamRTPManager - the StreamRTPManager which is requesting
the addition of the specified RemoteListenerlistener - the RemoteListener to be notified about
RemoteEvents received by this RTPTranslatorImplpublic void addSendStreamListener(StreamRTPManager streamRTPManager, javax.media.rtp.SendStreamListener listener)
public void addSessionListener(StreamRTPManager streamRTPManager, javax.media.rtp.SessionListener listener)
public javax.media.rtp.SendStream createSendStream(StreamRTPManager streamRTPManager, javax.media.protocol.DataSource dataSource, int streamIndex) throws IOException, javax.media.format.UnsupportedFormatException
streamRTPManager - the StreamRTPManager which is requesting
the creation of a SendStream. Since multiple
StreamRTPManager may request the creation of a
SendStream from one and the same combination of
dataSource and streamIndex, the method may not create
a completely new SendStream but may return a
StreamRTPManager-specific view of an existing
SendStream.dataSource - the DataSource which provides the stream from
which a SendStream is to be createdstreamIndex - the zero-based position within the array/list of
streams of the specified dataSource of the stream from which a
SendStream is to be createdIOException - if an error occurs during the execution of
RTPManager.createSendStream(DataSource, int)javax.media.format.UnsupportedFormatException - if an error occurs during the
execution of RTPManager.createSendStream(DataSource, int)public void dispose()
dispose in interface RTPTranslatorpublic void dispose(StreamRTPManager streamRTPManager)
public StreamRTPManager findStreamRTPManagerByReceiveSSRC(int receiveSSRC)
StreamRTPManager which receives a specific SSRC.findStreamRTPManagerByReceiveSSRC in interface RTPTranslatorreceiveSSRC - the SSRC of the RTP stream received by the
StreamRTPManager to be returnedStreamRTPManager which receives receiveSSRC
of nullpublic Object getControl(StreamRTPManager streamRTPManager, String controlType)
Controls.getControl(String) on the internal/underlying
RTPManager.streamRTPManager - ignoredcontrolType - public javax.media.rtp.GlobalReceptionStats getGlobalReceptionStats(StreamRTPManager streamRTPManager)
RTPManager.getGlobalReceptionStats() on the
internal/underlying RTPManager.streamRTPManager - ignoredpublic javax.media.rtp.GlobalTransmissionStats getGlobalTransmissionStats(StreamRTPManager streamRTPManager)
RTPManager.getGlobalTransmissionStats() on the
internal/underlying RTPManager.streamRTPManager - ignoredpublic long getLocalSSRC(StreamRTPManager streamRTPManager)
RTPSessionMgr.getLocalSSRC() on the internal/underlying
RTPSessionMgr.streamRTPManager - ignoredpublic Vector<javax.media.rtp.ReceiveStream> getReceiveStreams(StreamRTPManager streamRTPManager)
streamRTPManager - the StreamRTPManager to which the
returned ReceiveStreams are to be relatedpublic RTCPFeedbackMessageSender getRtcpFeedbackMessageSender()
public Vector<javax.media.rtp.SendStream> getSendStreams(StreamRTPManager streamRTPManager)
streamRTPManager - the StreamRTPManager to which the
returned SendStreams are to be relatedpublic List<StreamRTPManager> getStreamRTPManagers()
getStreamRTPManagers in interface RTPTranslatorpublic void initialize(StreamRTPManager streamRTPManager, javax.media.rtp.RTPConnector connector)
public void removeReceiveStreamListener(StreamRTPManager streamRTPManager, javax.media.rtp.ReceiveStreamListener listener)
addReceiveStreamListener(StreamRTPManager,
ReceiveStreamListener) does not add equal
ReceiveStreamListeners, a single removal is enough to reverse
multiple additions of equal ReceiveStreamListeners.streamRTPManager - the StreamRTPManager which specifies
the neomedia MediaStream with which the
ReceiveStreamEvents delivered to the specified listener
are to be relatedlistener - the ReceiveStreamListener to no longer be
notified about ReceiveStreamEvents related to the specified
streamRTPManagerpublic void removeRemoteListener(StreamRTPManager streamRTPManager, javax.media.rtp.RemoteListener listener)
streamRTPManager - the StreamRTPManager which is requesting
the removal of the specified RemoteListenerlistener - the RemoteListener to no longer be notified
about RemoteEvents received by this RTPTranslatorImplpublic void removeSendStreamListener(StreamRTPManager streamRTPManager, javax.media.rtp.SendStreamListener listener)
addSendStreamListener(StreamRTPManager, SendStreamListener) is
not implemented for the same reason.)public void removeSessionListener(StreamRTPManager streamRTPManager, javax.media.rtp.SessionListener listener)
addSessionListener(StreamRTPManager, SessionListener) is not
implemented for the same reason.)public void setSSRCFactory(SSRCFactory ssrcFactory)
ssrcFactory - the SSRCFactory which is to generate new
synchronization source (SSRC) identifiers or null if this
MediaStream is to employ internal logic to generate new
synchronization source (SSRC) identifierspublic void update(javax.media.rtp.event.ReceiveStreamEvent event)
update in interface javax.media.rtp.ReceiveStreamListenerevent - a ReceiveStreamEvent which contains the specifics
of the event this ReceiveStreamListener is being notified aboutReceiveStreamListener.update(ReceiveStreamEvent)public boolean writeControlPayload(Payload controlPayload, MediaStream destination)
public net.sf.fmj.media.rtp.SSRCCache getSSRCCache()
getSSRCCache in interface RTPTranslatorCopyright © 2021 jitsi.org. All rights reserved.