Android Question How to implement notification and lockscreen controls for ExoPlayer?

Inman

Well-Known Member
Licensed User
ExoPlayer is a nice addition to B4A. It's built-in UI controls are nice enough to not bother with developing custom UI. It even supports background playback.

But for a media player, users usually expect player controls on both notification and lockscreen when playing in the background. Popular media players like Google Play Music, Poweramp, Shuttle etc... do this.

I was wondering if it is possible to do it in B4A as well. I found some exoplayer Java documentation regarding this. It will be great if someone could translate it to B4A. TIA.

Playback Notifications with ExoPlayer
MediaSession extension for lockscreen playback
 
Top