androidx / androidx/media

framework: Playback resumption setting `qs_media_resumption` is not respected

Open
#1,090 6 comments 0 reactions 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Feb 16, 2024.

wont fix: intended behavior
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

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 bugreport to android-media-github@google.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.