Can Plex transcode/play .M3U8 file containing AES-128 Encrypted .TS files?

I am wondering if it is possible for Plex (via a plugin i'm working on) to transcode or play a .m3u8 file that contains a list of encrypted .ts files along with their keys. The .M3U8 file, when opened in a text editor, looks like this:

 

#EXTM3U
#EXT-X-VERSION:1
#EXT-X-TARGETDURATION:19
#EXT-X-KEY:METHOD=AES-128,URI="http://www.urlofsite.com/suburl/video_id.key?key=asdgasdg098a7sd9g8789agh0aga8fgahfdg0hafd0g8hafd80h"
#EXTINF:11, no desc
http://cdn.urlofcd.com/cdn/video_id/video-0.ts?e=1363161886&h=asdfasdfasd65465465asdgf632tsdgf
#EXTINF:12, no desc
http://cdn.urlofcd.com/cdn/video_id/video-1.ts?e=1363161886&h=66a8fff5fasdfasdf23f2fc83a686dc6
#EXTINF:12, no desc
http://cdn.urlofcd.com/cdn/video_id/video-2.ts?e=1363161886&h=6f52a8c9923523f23f23f234t345yt56
#EXTINF:6, no desc
http://cdn.urlofcd.com/cdn/video_id/video-3.ts?e=1363161886&h=c633222f1asdfasf3224f2fsdf324gf2
#EXTINF:9, no desc
http://cdn.urlofcd.com/cdn/video_id/video-4.ts?e=1363161886&h=b999asdg0a8sg9aug09a0fdg0jg0a8f8

 

 

I used the method described in this thread to pass the URL of the main .M3U8 file containing the above .ts files to plex as an HTTPLiveStreamURL but haven't gotten very far. Before i dump more of my time into trying to make this work i just want to know if Plex is even capable of decoding encrypted TS files. 

 

Thanks!

I think, when playing it comes down to what client you are using.

Plex/Web on Mac/Safari should be able to play that content, probably same on those iDevices.

ABC introduced some weird stuff with their latest usage of uplynk...

#EXTM3U
#EXT-X-VERSION:5
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:0
#UPLYNK-SEGMENT: 0c4d3e8418d34456a108c220febcd3d9,00000000
#EXTINF:3.7317,
...

This has additional parameters (uplynk-segment, uplynk-key for some kind of private encryption?). Not sure how, but it sure does. Safari is capable of replaying that stuff using its "video-player".

As for transcoding within PMS, I have no idea!

I was able to get this working. Unlike the link i provided in my original post where the code was all contained in the main plugin script, i put the code for the HLS stream in my URL service and it worked like a charm. I must have been doing something wrong in my plugin code that Plex wasn't liking. I pushed my working m3u8 branch to my github repo if anyone is curious.