Class PublishingProviderLive

    • Constructor Detail

      • PublishingProviderLive

        public PublishingProviderLive​(Publisher publisher,
                                      long audioStart,
                                      long videoStart,
                                      String streamName)
    • Method Detail

      • seek

        public boolean seek​(long timecode)
        Description copied from interface: IPublishingProvider
        Invoked on seek
        Specified by:
        seek in interface IPublishingProvider
        Parameters:
        timecode - target timecode
        Returns:
        true, if seek successful
      • seek

        public boolean seek​(long timecode,
                            int seekType)
        Description copied from interface: IPublishingProvider
        Invoked on seek
        Specified by:
        seek in interface IPublishingProvider
        Parameters:
        timecode - target timecode
        seekType - seek type, see IMediaReader.SEEKTARGET_*
        Returns:
        true, if seek successful
      • getDuration

        public long getDuration()
      • setDuration

        public void setDuration​(long duration)
        Description copied from interface: IPublishingProvider
        Set target duration for playback (milliseconds)
        Specified by:
        setDuration in interface IPublishingProvider
        Parameters:
        duration - duration for playback (milliseconds)
      • isStartOnPreviousKeyFrame

        public boolean isStartOnPreviousKeyFrame()
      • setStartOnPreviousKeyFrame

        public void setStartOnPreviousKeyFrame​(boolean startOnPreviousKeyFrame)
      • getStartOnPreviousBufferTime

        public long getStartOnPreviousBufferTime()
      • setStartOnPreviousBufferTime

        public void setStartOnPreviousBufferTime​(long startOnPreviousBufferTime)
      • isStopIfStreamMissing

        public boolean isStopIfStreamMissing()
      • setStopIfStreamMissing

        public void setStopIfStreamMissing​(boolean stopIfStreamMissing)