Skip to content

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

Open
@k-arabadzhiev

Description

@k-arabadzhiev

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions