public class BufferProgressEvent extends PlayerEvent
| Modifier and Type | Field and Description |
|---|---|
private double |
duration |
private long |
position |
private long |
start |
private long |
stop |
| Constructor and Description |
|---|
BufferProgressEvent(double duration,
long start,
long stop,
long position)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBufferPosition()
Get the total bytes loaded in the buffer from the 0 position.
|
long |
getBufferStart()
Get buffer start position in bytes.
|
long |
getBufferStop()
Gets the stop position of the buffer size in bytes.
|
double |
getDuration() |
private double duration
private long start
private long stop
private long position
public BufferProgressEvent(double duration,
long start,
long stop,
long position)
PlayerStateEvent.PlayerState.STALLEDstart - Start position of the buffersize - Total size of the buffer in bytesfill - Number of bytes loadedpublic double getDuration()
public long getBufferStart()
public long getBufferStop()
public long getBufferPosition()