AVPlayerItem presentationSize is incorrect when playing HLS audio-only representation
| Originator: | robgaunt | ||
| Number: | rdar://17455657 | Date Originated: | 2014/06/25 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 7.1.1 |
| Classification: | Bug | Reproducible: | Always |
Summary:
When using AVPlayer to play a HLS master playlist containing a low-bitrate audio-only representation of the content, if the player adapts down to the audio only stream, it reports an incorrect presentation size.
On my testing on an iPad Air, the player always reported a presentation size of {1280, 720} when playing the audio-only stream.
All other presentation size changes seemed to be reported correctly. For example, when I added KVO on presentationSize during a playback session which adapted from 240p => 144p => audio only, I observed the following:
presentationSize changed: NSSize: {426, 240}
presentationSize changed: NSSize: {256, 144}
presentationSize changed: NSSize: {1280, 720}
(the last line being logged when the player began to play the audio-only stream).
Steps to Reproduce:
Play a HLS master playlist containing an audio-only stream.
Throttle network bandwidth using a proxy such as Charles
Observe changes to AVPlayerItem presentationSize
Wait for the player to adapt to the audio-only stream.
Note that the presentation size is incorrectly reported.
Expected Results:
The presentation size should be reported as {0, 0} when playing an audio-only stream.
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!
Also occurring for HLS video playback
See rdar://17668183 for other information an my own attempts to solve.