Post

Replies

Boosts

Views

Activity

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
3
0
3.5k
Jul ’20