AVPlayer doesn't work on iOS 14

After upgrading to iOS 14 some of our streams stopped working. Everything is working fine on older OS versions.

Here're the steps we do:
1) Create AVURLAsset
2) Create AVPlayerItem with the asset above
3) Setup KVO observer on AVPlayerItem.status
4) Set AVPlayerItem on AVPlayer using replaceCurrentItem()
5) Wait for status to become .readyToPlay

Now on iOS 13 and older we get the notification very quickly and then calling play() starts playback.

On iOS 14 however the KVO observer is never called and so the playback never starts. Even if we call play() manually after few seconds the stream still doesn't start.

This is on the live stream and in Proxy App we see .m3u8 being requested as well as the first two .ts chunks. However AVPlayerItem.status never changes from .unknown.

Is that a known issue? I have found another similar report here: https://developer.apple.com/forums/thread/650741 but it mentions Simulator while we tested on a real devices (the separate new iPhones SE).

Regards
Hi MarekR,
could you solve / workarou d this in the meantime or do you have an idea what the root cause is?
was it in any way related to PTS Timestamps?
thanks & best regards,
sam
I suppose, it's related issue https://developer.apple.com/forums/thread/660999

Same here but with locally stored mp4 file. On iOS 14 works fine, on iPadOS 14 there is only audio but no image. After moving the app to the background and coming back, the image suddenly appears,

AVPlayer doesn't work on iOS 14
 
 
Q