ReadonlysourceChanges every time a source is opened, even the same file again.
Readonlykindstream for a generated source (Player.openStream).
ReadonlyphaseThe source's life cycle.
ReadonlysourcePath or URL; null when empty. A generated stream started with
Player.openStream has the opaque producer://<n> (do not parse
it); one a file resolver generates (FileResolverOptions) keeps
the path that was opened. Tell streams apart by kind, not by source.
ReadonlypausedPlayback is paused.
ReadonlypositionSeconds, null without media.
ReadonlydurationSeconds, null when unknown (live streams).
ReadonlyratePlayback speed (1 = normal).
ReadonlyvolumeDevice volume 0–200.
ReadonlymutedDevice output is muted.
ReadonlyendWhy the last playthrough stopped.
ReadonlyerrorLoad failure text when phase is error.
ReadonlycanWhich controls the current source allows.
Player.seek and Player.scrub.
A sequence provider exists and can go forward / back (player.next()).
A sequence provider exists and can go back (player.previous()).
ReadonlyaudioThe media's audio tracks; null before they are known.
Optional ReadonlyloopThe A-B loop (setLoop) as requested; count null = endless. Cleared by
a new source. The SDK always sets it (null = no loop); it is optional
only so hand-written test states without it still type-check.
Loop start, seconds.
Loop end, seconds.
Requested repetitions (not the remaining ones); null = endless.
Optional ReadonlyaudioThe output device setAudioDevice asked for and the one in use (null
= system default). Always set by the SDK; optional for the same reason
as loop.
The device id asked for, null = system default.
The device in use, null = system default.
An immutable view of the player. Keep one to make a later call conditional on it.
Without an open Player.stream, Player.state only updates at start, after this plugin's own operations and with the state an event carries.
See
Player.state, Control playback
Since
1.0.0