Wowza Community

Add query params to *.ts urls inside hls playlist.m3u8

Hello. We are using different CDNs (EdgeCast Akamai) for caching HLS output. And we want every client to be authorised on CDN for each request with a token. CDN have mechanisms to decide wether to allow or deny access to the file for the user according to a token (expiry date, credentials). It makes us be aware of that the user got the access to media from us but not on his own.

All tokens can be generated in wowza for each time segment inside playlist.

Is there a way to add it as a query parameter to each time segment url inside playlist.m3u8 file? Like that

#EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:10

#EXT-X-MEDIA-SEQUENCE:1

#EXTINF:10.0,

media_1.mp3?3a01f059bf10d94159527d18f106

#EXTINF:10.0,

media_2.mp3?94159527d18f1063a01f059bf10d

#EXTINF:10.0,

media_3.mp3?0d94159527d18f1063a01f059bf1

#EXTINF:10.0,

media_4.mp3?0d94159527d18f1063a01f059bf1

#EXTINF:10.0,

media_5.mp3?4159527d18f1063a01f059bf10d9

#EXTINF:10.0,

media_6.mp3?59bf10d94159527d183a01f0f106

#EXTINF:10.0,

media_7.mp3?3a01f0597d18fbf10d9415952106

With HTTP Origin enabled, Wowza cannot be involved in client authentication or access control. That all must be done between the client and CDN. Wowza creates chunks, the CDN pulls them into its cache, then the client streams from the CDN cache. So Wowza is not aware of the clients streaming from the CDN cache.

Richard