AVQueuePlayer/AVPlayerItem statues don't change while connected to AirPlay

Originator:damian.malarczyk
Number:rdar://39750116 Date Originated:26.04.2018
Status:Open Resolved:
Product:iOS Product Version:iOS 11.3 (15E216) as well as 11.3.1 (15E302)
Classification:AVFoundation Reproducible:Always
 
Area:
AVFoundation

Summary:
When playing items in AVQueuePlayer and while connected to AirPlay only first item added ever changes it's status to `readyToPlay`. 
Disconnecting AirPlay immediately updates the item status to proper value. 
At the same time status of the player itself doesn't change as the `currentItem` changes. It simply keeps the state from when the first item's been added.  

Steps to Reproduce:
1. Add multiple items to the player queue
2. Observe `status` changes of the player's `currentItem`
3. Observe player status

Expected Results:
- Status of the `AVQueuePlayer` changes to reflect its `currentItem` status
- Status of every enqueued `AVPlayerItem` updates properly to `readyToPlay` 

Actual Results:
- Status of `AVQueuePlayer` changes only as first item is enqueued
- Status of items added to the queue starting from the second one doesn't ever change while connected to AirPlay

Version/Build:
iOS 11.3 (15E216) as well as 11.3.1 (15E302)
tvOS 11.3 (15L211)

Configuration:
I've included modified AVFoundationQueuePlayer demo project with AirPlay support, with resources changed to ones at - https://developer.apple.com/streaming/examples/ - as old streams are no longer accessible due to expired SSL certificate.

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!