HLS Download with CDN token

I'm developing an iOS app which is able to download m3u8 videos and play it offline according to the

iOS 10
latest feature Offline HLS.

I'm trying to protect as best as I can

HTTP Live Stream
format videos on our CDN.

Each video has multiple bitrates so the

HLS
files consist of a master m3u8 manifest which points to several sub manifest files which in turn point to
ts
files (transport stream).

So I need to append this CDN token to the URLs of master m3u8, sub manifest m3u8 and

.ts
files. And the token needs to refresh each minute.

How to achieve this?

Did you ever figure this out?

HLS Download with CDN token
 
 
Q