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

Cancel Loading or connecting audio #33

Closed
ReaganRealones opened this issue Feb 4, 2020 · 9 comments
Closed

Cancel Loading or connecting audio #33

ReaganRealones opened this issue Feb 4, 2020 · 9 comments
Assignees

Comments

@ReaganRealones
Copy link

How possible is it to cancel a loading audio i.e an audio in "AudioPlaybackState.connecting" state as neither dispose or stop work on it as shown on the usage tips in the IDE. So if the audio is still connecting and the user cancels, how can I Stop the loading of this file as right now, it continues loading and plays thereafter.

@ryanheise
Copy link
Owner

I'm currently working on addressing issue #28 which should allow you to call stop during the connecting state. Hopefully will commit within the day.

@ryanheise ryanheise self-assigned this Feb 4, 2020
@ReaganRealones
Copy link
Author

Okay, thank you so much... Will be waiting or checking on you tomorrow :)

@ryanheise
Copy link
Owner

You can try the latest git commit to see if it helps. Note: this primarily addresses an issue on Android. If your issue is on iOS, then I might need more information on what the error is.

@ReaganRealones
Copy link
Author

@ryanheise, the buffering state seems to have been removed? So how can I know when the audio is buffering?

@ryanheise
Copy link
Owner

Hi @ReaganRealones , there is more information about the change in #28 linked above where I gave an explanation of the new state model.

@ReaganRealones
Copy link
Author

@ryanheise, okay sure have checked it out. Understood, that but the issue is still, while the player is connecting and the user cancels, it still continues to connect and thereafter plays. i.e calling stop while the player is in connecting state does not cancel playing music,

@ryanheise
Copy link
Owner

I am using #28 to track this issue so I have copied your question over to there. Please take a look as I've left you a reply/question.

@ReaganRealones
Copy link
Author

@ryanheise, sure thing.... Going to head over there

@github-actions
Copy link

github-actions bot commented Nov 8, 2021

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 just_audio.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants