MediaSessionService never destroyed
Open
@marcbaechinger is already working on this.
Since May 12, 2023.
bug
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Media3 Version
Media3 1.0.1
Devices that reproduce the issue
Android emulator API 33
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
I first mentioned this issue in #346.
- Connect MediaController in one process to MediaSession (via MediaSessionService) in another process.
- Perform some amount of player interaction, like starting and pausing playback.
- Release MediaController on client.
- Observe MediaController being disconnected on server side.
- For good measure, manually release MediaSession and Player from
MediaSession.Callback.onDisconnected() - Wait for a long time (30+ minutes)
- Observe that MediaSessionService.onDestroy() still has not been called
Notably this issue does not occur when there is no player interaction, i.e. Player and MediaSession created but not really used, e.g. no call to prepare().
Expected result
MediaSessionService.onDestroy() called shortly after MediaController released.
Actual result
MediaSessionService.onDestroy() never called.
Media
N/A
Bug Report
- You will email the zip file produced by
adb bugreportto dev.exoplayer@gmail.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.