|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOnDemandStream
Extends stream to add methods for on demand access.
Method Summary | |
---|---|
boolean |
isPaused()
Is the stream paused |
boolean |
isPlaying()
Is the stream playing |
boolean |
isStopped()
Is the stream stopped |
void |
pause()
Pause the stream |
void |
play()
Start playback |
void |
play(int length)
Start playback with a given maximum duration. |
void |
resume()
Resume a paused stream |
void |
seek(int position)
Seek to the keyframe nearest to position |
void |
stop()
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 Detail |
---|
void play()
void play(int length)
length
- maximum duration in millisecondsvoid seek(int position)
position
- position in millisecondsvoid pause()
void resume()
void stop()
stop
in interface IStream
boolean isPaused()
boolean isStopped()
boolean isPlaying()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |