Interface IPublishingProvider

    • Method Detail

      • play

        boolean play​(Publisher publisher)
        Invoked on play
        Parameters:
        publisher - publisher
        Returns:
        true if successful
      • close

        void close()
        Invoked on stream close
      • seek

        boolean seek​(long timecode,
                     int seekType)
        Invoked on seek
        Parameters:
        timecode - target timecode
        seekType - seek type, see IMediaReader.SEEKTARGET_*
        Returns:
        true, if seek successful
      • seek

        boolean seek​(long timecode)
        Invoked on seek
        Parameters:
        timecode - target timecode
        Returns:
        true, if seek successful
      • setDuration

        void setDuration​(long duration)
        Set target duration for playback (milliseconds)
        Parameters:
        duration - duration for playback (milliseconds)
      • setRealTimeStartTime

        default void setRealTimeStartTime​(long realTimeStartTime)
        Set real start time (milliseconds)
        Parameters:
        realTimeStartTime - real start time (milliseconds)
      • setSendOnMetadata

        void setSendOnMetadata​(boolean sendOnMetadata)
        Set to send onMetadata event when stream starts
        Parameters:
        sendOnMetadata - true to send onMetadata event
      • isSendOnMetadata

        boolean isSendOnMetadata()
        Get to send onMetadata event when stream starts
        Returns:
        true to send onMetadata event