javascript – Get HLS decryption key from browser

How can I get decryption key for AES-128 encrypted HLS stream.

In the m3u8 file, the URI for key leads to a file which is of 48 bytes which is encrypted.

The stream is played by browser so it must have the true decryption key, how can I get that key?

I downloaded the .ts files along with the key file and served it via XAMPP and tried playing in Chrome using extension Native HLS Playback

It didn’t play, it failed to decrypt the files.