Skip to content

fix: minecraft music persists across navigation + random song start#193

Merged
cquil11 merged 4 commits intomasterfrom
fix/minecraft-music-navigation
Apr 14, 2026
Merged

fix: minecraft music persists across navigation + random song start#193
cquil11 merged 4 commits intomasterfrom
fix/minecraft-music-navigation

Conversation

@cquil11
Copy link
Copy Markdown
Contributor

@cquil11 cquil11 commented Apr 14, 2026

Summary

  • Fix music pause on navigation: Switch all header NavLink to Next.js Link (soft nav) instead of plain <a> tags for cross-layout-group routes. The root layout stays mounted so the YouTube music player is never destroyed when switching between pages.
  • Random song selection: Replace playlist-index-based seeking with timestamp-based song selection. On fresh sessions, picks a random song from the 10-track Minecraft OST compilation (Subwoofer Lullaby, Living Mice, Haggstrom, Minecraft, Mice on Venus, Dry Hands, Wet Hands, Clark, Sweden, Danny) and seeks to its start timestamp. On resume within 30s, continues from the saved playback position.

Test plan

  • Music continues uninterrupted when navigating Home → Dashboard → Supporters → Articles → About
  • On first visit with minecraft mode, music starts at the beginning of a random song
  • On page refresh, music resumes from where it left off (within 30s)
  • All navigation links still work correctly

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
inferencemax-app Ready Ready Preview, Comment Apr 14, 2026 2:20pm

Request Review

- Convert all internal <a href> to Next.js Link across header, landing
  page, curated view cards, and quote carousel for seamless soft nav
- Replace playlist-index seeking with timestamp-based song selection
  (10 songs with known start times from the Minecraft OST compilation)
- Track user interactions so the player can aggressively retry
  playVideo() when the browser has an active gesture context
- On fresh sessions, seek to the start of a random song
- On resume (< 30s), seek to the saved playback time

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cquil11 cquil11 merged commit 017c683 into master Apr 14, 2026
10 of 12 checks passed
@cquil11 cquil11 deleted the fix/minecraft-music-navigation branch April 14, 2026 14:23
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