Skip to content

removed code duplication by extracting decideSegmentListRangeForTemplate method to SegmentsUtils

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:

  1. moved decideSegmentListRangeForTemplate method from ListSegmentsGetter and TemplateSegmentsGetter to SegmentsUtils.
  2. added timelineConverter & isDynamic params to decideSegmentListRangeForTemplate to make it working in SegmentsUtils

Merge request reports