net.rim.device.api.media.control
Interface StreamingBufferControl

All Superinterfaces:
Control

public interface StreamingBufferControl
extends Control

StreamingBufferControl controls the internal streaming buffers of the Player.

Since:
BlackBerry API 4.5.0

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

flush

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().

Since:
BlackBerry API 4.5.0

setBufferTime

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.

Parameters:
millis - The amount of time to buffer in milliseconds.
Throws:
IllegalArgumentException - When millis is less than 0.
Since:
BlackBerry API 7.0.0





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