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

Audio is not Paused when App is Closed #5

Open
canewsin opened this issue Jun 2, 2022 · 4 comments
Open

Audio is not Paused when App is Closed #5

canewsin opened this issue Jun 2, 2022 · 4 comments
Assignees

Comments

@canewsin
Copy link

canewsin commented Jun 2, 2022

Tested on Android.

@Raj2503
Copy link
Owner

Raj2503 commented Jun 2, 2022

Yeah, I am aware of that. If you completely close the app from background applications, then only the audio stops.
Otherwise if you just dismiss it, the audio continues

@Raj2503
Copy link
Owner

Raj2503 commented Jun 2, 2022

A suggestion would be to make the audio player a Flutter Background Service.
It will reduce the load on the foreground processing, helping with the frame rates.

Plus it will be easier to control and pause the audio in case of the app is dismissed by using AppLifeCycle.

@canewsin
Copy link
Author

canewsin commented Jun 2, 2022

There is AppLifeCycle Widget, didn't remember the name, this may help to manage app state and audio control.

@Raj2503
Copy link
Owner

Raj2503 commented Jun 2, 2022

I guess this is what you are referring to AppLifecycleState

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

2 participants