Add playback handoff support
This commit is contained in:
1 parent
c72596ef44
commit
77c00cc47e
5 files changed
+440
-1
No files matched your search
@@ -14,6 +14,7 @@ The iOS client is closed source for now. It targets iOS only and uses SwiftUI fo
|
||||
- **Catalog pages:** album pages show artwork, title, artists, Play and Shuffle actions, and the album’s tracks. Artist pages show artist artwork/name, Play and Shuffle actions, the artist’s tracks, and albums. A separate artist Songs page lists that artist’s tracks. Tracks link to their album and artist pages.
|
||||
- **Personal library:** tracks can be saved to and removed from the signed-in user’s Library. Library navigation has Songs, Albums, and Artists views. Songs can be played in order or shuffled and removed from the Library. The Albums and Artists lists are derived from the user’s saved tracks; they are not separately saved collections.
|
||||
- **Playback:** provide persistent playback controls for current track/artwork and artist, play/pause, previous/next, shuffle, repeat, seek with elapsed/remaining time, volume, queue access, and fullscreen player access. Track actions include playing only that track, playing next, adding to queue, saving/removing from Library, and navigating to the track’s artist or album. The queue can be reordered and tracks in it can be selected for playback. Preserve appropriate iOS background/audio-session and system media-control behavior when implementing the equivalent native experience.
|
||||
- **Playback handoff:** after authentication, restore the unexpired playback handoff only if the player is empty. Save current track, position, queue, history, repeat mode, and playing state through `/api/user/playback-handoff`; refresh position every 15 seconds while playing and save on meaningful state changes or app backgrounding. Consume the handoff only after a successful playing or paused restore, and clear it when the player is cleared. Handoff failures must not interrupt local playback.
|
||||
- **Fullscreen player and lyrics:** show artwork, track and artist, playback controls, seek and volume controls over an animated, artwork-derived color wash. Display plain lyrics when available. For synced lyrics, highlight and follow the current line and allow tapping a line to seek to its timestamp. Lyrics may be absent or unsynced.
|
||||
- **Admin catalog tools:** the web app exposes an admin-only panel with tables for genres, artists, albums, and songs, plus create/edit forms. Forms support artist artwork, album artwork/artists/genre, and song audio/artists/album plus lyrics and synced-lyrics metadata. Song creation can create a single album as part of the flow. The backend has delete APIs, but the current web table delete buttons are unimplemented; do not present deletion as an existing user-facing flow unless the web UI implements it. Keep administration restricted to admin accounts.
|
||||
|
||||
|
||||
Reference in new issue
Block a user