Playback resumption - How to opt-out at runtime?
@marcbaechinger is already working on this.
Since Oct 26, 2023.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.1.1
More version details
No response
Devices that reproduce the issue
- Pixel 7 running Android 13
- Samsung Galaxy S21+ running Android 13
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
- Checkout my demo-session fork with the MediaButtonReceiver declared in the manifest and simple stop button added to the PlayableFolderActivity (full diff here).
- Build and run the demo-session sample.
- Play any song (or songs) from the example playlist.
- Go back to the PlayableFolderActivity and hit STOP button.
- A dead silent notification will appear.
Expected result
Dead silent notification should not be displayed (as it behaves when no MediaButtonReceiver is declared).
I know, I can handle the play event from the dead silent notification in the onPlaybackResumption() method (and that's how I do it too), but if I understand it correctly, this notification shouldn't show at all after calling stop() method on MediaController or not? (as it behaves when no MediaButtonReceiver is declared)
Actual result
A dead silent notification will appear.
Media
My fork - https://github.com/TomasValenta/media
Dead silent notification
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.