AVQueuePlayer does not advance to next item
| Originator: | brightcraftmobile | ||
| Number: | rdar://18783428 | Date Originated: | 27-Oct-2014 01:22 PM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 8.1 |
| Classification: | Serious Bug | Reproducible: | Sometimes |
Summary: We use the AVQueuePlayer to play a series of streamed m3u8 files in our app. Up until iOS 8.1 everything worked fine. Upon the release of 8.1 we had many users reporting the audio would stop after the initial track played and it would not skip to the next track. The user would have to stop and restart the audio to get the next track to play. In testing we confirm the same situation. We use the [AVQueuePlayer advanceToNextItem] method to move to the next item, OR we simply rely on AVQueuePlayer's default functionality which automatically moves to the next item when a track completes. In neither case our audio is progressing now with iOS 8.1. I can confirm in the simulator as well. The only case where it seems to still work is if we make the advanceToNextItem call within a few seconds of queuing the AVPlayerItem entities. However, if we wait just 3 to 5 seconds it no longer works. I surmised that perhaps the AVPlayerItems were somehow being deallocated but when I validate this when making the advanceToNextItem call the item we're advancing to is still there and the currentItem on the AVQueuePlayer updates to the next item without issue. Yet, in spite of all this it does not play. Steps to Reproduce: 1. Launch the attached test app 2. Let the first audio file play for 5 to 10 seconds 3. Attempt to advance using the button shown 4. Note that the audio player claims to have advanced but no audio is played and the playback position does not move per the notification I have set up to watch it Expected Results: Would expect the audio to advance and continue to play Actual Results: The audio player claims to have advanced but no audio is played and the playback position does not move per the notification I have set up to watch it Version: iOS 8.1 (12B411) Notes: Configuration: iPod Touch latest gen running iOS 8.1, Simulator running iOS 8.1
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Test app
Didn't see a way to attach actual test apps here, but if you'd like to see the test app email me: brightcraftmobile (gmail)