How to play m3u8 encrypted playlists by providing key file separately?(如何通过单独提供密钥文件来播放 m3u8 加密播放列表?)
问题描述
我有一个 m3u8 播放列表文件(我们称之为prime),它指向另一个播放列表文件,该文件又包含带有密钥文件URL 的ts URL.使用 文件并告诉应用程序使用本地密钥文件来解密视频,这样我就不必公开发布密钥文件.MPMoviePlayer 我目前可以播放 文件中.有没有办法可以提供最终的 prime m3u8 文件.这些片段是 encrypted 使用 AES-128 位加密,密钥文件在最终的
I have a m3u8 playlist file(lets call it prime), which points to another playlist file which in turn has the ts URLs with the key file URL. Using MPMoviePlayer I can currently play the prime m3u8 file.
The segments are encrypted with AES-128 bit encryption and the key file is in the final m3u8 file. Is there a way that I can supply the final m3u8 file and tell the app to use a local key file to decrypt the video, so I don't have to publish the key file publicly.
这与 this SO question
推荐答案
是的 -- 您可以在将最终的 m3u8 文件传递给播放器之前对其进行修改.例如,将 KEY 行更改为引用 http://localhost/key.然后你会想要运行一个本地 http 服务器,比如 cocoahttpserver 来将密钥传递给视频播放器.
Yes -- You can modify the final m3u8 file before passing it to the player. For example, change the KEY lines to refer to http://localhost/key. Then you would want to run a local http server such as cocoahttpserver to deliver the key to the video player.
这篇关于如何通过单独提供密钥文件来播放 m3u8 加密播放列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何通过单独提供密钥文件来播放 m3u8 加密播放
基础教程推荐
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
