Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voice takes control and starts playing when trying to resume playback in other apps #2558

Open
and-reas-se opened this issue Sep 21, 2024 · 0 comments

Comments

@and-reas-se
Copy link

and-reas-se commented Sep 21, 2024

Overview

What happens: I'm listening to a podcast in another app. I pause the podcast using my bluetooth headphones controls. Then I go to resume the podcast using the bluetooth controls again, but instead of the podcast resuming, Voice takes control and resumes the last played audio book.

What I expected: I expected the podcast to resume since it was the last thing that was playing. Alternatively if the podcast app has stopped listening to resume events, I expected nothing to happen.

It seems that Voice is in the background listening to bluetooth resume events when it should have realized that it doesn't have provenance over the events / audio playback anymore. If another app plays audio or starts listening to those events after Voice has been closed, voice should ignore any future events until the user manually starts Voice again, since any future events are clearly not meant for Voice at that point.

There should probably also be some kind of timeout after playback has been paused, after which Voice assumes the events are probably not related to it and stops acting on them. Currently it will resume playback even if several days has passed since playback was paused.

Another thing that should probably cause it to stop listening to bluetooth events is if playback is paused and the notification for Voice is dismissed. If the user dismisses the notification the user is clearly done listening for now.

How to reproduce

  1. Play something using Voice.
  2. Pause the playback and exit the app.
  3. Play a podcast in Pocket Casts app (probably happens with other apps too, but I haven't tested).
  4. Pause the podcast using bluetooth.
  5. Wait some time (see note below).
  6. Try to resume the podcast using bluetooth headphones.
  7. The podcast will not resume. Instead voice will resume.

Note: I'm not sure about the exact waiting time required, if I resume immediately after pausing the podcast resumes as expected. The waiting time required is more than a couple of minute and less than 30 minutes, I haven't pinned it down further than that. I'm guessing that this is a timeout set in the podcast app after which it stops listening to events.

Version

8.2.3

Android Version

12

Device Model

OnePlus 7 Pro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant