• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ios - 如何让 Airplay 使用加密的 HTTPS 流媒体?

[复制链接]
菜鸟教程小白 发表于 2022-12-12 03:55:01 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

我一直在努力让 AirPlay 与在 AVPlayer 中播放的加密流一起工作。

阅读 this page by Apple对我没什么好处。

Serve keys from a protected HTTPS realm. Before playback begins, your app can use NSURLConnection to authenticate itself, providing credentials that are kept hidden.

我只能让它在模拟器中工作。不在设备上。

Use cookies over HTTPS. Your app can make a connection to an HTTPS server and authenticate the application in an application-defined way. Your server can then issue a cookie that applies to the key URLs. You should set the cookie to expire long after playback is complete. The server must then require the presence of a valid session cookie in future GET requests for the keys. For maximum reliability, if the expiration date is in the near future, the server should update the cookie’s expiration date in its response to future GET requests.

实际上没有尝试过,因为我没有直接访问服务器设置的权限,但如果没有其他答案出现,我会尝试。

Specify the keys in the .m3u8 files using an application-defined URL scheme. The app should register a custom NSURLProtocol to handle requests for those URLs. The player then calls back into your app when it needs to load a key URL; your app can then obtain the key using a secure side channel and can provide it to the player.

这似乎不起作用,因为 AVPlayer HTTP 连接完全绕过了 NSURLProtocol 系统。您只是无法拦截 AVPlayer 发出的任何 HTTP 请求。

如果有人能以与 AVPlayer 和 AirPlay 一起使用的方式解决加密 key 服务问题,我将不胜感激。



Best Answer-推荐答案


iOS 5.1.1 更新和随后的 Apple TV 更新似乎让我苦苦挣扎的麻烦消失了。 iOS 5.1.1 更新不足以单独解决该问题,但与随后的 Apple TV 更新一起,一切都很好,又一次很棒。

现在实现您自己的环回服务器就足够了,正如我在前面的 question 中所描述的那样。 .

关于ios - 如何让 Airplay 使用加密的 HTTPS 流媒体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10330849/

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap