framework: Playback resumption setting `qs_media_resumption` is not respected
@marcbaechinger is already working on this.
Since Feb 16, 2024.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.2.0
More version details
This is the Media3 library build which comes with AOSP 13.
Devices that reproduce the issue
Google Pixel 6a, LineageOS 20.
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
It is trivial to demonstrate the violation of documented behavior under any app supporting https://developer.android.com/media/media3/session/background-playback#resumption
- Settings
- Sound & vibration
- Media
- Pin media player -> disable (
qs_media_resumption= 0)
The steps above reflect the wording of https://developer.android.com/media/implement/surfaces/mobile#supporting-media:
The playback resumption feature can be turned on and off using the Settings app, under the Sound > Media options. The user can also access Settings by tapping the gear icon that appears after swiping on the expanded carousel.
From this point:
- Force-stop any app playing media
- Restart the phone, if you wish
- Start the phone
- Invoke media resumption by initiating a Bluetooth connection or using a hardware play button
Expected result
Media does not play when the play button is pressed with qs_media_resumption disabled.
Actual result
App opens and media plays, despite the app being killed and playback resumption being disabled.
Media
This is a framework issue reproduceable with any app that implements Playback Resumption, including ExoPlayer.
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.