Package org.jitsi.service.neomedia
Interface RTPTranslator
-
- All Known Implementing Classes:
AbstractRTPTranslator,RTPTranslatorImpl
public interface RTPTranslatorRepresents an RTP translator which forwards RTP and RTCP traffic between multiple MediaStreams.- Author:
- Lyubomir Marinov
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRTPTranslator.WriteFilterDefines a packet filter which allows an observer of an RTPTranslator to disallow the writing of specific packets into a specific destination identified by a MediaStream.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddWriteFilter(RTPTranslator.WriteFilter writeFilter)Adds a WriteFilter to this RTPTranslator.voiddispose()Releases the resources allocated by this instance in the course of its execution and prepares it to be garbage collected.StreamRTPManagerfindStreamRTPManagerByReceiveSSRC(int receiveSSRC)Finds theStreamRTPManagerwhich receives a specific SSRC.net.sf.fmj.media.rtp.SSRCCachegetSSRCCache()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.voidremoveWriteFilter(RTPTranslator.WriteFilter writeFilter)Removes a WriteFilter from this RTPTranslator.
-
-
-
Method Detail
-
findStreamRTPManagerByReceiveSSRC
StreamRTPManager findStreamRTPManagerByReceiveSSRC(int receiveSSRC)
Finds theStreamRTPManagerwhich receives a specific SSRC.- Parameters:
receiveSSRC- the SSRC of the RTP stream received by theStreamRTPManagerto be returned- Returns:
- the
StreamRTPManagerwhich receivesreceiveSSRCofnull
-
getStreamRTPManagers
List<StreamRTPManager> getStreamRTPManagers()
Returns a list of StreamRTPManagers currently attached to this RTPTranslator. This is admittedly wrong, to expose the bare SSRCCache to the use of of the StreamRTPManager. We should find a better way of exposing this information. Currently it is necessary for RTCP termination.- Returns:
- a list of StreamRTPManagers currently attached to this RTPTranslator.
-
getSSRCCache
net.sf.fmj.media.rtp.SSRCCache getSSRCCache()
Provides access to the underlying SSRCCache that holds statistics information about each SSRC that we receive.- Returns:
- the underlying SSRCCache that holds statistics information about each SSRC that we receive.
-
addWriteFilter
void addWriteFilter(RTPTranslator.WriteFilter writeFilter)
Adds a WriteFilter to this RTPTranslator.- Parameters:
writeFilter- the WriteFilter to add to this RTPTranslator
-
dispose
void dispose()
Releases the resources allocated by this instance in the course of its execution and prepares it to be garbage collected.
-
removeWriteFilter
void removeWriteFilter(RTPTranslator.WriteFilter writeFilter)
Removes a WriteFilter from this RTPTranslator.- Parameters:
writeFilter- the WriteFilter to remove from this RTPTranslator
-
-