I have a url for a m3u8 file which has the list of ts files.All those files are encrypted by AES-128 method.Along with ts files m3u8 file also contains URI for keys.
First I want to download the ts files & then decrypt them.After decryption I want to play those files.
Url for my m3u8 file is like https://example.com/myxml/myclips/250/prog_index.m3u8
My m3u8 file looks like this.
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-VERSION:2
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10,
#EXT-X-KEY:METHOD=AES-128,URI="https://my.server.com/myxml/myclips/keys/250/crypt_480x272_250_0.key",IV=0x8da4a2d80b88785f7931874bf1e0914b
fileSequence0.ts
#EXTINF:10,
fileSequence1.ts
#EXTINF:10,
fileSequence2.ts
#EXTINF:10,
fileSequence3.ts
#EXTINF:10,
fileSequence4.ts
#EXTINF:10,
fileSequence5.ts
#EXTINF:10,
fileSequence6.ts
#EXTINF:10,
fileSequence7.ts
#EXTINF:10,
fileSequence8.ts
#EXTINF:10,
fileSequence9.ts
#EXTINF:10,
fileSequence10.ts
#EXTINF:10,
fileSequence11.ts
#EXTINF:10,
#EXT-X-KEY:METHOD=AES-128,URI="https://my.server.com/myxml/myclips/keys/250/crypt_480x272_250_1.key",IV=0x8e2d35559338d21f2586e79d6cd5c606
fileSequence12.ts
#EXTINF:10,
fileSequence13.ts
#EXTINF:10,
fileSequence14.ts
#EXTINF:10,
fileSequence15.ts
#EXTINF:10,
fileSequence16.ts
#EXTINF:10,
fileSequence17.ts
#EXTINF:10,
fileSequence18.ts
#EXTINF:10,
fileSequence19.ts
#EXTINF:2,
fileSequence20.ts
#EXT-X-ENDLIST
I am not getting any clue how can I do this.Please help.