Interface IOnDemandStream

All Superinterfaces:
IStream

public interface IOnDemandStream extends IStream
Extends stream to add methods for on demand access.
Author:
The Red5 Project, Luke Hubbard (luke@codegent.com)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Is the stream paused
    boolean
    Is the stream playing
    boolean
    Is the stream stopped
    void
    Pause the stream
    void
    Start playback
    void
    play(int length)
    Start playback with a given maximum duration.
    void
    Resume a paused stream
    void
    seek(int position)
    Seek to the keyframe nearest to position
    void
    Stop the stream, this resets the position to the start

    Methods inherited from interface org.red5.server.api.stream.IStream

    close, getCodecInfo, getCreationTime, getName, getScope, start
  • Method Details

    • play

      void play()
      Start playback
    • play

      void play(int length)
      Start playback with a given maximum duration.
      Parameters:
      length - maximum duration in milliseconds
    • seek

      void seek(int position)
      Seek to the keyframe nearest to position
      Parameters:
      position - position in milliseconds
    • pause

      void pause()
      Pause the stream
    • resume

      void resume()
      Resume a paused stream
    • stop

      void stop()
      Stop the stream, this resets the position to the start
      Specified by:
      stop in interface IStream
    • isPaused

      boolean isPaused()
      Is the stream paused
      Returns:
      true if the stream is paused
    • isStopped

      boolean isStopped()
      Is the stream stopped
      Returns:
      true if the stream is stopped
    • isPlaying

      boolean isPlaying()
      Is the stream playing
      Returns:
      true if the stream is playing