androidx / androidx/media

Killing the app while audio is playing results in "The controller is not connected" and not being able to play again

Open
#1,059 23 comments 2 reactions 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Feb 2, 2024.

documentation candidate question
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Version

Media3 1.2.0

More version details

No response

Devices that reproduce the issue
  • OnePlus 7T Pro - Android 11
  • Pixel 4 Emulator - Api 33
Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps
  1. Open app and play audio
  2. Kill the app (swipe from recents)
  3. Reopen the app and try to play audio again
Expected result

The audio should play normmally

Actual result

Audio doesn't play.
Logs:

MediaController      The controller is not connected. Ignoring setMediaItem().
MediaController      The controller is not connected. Ignoring prepare().

If the app is killed a second time, then the audio will play normally. However the issue can be reproduced again.

Media

Not applicable

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.