Class AbstractRTPTranslator

    • Constructor Detail

      • AbstractRTPTranslator

        public AbstractRTPTranslator()
    • Method Detail

      • getWriteFilters

        protected RTPTranslator.WriteFilter[] getWriteFilters()
        Gets the WriteFilters added to this RTPTranslator.
        Returns:
        the WriteFilters added to this RTPTranslator
      • removeWriteFilter

        public void removeWriteFilter​(RTPTranslator.WriteFilter writeFilter)
        Removes a WriteFilter from this RTPTranslator.
        Specified by:
        removeWriteFilter in interface RTPTranslator
        Parameters:
        writeFilter - the WriteFilter to remove from this RTPTranslator
      • willWrite

        protected boolean willWrite​(MediaStream source,
                                    RawPacket pkt,
                                    MediaStream destination,
                                    boolean data)
        Notifies this RTPTranslator that a buffer from a source will be written into a destination.
        Parameters:
        source - the source of buffer
        pkt - the packet from source which is to be written into destination
        destination - the destination into which buffer is to be written
        data - true for data/RTP or false for control/RTCP
        Returns:
        true if the writing is to continue or false if the writing is to abort
      • willWrite

        protected boolean willWrite​(RTPTranslator.WriteFilter writeFilter,
                                    MediaStream source,
                                    RawPacket pkt,
                                    MediaStream destination,
                                    boolean data)
        Invokes a specific WriteFilter.
        Parameters:
        source - the source of buffer
        pkt - the packet from source which is to be written into destination
        destination - the destination into which buffer is to be written
        data - true for data/RTP or false for control/RTCP
        Returns:
        true if the writing is to continue or false if the writing is to abort