suragch / flutter_audio_service_demo

Companion project for Flutter audio_service tutorial
https://suragch.medium.com/background-audio-in-flutter-with-audio-service-and-just-audio-3cce17b4a7d?sk=0837a1b1773e27a4f879ff3072e90305
MIT License
57 stars 28 forks source link

iOS crashes after losing connection #14

Open JohannaShiri opened 2 years ago

JohannaShiri commented 2 years ago

Thanks a lot for the example. I'm not sure if this is a recent thing to not, but I have a problem running the example as is, on a physical iOS device.

I hit play, let it play a few seconds, close internet connection, and the app crashes completely.

console output:

[....] Disconnected 00008030-000550A21A84802E
Lost connection to device.

Any advice how to prevent this?

suragch commented 2 years ago

That's a good question. I've only tested the tutorial on the iOS simulator, not a real device. I need to get a device to test it on. I also plan to update the tutorial for some of the other open issues, but I don't know that that would solve this problem. If you can help me find the answer, that would be very helpful.

suragch commented 1 year ago

I'm just now coming back to old issues. Do you recall if you ever solved this issue?

JohannaShiri commented 1 year ago

I think I tried wrapping it with a checker so that if the checker saw there is no connection, I would delete the player. But I don't remember clearly, I'll be back working on it in 2 weeks or so and then I'll be able to give more details

On Tue, 14 Feb 2023 at 22:09, suragch @.***> wrote:

I'm just now coming back to old issues. Do you recall if you ever solved this issue?

— Reply to this email directly, view it on GitHub https://github.com/suragch/flutter_audio_service_demo/issues/14#issuecomment-1430805006, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBWRO6HUZULFKMOSZ4DFGTWXRXLNANCNFSM5KOVOJEA . You are receiving this because you authored the thread.Message ID: @.***>