PlaybackSnapshot

data class PlaybackSnapshot(val timeS: Double, val isPlaying: Boolean, val playbackRate: Double = 1.0, val sampledAtMs: Double? = null)(source)

One reading of the player.

Constructors

Link copied to clipboard
constructor(timeS: Double, isPlaying: Boolean, playbackRate: Double = 1.0, sampledAtMs: Double? = null)

Properties

Link copied to clipboard

Whether the song is playing.

Link copied to clipboard

How fast it plays, 1 for normal speed.

Link copied to clipboard

When the time was read, on the view's wall clock, in milliseconds. Given, the view extrapolates the time to now while playing; left out, the time is taken as current.

Link copied to clipboard

Seconds into the song.