I have an AVQueuePlayer (which obviously extends AVPlayer) that loads a playlist of streaming audio. Streaming is all working fine, but I’d like to have an activity indicator to show the user audio is loading. Trouble is, I can’t seem to find any such Notification in AVQueuePlayer (or AVPlayer) that would indicate when the audio buffer has finished loading/is ready to play (nor does there appear to be a delegate method). Any thoughts?
I have an AVQueuePlayer (which obviously extends AVPlayer ) that loads a playlist of
Share
You will have to use KVO to get this done.
For each item you are adding to the queue, you may setup observers like this:
Now you can evaluate the status of that item within the observer method;