react-native-track-player icon indicating copy to clipboard operation
react-native-track-player copied to clipboard

[Feature Request] Auto retry policy on iOS on error

Open praisedavid787 opened this issue 1 year ago • 0 comments

What is the need and use case of this feature? I've experienced on iOS, that once a stream has encountered an error, I can't do anything code wise to restore playback while the app is in the background. I kind of wait 15 seconds after events such as error, buffering or abrupt end are received from a stream that expected to be continuous, such as an icecast stream or live stream. This code is run in the service but seems not to trigger a retry once I call retry or play. It actually works on android but never did on iOS. Users have to manually retry playing the audio by opening the app again or causing the app to enter the active state again.

Describe the ideal solution I'm hoping some native code in the SwiftAudioEx implementation can resolve this.

Describe alternatives you've considered Retry from service code after a timeout.

How I can Help I can help test when a probable fix is available. My Swift is quite rusty, although I've contributed to solving some time range issue when playing live hls. This though, is above my pay grade.

praisedavid787 avatar May 22 '24 20:05 praisedavid787