问题描述
有没有办法让AVPlayer在iOS中强制执行证书固定?
我们的视频加载代码基本上是:
let url = URL(string: "https://www.example.com/file.mp4")!
let item = AVPlayerItem(url: url)
我们可以使用以下委托方法通过https://developer.apple.com/documentation/foundation/urlsessiondelegate/1409308-urlsession使用URLSession进行证书固定。但是,如果有的话,我还无法为AVPlayer找到一种类似的方法。
感谢您的帮助!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)