public class PlayerStateEvent extends PlayerEvent
Modifier and Type | Class and Description |
---|---|
static class |
PlayerStateEvent.PlayerState |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
message |
private PlayerStateEvent.PlayerState |
playerState |
private double |
playerTime |
Constructor and Description |
---|
PlayerStateEvent(PlayerStateEvent.PlayerState state,
double time)
Constructor.
|
PlayerStateEvent(PlayerStateEvent.PlayerState state,
double time,
java.lang.String message)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Auxiliary message information when available.
|
PlayerStateEvent.PlayerState |
getState()
Retrieves the state of the media player.
|
double |
getTime()
Presentation time when the event occurred.
|
private PlayerStateEvent.PlayerState playerState
private double playerTime
private java.lang.String message
public PlayerStateEvent(PlayerStateEvent.PlayerState state, double time)
state
- The state of the player.time
- The time in seconds when this event occurred.java.lang.IllegalArgumentException
- if state
is null
or time<0.0
.public PlayerStateEvent(PlayerStateEvent.PlayerState state, double time, java.lang.String message)
state
- The state of the player.time
- The time in seconds when this event occurred.message
- Carries auxiliary message. HALTED state has additional information.java.lang.IllegalArgumentException
- if state
is null
or time<0.0
.public PlayerStateEvent.PlayerState getState()
public double getTime()
public java.lang.String getMessage()