android / android/tv-samples

Add sample for playing music in classic Kotlin sample

Open
#30 1 comment 3 reactions 0 assignees View on GitHub
feature request
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.