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 ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisPaused()Is the stream pausedbooleanIs the stream playingbooleanIs the stream stoppedvoidpause()Pause the streamvoidplay()Start playbackvoidplay(int length) Start playback with a given maximum duration.voidresume()Resume a paused streamvoidseek(int position) Seek to the keyframe nearest to positionvoidstop()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
-