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 加密播放


- Android viewpager检测滑动超出范围 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01