org.gstreamer.event

Class SeekEvent

    • Constructor Detail

      • SeekEvent

        public SeekEvent(NativeObject.Initializer init)
        This constructor is for internal use only.
        Parameters:
        init - initialization data.
      • SeekEvent

        public SeekEvent(double rate,
                 Format format,
                 int flags,
                 SeekType startType,
                 long start,
                 SeekType stopType,
                 long stop)
        Creates a new seek event.
        Parameters:
        rate - the new playback rate
        format - the format of the seek values
        flags - the optional seek flags
        startType - the type and flags for the new start position
        start - the value of the new start position
        stopType - the type and flags for the new stop position
        stop - the value of the new stop position
    • Method Detail

      • getRate

        public double getRate()
        Gets the playback rate. A rate of 1.0 means normal playback rate, 2.0 means double speed. Negative values means backwards playback. A value of 0.0 for the rate is not allowed and should be accomplished instead by PAUSING the pipeline.
        Returns:
        the playback rate.
      • getFormat

        public Format getFormat()
        Gets the Format of the start and stop seek values.
        Returns:
        the format.
      • getFlags

        public int getFlags()
        Gets the SeekFlags of this seek event.
        Returns:
        the seek flags.
      • getStartType

        public SeekType getStartType()
        Gets the SeekType of the start value.
        Returns:
        the SeekType.
      • getStart

        public long getStart()
        Gets the start of the seek segment.
        Returns:
        the start of the seek.
      • getStopType

        public SeekType getStopType()
        Gets the SeekType of the start value.
        Returns:
        the SeekType.
      • getStop

        public long getStop()
        Gets the stop position of the seek.
        Returns:
        the stop position.