rokudev / SceneGraphDeveloperExtensions

Other
114 stars 64 forks source link

Example of configuring a hls stream with AES-128 #27

Open chaklasiyanikunj opened 4 years ago

chaklasiyanikunj commented 4 years ago

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.

I'm not sure to HLS spec allows for a static key. I tried with 123.key to tmp:/ and setting the URI appropriately: #EXT-X-KEY:METHOD=AES-128,URI="tmp:/123.key" ' Here I store 123.key in Temporary Storage.

Using tmp:/123.key is not working. But I give another server url instead of tmp:/123.key Is working fine. I don't know how to play m3u8 content in the Roku video player. Pls anyone explain in Detail?

chaklasiyanikunj commented 4 years ago

Hello, I read https://developer.roku.com/docs/specs/content-protection.md this documentation. Here mention AES-128 is supported. But I don't know It's normal encryption supported or It supported encrypted HLS Stream in AES-128. I'm not clear on AES-128.