AVPlayer did not playing video when more than 16 AVPlayer instances already created
| Originator: | abobrikovich | ||
| Number: | rdar://24025392 | Date Originated: | 30-Dec-2015 03:12 PM |
| Status: | Open | Resolved: | No |
| Product: | iOS SDK | Product Version: | iOS 9.x |
| Classification: | Reproducible: | Always |
Summary: I have UICollectionView where each cell contains AVPlayerLayer and play video, but if on the screen more then 16 cells appears AVPlayerLayer becomes transparent and didn't play anything. Also AVPlayer's @"status" observer didn't report about error I got AVPlayerStatusReadyToPlay in observer callback This problem reproduces only on device (on Simulator over 30 AVPlayer instances works simultaneously) Steps to Reproduce: 1. Unzip 8VideoConcept.zip and open in Xcode 2. Run application on real device 3. After delay 3-5 sec you will see that not all players play video 4. You will observe picture like on attached screenshot-bug.png Expected Results: There is possible several expected results: 1. report AVPlayerStatusFailed or AVPlayerItemStatusUnknown in @"status" observer (currently AVPlayer report status AVPlayerStatusReadyToPlay) or 2. way to configure max AVPlayer instances which can play at the same time Actual Results: AVPlayer hung, AVPlayerLayer is transparent Version: iOS 9.1, iOS 9.0 Notes: Just look at attached 8VideoConcept.zip, most interesting parts VideoCollectionViewCell.m DataViewController.m Configuration: iPod touch 5th Gen. (A1421), iPad Air (A1474), iPad 4 Gen. (A1416) Attachments: '8VideoConcept.zip' and 'screenshot-bug.png' were successfully uploaded
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!