-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Recover state on resuming application #63
Comments
Hi @Dekkee Does this problem exhibit itself in the example app on your device? |
Yes. In example from this repo. In both examples. Real and TTS. |
On your device everything is fine? |
In my case i solve it with this snippet in
|
Ah, you're right. In the example, the state changes are sent over the I've updated the example accordingly. Let me know if that also works for you. |
Ok, I will try. But your idea with rxdart + BehaviorSubject is a good idea. It will resend last message on resubscribing. |
Yes, I agree the rxdart approach proposed in my first comment (which is now unfortunately deleted) would be more robust. If I were to rewrite the example with a |
Current example works. Thank you! |
FYI, I've just changed the streams to use |
Nice! Thanks! |
will you bump version? |
Yep, just published it :-) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service. |
Describe the bug
Recover playerState after minimize/maximize application
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Application in state "paused"
Runtime Environment (please complete the following information):
Flutter SDK version
Additional context
As fast fix I can do it in my app by reading state in
connect
method. But maybe you have some solutions for this?The text was updated successfully, but these errors were encountered: