UnigramDev/Unigram/playback-rework • 1e3ece3 • 1 files, +176/-27 Show album covers in the system med

Telegram github commits and releases

Telegram github commits and releases

@tgappsupdates

Broadcast from the most important Telegram clients' repositories

4,538 subscribers
Open in Telegram
UnigramDev/Unigram/playback-rework1e3ece31 files, +176/-27
Show album covers in the system media transport controls

The cover is the album cover thumbnail TDLib provides, or the external
variant closest to the size the transport renders when the audio file
carries none. Voice and video notes have no cover and show nothing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

UnigramDev/Unigram/playback-rework920cc422 files, +103/-49
Fix threading around the transport controls and the player

The transport belongs to the view it was acquired for, so every write to
it now goes back to that view's thread; it can otherwise be driven from a
second window's thread once a Clear has recreated the player there.

Player creation takes the same lock the rest of the player access does,
and repeat mode and shuffle are persisted and mirrored to the transport.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

UnigramDev/Unigram/playback-reworkaf08bff3 files, +487/-57
Grow the playback playlist as it is played

The playlist was one search of up to a hundred messages around the one
that started it, and the profile audio one was the first hundred audios
with the played one moved to the front. Both now page in as the current
track nears either end, through a source that owns its cursors.

A caller holding a profile source and the audios it loaded can hand both
over, so the playlist keeps the profile order instead of starting again.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

UnigramDev/Unigram/playback-reworkd09471c2 files, +19/-4
Start a handed-over profile playlist past the items it came with

Paging profile audio is by position, so a caller that hands over items
without the source that loaded them left the cursor at zero and the first
page repeated them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

#unigram
Open post in Telegram