|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StreamingBufferControl
StreamingBufferControl controls the internal streaming buffers of the Player.
| Method Summary | ||
|---|---|---|
void |
flush()
Flushes all data currently buffered (but not yet played) by the Player. |
|
void |
setBufferTime(int millis)
Controls the amount of time of the source media to buffer before playback begins. |
|
| Method Detail |
|---|
void flush()
Flushes all data currently buffered (but not yet played) by the Player.
A call to this method will not interrupt playback as long as the Player can
continue to read expected data from a call to SourceStream.read() or
InputStream.read().
void setBufferTime(int millis)
Controls the amount of time of the source media to buffer before playback begins.
A call to this method will result in a best effort to start playback after the specified amount of time of the source media. Passing in a value of 0 will result in playback beginning as soon as possible after start is called on the player.
If a call to this method occurs after the Player is PREFETCHED then the
new value will take effect when the Player is moved back to REALIZED and
then PREFETCHED again.
A value less than 0 will result in an IllegalArgumentException being thrown.
millis - The amount of time to buffer in milliseconds.
IllegalArgumentException - When millis is less than 0.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal