|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.dvb.media.monitoring.MonitoringEvent
org.dvb.media.monitoring.BufferingStatusEvent
public class BufferingStatusEvent
Event is signalling a change in the buffer status.
Events are sent when a JMF Player is in the Started state.
To prevent implementation from being overloaded
BUFFERING_STATUS_UNDERRUN
and
BUFFERING_STATUS_BACK_TO_NORMAL
events should
not be sent faster than one per seconds.
Field Summary | |
---|---|
static int |
BUFFERING_STATUS_BACK_TO_NORMAL
Indicates that buffering status back to a normal state from BUFFERING_STATUS_UNDERRUN or
BUFFERING_STATUS_STOPPED states. |
static int |
BUFFERING_STATUS_STOPPED
Indicates that buffering has been stopped. |
static int |
BUFFERING_STATUS_UNDERRUN
Indicates that buffering status is underrun. |
Constructor Summary | |
---|---|
BufferingStatusEvent(java.lang.Object source,
int bufferingStatus)
Construct the event. |
Method Summary | |
---|---|
int |
getBufferingStatus()
Get buffering status. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int BUFFERING_STATUS_BACK_TO_NORMAL
BUFFERING_STATUS_UNDERRUN
or
BUFFERING_STATUS_STOPPED
states.
public static final int BUFFERING_STATUS_UNDERRUN
public static final int BUFFERING_STATUS_STOPPED
Constructor Detail |
---|
public BufferingStatusEvent(java.lang.Object source, int bufferingStatus) throws java.lang.IllegalArgumentException
source
- the source of the event. The platform shall always pass in the
JMF Player presenting the media whose property has been changedbufferingStatus
- the status of the buffer
java.lang.IllegalArgumentException
- thrown if bufferingStatus is out of rangeMethod Detail |
---|
public int getBufferingStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |