public class PlayerStateEvent extends PlayerEvent
Modifier and Type | Class and Description |
---|---|
static class |
PlayerStateEvent.PlayerState |
Constructor and Description |
---|
PlayerStateEvent(PlayerStateEvent.PlayerState state,
double time)
Constructor.
|
PlayerStateEvent(PlayerStateEvent.PlayerState state,
double time,
String message)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public PlayerStateEvent(PlayerStateEvent.PlayerState state, double time)
state
- The state of the player.time
- The time in seconds when this event occurred.IllegalArgumentException
- if state
is null
or time<0.0
.public PlayerStateEvent(PlayerStateEvent.PlayerState state, double time, 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.IllegalArgumentException
- if state
is null
or time<0.0
.public PlayerStateEvent.PlayerState getState()
public double getTime()
public String getMessage()
Copyright © 2020. All rights reserved.