Forum Discussion

chaklasiyanikun's avatar
6 years ago

Example of configuring a hls stream with AES-128

I encrypted our HLS Stream in AES-128. Here I found my m3u8 is below.

#EXTM3U
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:16
#EXT-X-VERSION:3
#EXT-X-KEY:METHOD=AES-128,URI="123.key"
#EXTINF:8,
Roku00000017.ts
#EXTINF:8,
Roku00000018.ts
#EXTINF:8,
Roku00000019.ts

Here I directly set a key to m3u8 file from the server-side is running fine. 123.key is running on my server-side. I tried to set 123.key is locally(static) or some other server using the encoding key field using this documentation. But I don't know how to set a static key in Roku Video player to configuring AES-128. It's required to change the path to URI from the m3u8 file?. I don't know what should I do. Is there any solution available.

2 Replies

  • renojim's avatar
    renojim
    Community Streaming Expert

    I don't think the HLS spec allows for a static key.  Have you tried copying 123.key to tmp:/ and setting the URI appropriately:

    #EXT-X-KEY:METHOD=AES-128,URI="tmp:/123.key" 

     I have no way to test this, but it's worth a try.

     

    -JT