What types of events can I monitor with a PlayerListener?

John Zukowski

Just look at the constants in the interface:

static java.lang.String BUFFERING_STARTED
Posted when the Player enters into a buffering mode.
static java.lang.String BUFFERING_STOPPED
Posted when the Player leaves the buffering mode.
static java.lang.String CLOSED
Posted when a Player is closed.
static java.lang.String DEVICE_AVAILABLE
Posted when the system or another higher priority application has released an exclusive device which is now available to the Player.
static java.lang.String DEVICE_UNAVAILABLE
Posted when the system or another higher priority application has temporarily taken control of an exclusive device which was previously available to the Player.
static java.lang.String DURATION_UPDATED
Posted when the duration of a Player is updated.
static java.lang.String END_OF_MEDIA
Posted when a Player has reached the end of the media.
static java.lang.String ERROR
Posted when an error had occurred.
static java.lang.String RECORD_ERROR
Posted when an error occurs during the recording.
static java.lang.String RECORD_STARTED
Posted when recording is started.
static java.lang.String RECORD_STOPPED
Posted when recording is stopped.
static java.lang.String SIZE_CHANGED
Posted when the size of the video is changed either because the source video size or the display size is changed.
static java.lang.String STARTED
Posted when a Player is started.
static java.lang.String STOPPED
Posted when a Player stops in response to the stop method call.
static java.lang.String STOPPED_AT_TIME
Posted when a Player is stopped as responding to the setStopTime call using the StopTimeControl.
static java.lang.String VOLUME_CHANGED
Posted when the volume of an audio device is changed.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact