PlaybackService destroyed when launched through driving mode
Description
Google introduced a replacement for Android Auto for Phones known as Google Assistant Driving Mode. This new capability is launched directly from Maps and must be enabled via a series of settings. See: Google Maps Driving Mode
Once Driving Mode is enabled, VLC appears in the list of media applications. You can select the application and navigate through the media browser. You can also start playback; however, playback terminates after approximately 10 seconds.
The debugger shows PlaybackService.onDestroy() is invoked for an unknown reason. Based on Music service destroyed unexpectedly, which appears to be the same issue, I believe the application is launched in the background and fails to register itself appropriately.
Expected behavior
Playback should continue until the end of the playlist
Actual behavior
Playback stops after 10 seconds
Steps to reproduce
- Launch Maps in Driving Mode
- Select VLC
- Click on a song to start playback
- Observe Playback stops at approximately 10 seconds
Screenshot
Context
App version
3.4.3 Beta 2
Android version
Android 11
Device model
Pixel 3
App mode
Smartphone