Absolute urls for chunks (media_w345834439_2.ts) with query parameters in Manifests

Hi Team,

Via custom module, we can add custom playlist headers as per below article and working perfectly fine.

https://www.wowza.com/docs/how-to-add-custom-playlist-headers-to-apple-hls-manifests

My query is, can we add absolute urls for chunks (I should get cunkname first in java code, i will sign via AWS SDK and will return the full url) along with query parameter like below dynamically in Manifests.

Current:

EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:10

#EXT-X-MEDIA-SEQUENCE:0

#EXTINF:10.0,

media_w345834439_0.ts

#EXTINF:10.0,

media_w345834439_1.ts

#EXTINF:10.0,

media_w345834439_2.ts

Desired:

EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:10

#EXT-X-MEDIA-SEQUENCE:0

#EXTINF:10.0,

http://x.x.x.x:1935/vod/sample.mp4/media_w1344145099_0.ts?Expires=1464070166&Signature=Q8y2QM4ctH%7EkfIorJOnwpXfBjA0crGz9ITpYM3VGAJvHbJUdR23%7ESrwZIMYU5nARvdSmL%7EWJIhNiRy2L7vRoKv6o-IE7v8Y7hczKnw-m04V28ZK0H8EzSa9i2zp2jQHNKMCrntXkp7vuPE7bP95eS%7EZAiSBvI1OROF-nTGoHslWemlHg38BfhQJ6y89fE%7EebCgOtxPXhVZCciTCUokTy26q9N9%7EuypXMYJ4lp08XVPHKLQZCKjDCIagjrijaPM3zTae13owrgwIbuj1dWFHW376HiL87kyfWEdEIeb959K4bZki8JGYS2w4IY7q7ObbFMQRory-nKC4nFBEBdEgILQ__&Key-Pair-Id=APKAIAOTTLXZCOAQMJ2A

#EXTINF:10.0,

http://x.x.x.x:1935/vod/sample.mp4/media_w1344145099_1.ts?Expires=1464070166&Signature=Q8y2QM4ctH%7EkfIorJOnwpXfBjA0crGz9ITpYM3VGAJvHbJUdR23%7ESrwZIMYU5nARvdSmL%7EWJIhNiRy2L7vRoKv6o-IE7v8Y7hczKnw-m04V28ZK0H8EzSa9i2zp2jQHNKMCrntXkp7vuPE7bP95eS%7EZAiSBvI1OROF-nTGoHslWemlHg38BfhQJ6y89fE%7EebCgOtxPXhVZCciTCUokTy26q9N9%7EuypXMYJ4lp08XVPHKLQZCKjDCIagjrijaPM3zTae13owrgwIbuj1dWFHW376HiL87kyfWEdEIeb959K4bZki8JGYS2w4IY7q7ObbFMQRory-nKC4nFBEBdEgILQ__&Key-Pair-Id=APKAIAOTTLXZCOAQMJ2A

#EXTINF:10.0,

http://x.x.x.x:1935/vod/sample.mp4/media_w1344145099_2.ts?Expires=1464070166&Signature=Q8y2QM4ctH%7EkfIorJOnwpXfBjA0crGz9ITpYM3VGAJvHbJUdR23%7ESrwZIMYU5nARvdSmL%7EWJIhNiRy2L7vRoKv6o-IE7v8Y7hczKnw-m04V28ZK0H8EzSa9i2zp2jQHNKMCrntXkp7vuPE7bP95eS%7EZAiSBvI1OROF-nTGoHslWemlHg38BfhQJ6y89fE%7EebCgOtxPXhVZCciTCUokTy26q9N9%7EuypXMYJ4lp08XVPHKLQZCKjDCIagjrijaPM3zTae13owrgwIbuj1dWFHW376HiL87kyfWEdEIeb959K4bZki8JGYS2w4IY7q7ObbFMQRory-nKC4nFBEBdEgILQ__&Key-Pair-Id=APKAIAOTTLXZCOAQMJ2A

Hi Team,

Via custom module, we can add custom playlist headers as per below article and working perfectly fine.

Add custom playlist headers to Apple HLS manifests

My query is, can we add absolute urls for chunks (I should get cunkname first in java code, i will sign via AWS SDK and will return the full url) along with query parameter like below dynamically in Manifests.

Current:

EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:10

#EXT-X-MEDIA-SEQUENCE:0

#EXTINF:10.0,

media_w345834439_0.ts

#EXTINF:10.0,

media_w345834439_1.ts

#EXTINF:10.0,

media_w345834439_2.ts

Desired:

EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:10

#EXT-X-MEDIA-SEQUENCE:0

#EXTINF:10.0,

http://x.x.x.x:1935/vod/sample.mp4/media_w1344145099_0.ts?Expires=1464070166&Signature=Q8y2QM4ctH%7EkfIorJOnwpXfBjA0crGz9ITpYM3VGAJvHbJUdR23%7ESrwZIMYU5nARvdSmL%7EWJIhNiRy2L7vRoKv6o-IE7v8Y7hczKnw-m04V28ZK0H8EzSa9i2zp2jQHNKMCrntXkp7vuPE7bP95eS%7EZAiSBvI1OROF-nTGoHslWemlHg38BfhQJ6y89fE%7EebCgOtxPXhVZCciTCUokTy26q9N9%7EuypXMYJ4lp08XVPHKLQZCKjDCIagjrijaPM3zTae13owrgwIbuj1dWFHW376HiL87kyfWEdEIeb959K4bZki8JGYS2w4IY7q7ObbFMQRory-nKC4nFBEBdEgILQ__&Key-Pair-Id=APKAIAOTTLXZCOAQMJ2A

#EXTINF:10.0,

http://x.x.x.x:1935/vod/sample.mp4/media_w1344145099_1.ts?Expires=1464070166&Signature=Q8y2QM4ctH%7EkfIorJOnwpXfBjA0crGz9ITpYM3VGAJvHbJUdR23%7ESrwZIMYU5nARvdSmL%7EWJIhNiRy2L7vRoKv6o-IE7v8Y7hczKnw-m04V28ZK0H8EzSa9i2zp2jQHNKMCrntXkp7vuPE7bP95eS%7EZAiSBvI1OROF-nTGoHslWemlHg38BfhQJ6y89fE%7EebCgOtxPXhVZCciTCUokTy26q9N9%7EuypXMYJ4lp08XVPHKLQZCKjDCIagjrijaPM3zTae13owrgwIbuj1dWFHW376HiL87kyfWEdEIeb959K4bZki8JGYS2w4IY7q7ObbFMQRory-nKC4nFBEBdEgILQ__&Key-Pair-Id=APKAIAOTTLXZCOAQMJ2A

#EXTINF:10.0,

http://x.x.x.x:1935/vod/sample.mp4/media_w1344145099_2.ts?Expires=1464070166&Signature=Q8y2QM4ctH%7EkfIorJOnwpXfBjA0crGz9ITpYM3VGAJvHbJUdR23%7ESrwZIMYU5nARvdSmL%7EWJIhNiRy2L7vRoKv6o-IE7v8Y7hczKnw-m04V28ZK0H8EzSa9i2zp2jQHNKMCrntXkp7vuPE7bP95eS%7EZAiSBvI1OROF-nTGoHslWemlHg38BfhQJ6y89fE%7EebCgOtxPXhVZCciTCUokTy26q9N9%7EuypXMYJ4lp08XVPHKLQZCKjDCIagjrijaPM3zTae13owrgwIbuj1dWFHW376HiL87kyfWEdEIeb959K4bZki8JGYS2w4IY7q7ObbFMQRory-nKC4nFBEBdEgILQ__&Key-Pair-Id=APKAIAOTTLXZCOAQMJ2A

Can anyone provide any direction? method? Interface through which i can overcome from this issue?

Looks like a nice plugin, let me know how you get on. You’ll want to use HTTP orgin mode too to make sure the chunks are cachable behind CF.

Hi,

Yes you can specify absolute URLs for playlists and chunklists. Please refer to this article for the steps on how to do this.

Paul