DEV Community

Download encrypted HTTP live streaming video

Salad Lam on January 31, 2024

Notice I wrote this article and was originally published on Qiita on 18 March 2023. m3u8 file Belows is an example of str...
Collapse
 
kit-brain profile image
Nikita • Edited

Thank you!
But what sholu I do if

#EXT-X-KEY:METHOD=AES-128,URI="[KEY]",IV=[IV]
Enter fullscreen mode Exit fullscreen mode

?

Collapse
 
saladlam profile image
Salad Lam

RFC8216 defines the format of m3u8 file, and it do not state that the decryption key can be put in the m3u8 file directly.

Collapse
 
frankfullstack profile image
Frank

Thanks for your article!! Tried but not all have the key available in the metadata. Do we have any other way to do it without that key?

Collapse
 
saladlam profile image
Salad Lam

Decryption key is the key information to protect video stream, so it is not easy for you to get the key. The key may in one of the variables of related JavaScript code.