Class PublishingProviderMediaReader

    • Field Detail

      • ONMETADATA_FILTER_NONE

        public static final long ONMETADATA_FILTER_NONE
        See Also:
        Constant Field Values
      • ONMETADATA_FILTER_DURATION

        public static final long ONMETADATA_FILTER_DURATION
        See Also:
        Constant Field Values
    • Constructor Detail

      • PublishingProviderMediaReader

        public PublishingProviderMediaReader​(Publisher publisher,
                                             long audioStart,
                                             long videoStart,
                                             String streamName)
        Constructor
        Parameters:
        publisher - publisher
        audioStart -
        videoStart -
        streamName - stream name
    • 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
      • filterMetadata

        public byte[] filterMetadata​(byte[] dataDataBytes)
      • getDuration

        public long getDuration()
        Get the target playback duration (milliseconds)
        Returns:
        playback duration (milliseconds)
      • 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)
      • setRealTimeStartTime

        public void setRealTimeStartTime​(long realTimeStartTime)
        Description copied from interface: IPublishingProvider
        Set real start time (milliseconds)
        Specified by:
        setRealTimeStartTime in interface IPublishingProvider
        Parameters:
        realTimeStartTime - real start time (milliseconds)
      • getSpeed

        public double getSpeed()
      • setSpeed

        public void setSpeed​(double speed)
      • getOnMetadataFilter

        public long getOnMetadataFilter()
        Filter that control what metadata items are removed from onMetaData event. Default is ONMETADATA_FILTER_DURATION. Value is a bit mask of ONMETADATA_FILTER_* value.
        Returns:
        control what metadata items are removed from onMetaData event
      • setOnMetadataFilter

        public void setOnMetadataFilter​(long onMetadataFilter)
        Filter that control what metadata items are removed from onMetaData event. Default is ONMETADATA_FILTER_DURATION. Value is a bit mask of ONMETADATA_FILTER_* value.
        Parameters:
        onMetadataFilter - control what metadata items are removed from onMetaData event
      • getCaptionLanguageQueryParameter

        public String getCaptionLanguageQueryParameter()
      • setCaptionLanguageQueryParameter

        public void setCaptionLanguageQueryParameter​(String captionLanguageQueryParameter)
      • getCaptionFilenameQueryParameter

        public String getCaptionFilenameQueryParameter()
      • setCaptionFilenameQueryParameter

        public void setCaptionFilenameQueryParameter​(String captionFilenameQueryParameter)
      • getCaptionLanguageStr

        public String getCaptionLanguageStr()
      • setCaptionLanguageStr

        public void setCaptionLanguageStr​(String captionLanguageStr)
      • getCaptionFilenameStr

        public String getCaptionFilenameStr()
      • setCaptionFilenameStr

        public void setCaptionFilenameStr​(String captionFilenameStr)
      • getTimedTextEventName

        public String getTimedTextEventName()
      • setTimedTextEventName

        public void setTimedTextEventName​(String timedTextEventName)
      • isTimedTextEnabled

        public boolean isTimedTextEnabled()
      • setTimedTextEnabled

        public void setTimedTextEnabled​(boolean timedTextEnabled)