react-native-audio-streaming
react-native-audio-streaming copied to clipboard
Add a callback?
It would be interesting to add a callback in order to execute another function after the play function is executed. I think about loading name/artwork song after loading music in player. Today, I use setTimeout.
I'm guessing setTimeout doesn't work when the app is backgrounded?
it's 200ms after playing stream so I guess user has not the time to put app in background. Anyway, I'm looking for a better solution because setTimeout is a temporary fix.
Any prediction when will add the callback feature?
Cuz the setTimeout can work fine to local files, but for network stream this is not precise, even when device is offline, the status return PLAYING... 😢