nginx-rtmp-module
nginx-rtmp-module copied to clipboard
Remove quality level on master manifest ( hls_variant ) based on query string - on the fly!
trafficstars
Hi Guys , I wonder if it's possible to remove quality levels based on variables ( query strings ) via http request so that master manifest will only generate quality levels that requested in query string : http://server_IP/hls/mystream_ level1,level2
Lets say user request the following url from nginx : http://192.168.0.162/hls/ch_1200,1500,/ch.m3u8
so the manifest will look like this
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=15000000
ch_1500.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=12000000
ch_1200.m3u8
And if user request the following url from nginx the manifest will look like
http://192.168.0.162/hls/ch_1200,/ch.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=12000000
ch_1200.m3u8
This way we would be able to control the levels dynamically from URL string it is very useful , Is there anyway to do this ?
Thanks Dave