-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cannot stop radio while it's loading #12
Comments
Hi @fahlout , when the player is stopped in the loading state, the Thanks for reporting the issue. |
The problem I am having, however, is that when calling stop on the radio while in the loading state it will still start playing once it is done loading instead of suspending the loading process of the radio stream. It seems to ignore the stop call while in loading state.
Thanks for looking into this for me!
… On Oct 21, 2018, at 7:36 PM, Fethi El Hassasna ***@***.***> wrote:
Hi @fahlout , when the player is stopped in the loading state, the playbackStateDidChange gets called with FRadioPlaybackState.stopped, and yes the player state stays in FRadioPlayerState.loading, I should add another state to handle this case, in the mean time you could reset your UI using playbackStateDidChange method when the player is stopped!
Thanks for reporting the issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I found the problem! Thanks, I will try to implement a proper solution to this issue. |
Perfect! Looking forward to the update. |
Hey Fethi! Nice player! Great work! Have you solved this issue? I'm having an issue when the player.radioURL is changed fast, the previous is played. Any thoughts? |
Hey @raskri , Yes it's the same bug, there is an async call for setting the playerItem causing this issue, I will try to fix it in the next release! |
So changing the radioURLDidChange function to this solved my problem:
|
Provided solutions did not work for me. However, So I created a variable loadingForStationURL
Hope this solution works for you all :) |
I seem to not be able to stop the radio from playing while it's still loading. Is there anyway to cancel loading and keep it from starting to play while it's in the loading state?
The text was updated successfully, but these errors were encountered: