如何通过单独提供密钥文件来播放m3u8加密播放列表? [英] How to play m3u8 encrypted playlists by providing key file separately?

查看:1379
本文介绍了如何通过单独提供密钥文件来播放m3u8加密播放列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 m3u8 播放列表文件(让我们称之为素数),它指向另一个播放列表文件,该文件又包含带有密钥文件URL的ts网址。使用 MPMoviePlayer 我现在可以播放 prime m3u8 文件。
加密 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.

这与这个有些关联问题

推荐答案

是 - 您可以在将最终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加密播放列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆