RiTune TV UI Upgrade + Metadata Resolver#5
Open
elvarHex wants to merge 1 commit into
Open
Conversation
Replace YouTube video UI with TV-style Now Playing layout Add MusicBrainz + YouTube oEmbed metadata resolver Display cover art, title, artist, and playback duration Remove video ID from UI Improve progress display formatting (mm:ss / mm:ss)
Owner
|
Notevole, e se voglio vedere un video? |
Contributor
Author
|
beh, si potrebbe aggiungere una nuova scheda, in questi giorni inizio a svilupparla e invierò un'altra PR |
Owner
|
Io sono dell'idea che una funzionalità presente non deve essere rimossa, perchè ad esempio io sono uno degli utenti a cui piace usarla. |
Contributor
Author
|
infatti si aggiunge. Immagina in alto a destra dei pulsanti per scegliere se avere schermata "Audio" (come questa), "Video" e "Testo" per il karaoke |
Owner
|
C'è un aspetto che non mi convince:
|
Contributor
Author
|
io stavo pensando più a una cosa che si potrebbe fare direttamente su RiTune con il D-PAD:
è da ampliare, al omento è solo un idea..... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a major redesign of the Now Playing UI and adds real metadata fetching (title, artist, cover art) inspired by RiPlay-like behavior using YouTube oEmbed + MusicBrainz + Cover Art Archive.
🎨 UI Changes (Player.kt)
1. Removed YouTube Video UI
2. New "Spotify for TV" Layout
3. Removed Video ID display
❌ Removed:
4. Replaced with Time Display
✔ Added formatted playback time:
Example:
Implementation:
🧠 Metadata System (NEW)
1. TrackMetadataResolver.kt (NEW FILE)
Path:
Features:
2. Data Model
3. Metadata Flow
Fallback:
⚙️ Player.kt Integration
Added:
trackMetadatastateLaunchedEffect(mediaId)fetch triggerNow uses:
TrackMetadataResolver.resolve(mediaId)🎯 Result
The app now behaves like a TV music player:
🚀 Future Improvements (Optional)
ℹ️ Issue #4 partially closed
ℹ️ You need to edit readme.md, with this pull, RiTune will become only audio receiver, but in the future a video mode could be added, and also lyrics of the song