Package org.red5.server.api.stream
Interface IOnDemandStream
- All Superinterfaces:
IStream
Extends stream to add methods for on demand access.
- Author:
- The Red5 Project, Luke Hubbard (luke@codegent.com)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isPaused()
Is the stream pausedboolean
Is the stream playingboolean
Is the stream stoppedvoid
pause()
Pause the streamvoid
play()
Start playbackvoid
play
(int length) Start playback with a given maximum duration.void
resume()
Resume a paused streamvoid
seek
(int position) Seek to the keyframe nearest to positionvoid
stop()
Stop the stream, this resets the position to the startMethods 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 -
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
-