Closed dtsbourg closed 11 years ago
Yeah I believe that's most likely because of #1. Fix it and you should be all good :)
This is the log I get when the app crashes after loading some data (typical value is 14 Megs).
The result is the same on iPhone simulator and on dev phone as well.
Yeah i saw those posts, unfortunately not much to work with :/ I'll keep looking around, there has to be an answer somewhere ( unfortunately the Dalai Lama isn't always right : "If there's no solution, there's no problem" ;) )
Thanks again for all your precious help, keep you posted to see if I can find a workaround, since it is still strange to me why SC decided to present an AVAudioPlayer to play the music. It might be a simple interface to use but it seems more adapted to cached or saved files, and doesn't support streaming. Although parsing audio content form a network bitstream looks a bit difficult i might take a look in that direction if i really can't find any solution to this problem.
Thanks to @FredericJacobs , this error was fixed. He pointed out that the request was being handled on the main thread, and while it was loading nothing was happening. As debugging was activated, it settled as an uncaught exception as the request was taking too long to fulfill. The fix included asking another thread to handle the synchronized downloading of the request through
dispatch_async(dispatch_get_main_queue(), ^{ //data handling and allocation of player });
Problem solved !
You're welcome!
Upon selection of a track to play, songs starts to load then app crashes here :
Wondering if not because of troubles with libSoundCloundAPI.a ...