Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chaklasiyanikun
Roku Guru

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.

0 Kudos
2 REPLIES 2
renojim
Community Streaming Expert

Re: Example of configuring a hls stream with AES-128

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

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
chaklasiyanikun
Roku Guru

Re: Example of configuring a hls stream with AES-128

Here I test with two scenarios 1. with a tmp:/123.key. Roku Doesn't allow to permission to access Local keys. 2. I create a simple server to provide a key(http://111.111.1.1:1111/test/123.key) to access an m3u8 Is working I don't know how?

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.