implemented hls target duration as max fragment length within current window