Modifier and Type | Field and Description |
---|---|
boolean |
isPaused
true if the state is paused i.e.
|
PlayerOptions |
playbackOptions
PlayerOptions for this player state |
long |
playbackPosition
playback position in milliseconds
|
PlayerRestrictions |
playbackRestrictions
PlayerRestrictions for this player state |
float |
playbackSpeed
Playback speed relative to wall time.
|
Track |
track
A track currently associated with this player state or null if there is none
|
Constructor and Description |
---|
PlayerState(Track track,
boolean isPaused,
float playbackSpeed,
long playbackPosition,
PlayerOptions playbackOptions,
PlayerRestrictions playbackRestrictions) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
@SerializedName(value="track") public final Track track
@SerializedName(value="is_paused") public final boolean isPaused
@SerializedName(value="playback_speed") public final float playbackSpeed
@SerializedName(value="playback_position") public final long playbackPosition
@SerializedName(value="playback_options") public final PlayerOptions playbackOptions
PlayerOptions
for this player state@SerializedName(value="playback_restrictions") public final PlayerRestrictions playbackRestrictions
PlayerRestrictions
for this player statepublic PlayerState(Track track, boolean isPaused, float playbackSpeed, long playbackPosition, PlayerOptions playbackOptions, PlayerRestrictions playbackRestrictions)