Skip to content

feat(web): add album title, artwork tiers and loopMix playhead to MediaSession - #1454

Open
aaditya079 wants to merge 1 commit into
kushagrasinghx:mainfrom
aaditya079:feat/web-mediasession-album-and-seek
Open

aaditya079 wants to merge 1 commit into
kushagrasinghx:mainfrom
aaditya079:feat/web-mediasession-album-and-seek

Conversation

@aaditya079

Copy link
Copy Markdown

Summary

Enhances the native
avigator.mediaSession integration for system media transport overlays (Windows SMTC, macOS Now Playing, Chrome OS, and mobile lockscreens):

  • Album Metadata: Supplies �lbum: activeTrack.album?.name to MediaMetadata so native overlays display the album title alongside artist and track name.
  • Artwork Sizing: Expands artwork array to include 128px and 384px tiers for high-DPI desktop flyouts.
  • LoopMix / Automix Seeking: Uses getPlayhead() in seekbackward and seekforward so hardware media keys accurately seek during an Automix transition instead of querying paused audio elements.
  • Stop Handler: Binds standard stop action handler.
  • Position Accuracy: Updates setPositionState with loopMix playhead timing.

Testing

  • pnpm -r test: 159 tests passing.
  • pnpm typecheck: 0 errors.

…iaSession

Enhance native MediaSession integration for OS transport controls (Windows SMTC, macOS, Android lockscreen):
- Add album title to MediaMetadata from active queue track
- Expand artwork sizes to include 128px and 384px tiers
- Synchronize seekforward and seekbackward with getPlayhead() during Automix/loopMix
- Register stop action handler
- Update setPositionState to reflect loopMix playhead timing

This branch has not been deployed

No deployments
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