AVPlayerItem problem with high quality videos

Hi, I'm experiencing problems with playing high-quality videos on older devices like iPhone SE 1st gen, iPhone X. I guess there is a performance/resources issue when I use mp4 video with size 5760x2880.

The player just doesn't start and I cannot get status information that something was wrong, AVPlayerItem.status property is readyToPlay and AVPlayerItem.error is null.

Could you confirm that this video quality is too high for the device? How I can programmatically check if a given video can be played on a given device or get the playing status?

I have no issues with playing such videos on iPhone 11 or iPhone 12 mini.

Originally I was using SKVideoNode and AVPlayerItem to play a video in SceneKit but the same problem exists when I was using simple AVPlayerViewController.

Please advice,

I've made a mistake. I was accessing AVPlayer.status instead of AVPlayerItem.status. Now the status and error avaialable. I'm getting following error:

Error Domain=AVFoundationErrorDomain Code=-11821 "Cannot Decode" UserInfo={NSLocalizedFailureReason=The media data could not be decoded. It may be damaged., NSLocalizedDescription=Cannot Decode, NSUnderlyingError=0x281dc83f0 {Error Domain=NSOSStatusErrorDomain Code=-12911 "(null)"}}

But still would be great to have a confirmation that this is because f the size/quality of video.

AVPlayerItem problem with high quality videos
 
 
Q