I Inman Well-Known Member Licensed User Longtime User Apr 12, 2018 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2018 #2 You can use a foreground service for the playback. You can control it with a notifications with actions: https://www.b4x.com/android/forum/threads/nb6-notifications-builder-class-2018.91819/ There is a built-in notification style for media playback. It is currently not available in NB6 though you can probably add it. Upvote 0
You can use a foreground service for the playback. You can control it with a notifications with actions: https://www.b4x.com/android/forum/threads/nb6-notifications-builder-class-2018.91819/ There is a built-in notification style for media playback. It is currently not available in NB6 though you can probably add it.