mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[PR #668] Sync lyrics highlighting with playback progress #654
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#654
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jpochyla/psst/pull/668
Author: @Cleboost
Created: 7/7/2025
Status: 🔄 Open
Base:
main← Head:sync-lyric📝 Commits (4)
d3631faSync lyrics highlighting with playback progressf3d72deSync playback state in CommonCtx and update lyrics timing2512cb5Refactor progress calculation for lyrics highlighting8b93b4dRefactor lyrics timing and playback state handling📊 Changes
3 files changed (+85 additions, -3 deletions)
View changed files
📝
psst-core/src/player/worker.rs(+1 -1)📝
psst-gui/src/data/mod.rs(+27 -1)📝
psst-gui/src/ui/lyrics.rs(+57 -1)📄 Description
This pull request introduces enhancements to playback state management and lyrics synchronization within the
psst-guiapplication. Key changes include the addition of playback state tracking in theCommonCtx, a newLyricsTickercontroller for real-time updates, and improvements to the lyrics widget for dynamic synchronization with playback progress.Playback State Management Enhancements:
psst-gui/src/data/mod.rs: Addedprogress,last_update_ms, andplayback_statefields toCommonCtxfor tracking playback progress and state. Introduced a helper methodset_common_progressto update progress and timestamp consistently. [1] [2] [3]Lyrics Synchronization Improvements:
psst-gui/src/ui/lyrics.rs: Added aLyricsTickercontroller for periodic updates to the lyrics widget, ensuring synchronization with playback progress. [1] [2]psst-gui/src/ui/lyrics.rs: Enhanced the lyrics widget to dynamically highlight lyrics based on playback progress, using calculated offsets and playback state. [1] [2]These changes improve the user experience by providing accurate playback state tracking and seamless lyrics synchronization during music playback.
close https://github.com/jpochyla/psst/issues/658
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.