Add sample for playing music in classic Kotlin sample
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 396
- PR merge metrics
- No merged PRs in 30d
Description
The current implementation of `MusicConsumptionFragment` in leanback-showcase uses deprecated `MediaPlayerGlue`. Need help in implementing `MediaPlayerAdapter` with `PlaybackTransportControlGlue`
There is not much in documentation, or articles, videos on developing TV apps. Most of the help we find online is for playing video but not much for audio.
How can we convert MusicConsumptionFragment to modern Kotlin like in classic kotlin case.
I cant understand how to use `MediaPlayerAdapter` with `PlaybackTransportControlGlue` extending `PlaybackSupportFragment` to get the UI similar to `MusicConsumptionFragment` where one has CoverPhoto, title, description and a list of rows for episodes with like and add to playlist action
Contributor guide
Research direction
Start with the existing MusicConsumptionFragment in the leanback-showcase classic Kotlin sample, then read the MediaPlayerAdapter, PlaybackTransportControlGlue, and PlaybackSupportFragment APIs. Compare the current deprecated MediaPlayerGlue usage with the requested modern approach. Done means the sample plays music with the modern Kotlin APIs while retaining the cover photo, title, description, episode rows, like action, and add-to-playlist action.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100