Killing the app while audio is playing results in "The controller is not connected" and not being able to play again
Open
@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
- Open app and play audio
- Kill the app (swipe from recents)
- 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 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.