tv-samples icon indicating copy to clipboard operation
tv-samples copied to clipboard

Add sample for playing music in classic Kotlin sample

Open rinav opened this issue 5 years ago • 1 comments

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

rinav avatar May 04 '20 10:05 rinav

We have an older example of extending PlaybackSupportFragment for audio at https://github.com/android/uamp/blob/v1/mobile/src/main/java/com/example/android/uamp/ui/tv/TvPlaybackFragment.java from the Universal Android Music Player (UAMP) sample. It hasn't been modernized, but it may provide some help.

IanGClifton avatar May 08 '20 01:05 IanGClifton