You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen similar issues when playing with bluetooth. I think it's after a long period of time.
For example, during a morning commute, the app works as expected, the station paused after the car is shut off. After work, the station will not play unless you change to a new station and then change back to the original.
@geraldnolan's suggestion works. I have, in my fork of the app, added a timer that switches the app to STOPPED after 50-some seconds. This allows it to resume playing (but of course loses the buffered music).
joemcmahon@d03b54f#diff-8783724a818055cb6d918cbb15c551b1 has the necessary commits in FRadioPlayer.swift. It sets up a timer in the pause function that goes off and sets a flag that says "we've overbuffered, start a new player when play is pressed again". We also detect playerItemFailedToPlayToEndTime and put the player into the stopped state if this happens. This seems to catch all of the "paused and can't resume" errors.
Activity
geraldnolan commentedon Jul 21, 2019
I've seen similar issues when playing with bluetooth. I think it's after a long period of time.
For example, during a morning commute, the app works as expected, the station paused after the car is shut off. After work, the station will not play unless you change to a new station and then change back to the original.
geraldnolan commentedon Jul 21, 2019
This might help:
http://stackoverflow.com/questions/36617232/avplayer-cant-resume-after-paused-some-waiting
joemcmahon commentedon Oct 6, 2019
@geraldnolan's suggestion works. I have, in my fork of the app, added a timer that switches the app to STOPPED after 50-some seconds. This allows it to resume playing (but of course loses the buffered music).
geraldnolan commentedon Oct 18, 2019
@joemcmahon can you share which branch you made that change? I'd like to see how you implement it?
joemcmahon commentedon Nov 3, 2019
joemcmahon@d03b54f#diff-8783724a818055cb6d918cbb15c551b1 has the necessary commits in
FRadioPlayer.swift. It sets up a timer in the pause function that goes off and sets a flag that says "we've overbuffered, start a new player when play is pressed again". We also detectplayerItemFailedToPlayToEndTimeand put the player into the stopped state if this happens. This seems to catch all of the "paused and can't resume" errors.