AVPlayer not playing well with Dropbox

So I have an app that has been around for years now and recently with the iOS 15 update it's support to play videos hosted on Dropbox has stopped working.

What I do is query dropbox for the temporary link. Then I create a AVPlayerItem and give it to the player which is inside of a OpenGL view, since it is a VR player. Then it should just work, but right now i'm getting the error Error Domain=AVFoundationErrorDomain Code=-11828 \"Cannot Open\" UserInfo={NSLocalizedFailureReason=This media format is not supported., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x280597990 {Error Domain=NSOSStatusErrorDomain Code=-12847

Now i've tried to troubleshoot this, but I can

  • Download the file from inside the app (not with the player) and play the file locally.
  • Place the same file on a UPNP server and it plays (Does not transcode)
  • If I run the app on Mac OS as an Ipad app, it works. But I suspect something with running on a mac makes it play different.

So i'm kind of lost, it feels like iOS 15 is acting strange on the iPhone, but on the Mav it's fine.

AVPlayer not playing well with Dropbox
 
 
Q