AVAssetResourceLoaderDelegate methods not working on device

后端 未结 3 1148
予麋鹿
予麋鹿 2020-12-10 19:32

I have been working on a simple AVPlayer to play encrypted HLS media.

I am using the AVAssetResourceLoaderDelegate to handle t

3条回答
  •  庸人自扰
    2020-12-10 20:07

    As I mentioned in the other thread as well, AVAssetResourceLoaderDelegate works only when we use a "Non Standard/Non Reserved" url scheme. HTTP, HTTPS etc are considered reserved URL schemes and iOS will not make a delegate call if the URL has one of those schemes. What I ended up doing was using my_own_http for the http urls and my_own_https for the https urls. It works well after I made that change. As you know this makes your playlist unusable on other deices.

提交回复
热议问题