warren-bank / HLS-Proxy

Node.js server to proxy HLS video streams
http://webcast-reloaded.surge.sh/proxy.html
GNU General Public License v2.0
244 stars 75 forks source link

Inline keys #10

Closed the-darkvoid closed 1 year ago

the-darkvoid commented 3 years ago

The inline-keys branch adds supports for inlining encryption keys as base64 data URIs in the m3u8 playlist. This significantly reduces the number of HTTP requests required when playing back content and allows key data to be cached as well.

Example output

#EXT-X-KEY:METHOD=AES-128,URI="data:;base64,pC09WSndrgA5Sz7fk/yk3Q==",IV=0x00000000000000000000000000000CE1
#EXTINF:2.0480,
http://127.0.0.1:7080/aHR0cH......

Changes made:

warren-bank commented 3 years ago

hi, thanks for the PR :)

a few quick/initial thoughts..

links to other similar/related discussions: