APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.media.jfxmedia.events

public Class BufferProgressEvent

extends PlayerEvent
Class Inheritance

Event class for buffering progress notification.

Field Summary

Modifier and TypeField and Description
private double
private long
private long
private long

Constructor Summary

AccessConstructor and Description
public
BufferProgressEvent(double duration, long
Start position of the buffer
start
,
long stop, long position)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

The number of bytes loaded.
getBufferPosition
()

Get the total bytes loaded in the buffer from the 0 position.

public long

Returns:

The buffer start position.
getBufferStart
()

Get buffer start position in bytes.

public long

Returns:

The buffer stop position.
getBufferStop
()

Gets the stop position of the buffer size in bytes.

public double

Field Detail

durationback to summary
private double duration
positionback to summary
private long position
startback to summary
private long start
stopback to summary
private long stop

Constructor Detail

BufferProgressEventback to summary
public BufferProgressEvent(double duration, long start, long stop, long position)

Constructor. The state is set to PlayerStateEvent.PlayerState#STALLED

Parameters
start:long

Start position of the buffer

Method Detail

getBufferPositionback to summary
public long getBufferPosition()

Get the total bytes loaded in the buffer from the 0 position.

Returns:long

The number of bytes loaded.

getBufferStartback to summary
public long getBufferStart()

Get buffer start position in bytes.

Returns:long

The buffer start position.

getBufferStopback to summary
public long getBufferStop()

Gets the stop position of the buffer size in bytes.

Returns:long

The buffer stop position.

getDurationback to summary
public double getDuration()