coverArt property
Embedded cover-art payload after each file load: the original
codec bytes (PNG, JPEG, WEBP, …) from the file's attached
picture stream, plus the MIME type. Hand straight to
Image.memory(raw.bytes) or run your own pipeline (resize, encode,
cache); the bytes are passed through unchanged.
Emits when each file loads, including mpv's reloads of the same file:
a CoverArt when the new file has embedded artwork, or null when
it does not. Player.open, Player.openAll and
Player.openPlaylistFile also emit null when they return, so the
new file's value follows a null, and the same cover can arrive
again as a new object. Listen for null to clear stale artwork on
tracks without a cover.
Implementation
final Stream<CoverArt?> coverArt;