android / uamp

A sample audio app for Android
Apache License 2.0
13.11k stars 3.76k forks source link

pattern to follow for Jetpack Media3 #505

Open pawaom opened 2 years ago

pawaom commented 2 years ago

pattern to follow for Jetpack Media3

The Android media3 video specifies https://www.youtube.com/watch?v=sTIBDcyCmCg&t=480s , mediacontroller is a player implementation, we can direclty pass it to the playerview,

So do we need a mediaconnection class, or we can directly use the implement in the activity and serviceclass, like it was provied in the mediasessions demo

https://github.com/androidx/media/tree/release/demos/session

follows this pattern , should we follow this , then a lot of code is removed. Then UAMP compose/media3 demo still follows the old pattern , can there be a proper explanation, and if we need to follow the mediasession demo pattern, will the UAMP code be updated to that pattern.