我有一个 m3u8
播放列表文件(我们称之为prime),它指向另一个播放列表文件,该文件又包含带有密钥文件URL 的ts URL.使用 MPMoviePlayer
我目前可以播放 prime m3u8
文件.这些片段是 encrypted
使用 AES-128
位加密,密钥文件在最终的 m3u8
文件中.有没有办法可以提供最终的 m3u8
文件并告诉应用程序使用本地密钥文件来解密视频,这样我就不必公开发布密钥文件.
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 加密播放列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!