video-dev / hls.js

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
https://hlsjs.video-dev.org/demo
Other
14.83k stars 2.57k forks source link

Does hls.js support low latency hls file encryption? #5571

Closed fastfading closed 11 months ago

fastfading commented 1 year ago

What do you want to do with Hls.js?

Does hls.js support low latency hls file encryption? if yes, which encryption does it use . what should be consider for llhls server can we change the keys when generate llhls stream ?

What have you tried so far?

No response

silltho commented 1 year ago

Cant say for sure if its wokring for llhls streams but drm is working for normal streams (i guess llhls too).

you can find a list of supported providers in the api document. https://github.com/video-dev/hls.js/blob/master/docs/API.md#drmsystems

robwalch commented 1 year ago

AES-128 Encrypted Low-Latency HLS are supported #5214. I haven't seen or tested DRM protected Low-Latency HLS.

what should be consider for llhls server

I can't think of any additional considerations required.

can we change the keys when generate llhls stream ?

How? Not in any way that you cannot for live HLS. KEY tags apply to all EXTINF tags (and thus PART tags) that follow the key in a playlist.