Fields Summary |
---|
String | STARTEDPosted when a Player is started.
When this event is received, the eventData parameter
will be a Long object designating the media
time when the Player is started.
Value started is assigned to STARTED . |
String | STOPPEDPosted when a Player stops in response to the
stop method call.
When this event is received, the eventData parameter
will be a Long object designating the media
time when the Player stopped.
Value stopped is assigned to STOPPED . |
String | END_OF_MEDIAPosted when a Player has reached the
end of the media.
When this event is received, the eventData parameter
will be a Long object designating the media
time when the Player reached end of media and stopped.
Value endOfMedia is assigned to
END_OF_MEDIA . |
String | DURATION_UPDATEDPosted when the duration of a Player is updated.
This happens for some media types where the duration cannot
be derived ahead of time. It can only be derived after the
media is played for a period of time -- for example, when it
reaches a key frame with duration info; or when it reaches
the end of media.
When this event is received, the eventData parameter
will be a Long object designating the duration
of the media.
Value durationUpdated is assigned to
DURATION_UPDATED . |
String | DEVICE_UNAVAILABLEPosted when the system or another higher priority
application has temporarily taken control of an
exclusive device which was
previously available to the Player .
The Player will be in the REALIZED
state when this event is received.
This event must
be followed by either a DEVICE_AVAILABLE
event when the device becomes available again,
or an ERROR event if the device
becomes permanently unavailable.
The eventData parameter is a String
specifying the name of the device.
Value deviceUnavailable is assigned to
DEVICE_UNAVAILABLE . |
String | DEVICE_AVAILABLEPosted when the system or another higher priority
application has released an exclusive device
which is now available to the Player .
The Player will be in the REALIZED
state when this event is received. The application
may acquire the device with the
prefetch or start method.
A DEVICE_UNAVAILABLE event must
preceed this event.
The eventData parameter is a String
specifying the name of the device.
Value deviceAvailable is assigned to
DEVICE_AVAILABLE . |
String | VOLUME_CHANGEDPosted when the volume of an audio device is changed.
When this event is received, the eventData parameter
will be a
VolumeControl
object. The new volume
can be queried from the VolumeControl .
Value volumeChanged is assigned to
VOLUME_CHANGED . |
String | ERRORPosted when an error had occurred.
When this event is received, the eventData parameter
will be a String object specifying the error message.
Value error is assigned to ERROR . |
String | CLOSEDPosted when a Player is closed.
When this event is received, the eventData parameter
is null.
Value closed is assigned to CLOSED . |