removed code duplication by extracting decideSegmentListRangeForTemplate method to SegmentsUtils
requested to merge github/fork/streamroot/removing_duplicated_code_from_segments_getters into development
Created by: ruslandinov
This is a fix addressing the comment https://github.com/Dash-Industry-Forum/dash.js/pull/1270#issuecomment-200542800
What was done:
- moved
decideSegmentListRangeForTemplate
method fromListSegmentsGetter
andTemplateSegmentsGetter
toSegmentsUtils
. - added
timelineConverter
&isDynamic
params todecideSegmentListRangeForTemplate
to make it working inSegmentsUtils