I'm using AVPlayer to stream an AAC audio from external server via HTTP like this:
AVPlayer *player = [[AVPlayer alloc] initWithURL:[NSURL URLWithString:myStreamURL]];
[player play];
This method works (it indeed plays audio) but not in a way I want it to work. The problem is that there is a very long delay (30 seconds) after invoking play method, then I have to wait 30 seconds looking on a spinning "downloading wheel" on status bar, and the audio plays fine but always after this delay, not earlier.
I think it actually downloads the audio, and plays it after it instead of streaming it.
I haven't figured how to resolve this issue so far, so any help would be appreciated.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire