Skip to content

feat(maclock): add animated album canvas with Apple Music Motion & Spotify Canvas - #11

Open
4sakenme wants to merge 2 commits into
0-ss:mainfrom
4sakenme:feature/maclock-canvas-animated
Open

4sakenme wants to merge 2 commits into
0-ss:mainfrom
4sakenme:feature/maclock-canvas-animated

Conversation

@4sakenme

@4sakenme 4sakenme commented Oct 20, 2026 •

Copy link
Copy Markdown

Summary of Changes

This pull request adds Dynamic Animated Album Canvas Video support to MacLock (LockScreen.qml), bringing official animated album covers from Apple Music Motion and Spotify Canvas to the lock screen.

🎵 Key Features & Optimizations

  • Official Apple Music Motion Artwork:
    • Integrates Apple Music's AMP API (amp-api.music.apple.com) to retrieve official animated album motion videos (editorialVideo: motionDetailSquare / motionDetailTall and HLS streams).
  • Spotify Canvas Integration:
    • Asynchronously queries and fetches Spotify Canvas videos for currently playing tracks.
  • Zero-CPU Video Remuxing & Instant Playback:
    • Automatically filters HLS master playlists for optimal bitrate (prioritizing ≤1080p, ≤5Mbps).
    • Uses pure stream-copy remuxing (ffmpeg -c copy) to package HLS segments into .mp4 within milliseconds with 0% CPU transcoding overhead.
  • Strict 20 MB Cache Protection:
    • Implements an LRU cache cleaner that automatically caps disk usage to 20 MB, preventing disk bloat.
  • Seamless Fallback:
    • Automatically falls back to standard high-resolution blurred static artwork whenever a song lacks animated video.
  • Power & Resource Efficient:
    • Video loops cleanly in the background and halts playback when the screen sleeps or is covered.

🎥 Demo Previews

1792480091.256671share.mp4
1.mp4

@4sakenme 4sakenme changed the title feat(maclock): add animated album canvas with Apple Music Motion & Spotify video feat(maclock): add animated album canvas with Apple Music Motion & Spotify Canvas Oct 20, 2026
@4sakenme

Copy link
Copy Markdown
Author

⚡ Optimization Update (Commit 2adacc8)

  • Instant Canvas & Artwork Reuse: Added artwork hash-based caching (art_mapping.json) so that tracks sharing the same album artwork or from the same album instantly reuse existing canvas videos with < 0.001s lookup time instead of making redundant API or download requests.
  • Album Pre-linking: Automatically associates all tracks in the same Apple Music album to the downloaded motion artwork, providing immediate animated canvas playback when switching tracks across an album.
  • Seamless LockScreen Playback: Updated LockScreen.qml so that when switching between songs with identical album art, the background canvas video continues uninterrupted without flickering.

MythosOfs added a commit to MythosOfs/MacShell that referenced this pull request Nov 22, 2026
Bring in Debian 13 support, GIF and WebP widgets, animated album art,
karaoke lyrics, System Monitor, optional Genie minimize, floating window
defaults, uptime, WireGuard, the audio hub, Reminders, Spotlight subtraction,
pinned-only Dock mode, tray collapse, and the unified icon grid.

Keep the fork's existing Spotlight screenshot search and Bluetooth status
reader. Sample Dock icons from the existing Image, fetch Apple Music motion
art from its public album page, and reuse MacLock's existing Spotify helper.
Isolate optional lyrics dependencies in a virtual environment.

Upstream: 0-ss#9, 0-ss#10, 0-ss#11, 0-ss#12, 0-ss#14, 0-ss#19, 0-ss#21, 0-ss#28, 0-ss#45, 0-ss#47,
0-ss#49, 0-ss#50, 0-ss#52, 0-ss#53, 0-ss#54.

Co-authored-by: 4sakenme <thienphutrinh4567@gmail.com>
Co-authored-by: Dexul <lcedu.dev@gmail.com>
Co-authored-by: Doffi4 <206447286+Doffi4@users.noreply.github.com>
Co-authored-by: Hrithik Ram Prasath <220790015+hrithikramprasath@users.noreply.github.com>
Co-authored-by: Marian Barba <134831821+MarianC-programing@users.noreply.github.com>
Co-authored-by: Victor Zwaga <victor.zwaga@gmail.com>
Co-authored-by: freroxx <yikni2829@gmail.com>
Co-authored-by: shuretokki <tri.r.utomo@gmail.com>
Co-authored-by: w4nnnn <irwanfebriansyah112@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant