Interface RTPTranslator

  • All Known Implementing Classes:
    AbstractRTPTranslator, RTPTranslatorImpl

    public interface RTPTranslator
    Represents an RTP translator which forwards RTP and RTCP traffic between multiple MediaStreams.
    Author:
    Lyubomir Marinov
    • Method Detail

      • findStreamRTPManagerByReceiveSSRC

        StreamRTPManager findStreamRTPManagerByReceiveSSRC​(int receiveSSRC)
        Finds the StreamRTPManager which receives a specific SSRC.
        Parameters:
        receiveSSRC - the SSRC of the RTP stream received by the StreamRTPManager to be returned
        Returns:
        the StreamRTPManager which receives receiveSSRC of null
      • 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