問(wèn)題描述
我有一個(gè) m3u8
播放列表文件(我們稱之為prime),它指向另一個(gè)播放列表文件,該文件又包含帶有密鑰文件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 文件傳遞??給播放器之前對(duì)其進(jìn)行修改.例如,將 KEY 行更改為引用 http://localhost/key
.然后你會(huì)想要運(yùn)行一個(gè)本地 http 服務(wù)器,比如 cocoahttpserver 來(lái)將密鑰傳遞給視頻播放器.
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.
這篇關(guān)于如何通過(guò)單獨(dú)提供密鑰文件來(lái)播放 m3u8 加密播放列表?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!