Skip to content

Commit

Permalink
Merge pull request #7 from giakas/refactoring
Browse files Browse the repository at this point in the history
For Dash Live, when DVR is not full, undefined Error on availabilityStartTime
  • Loading branch information
KozhinM committed Aug 18, 2014
2 parents ebaf6b9 + 4a21025 commit d7945dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/dash/DashHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Dash.dependencies.DashHandler = function () {
availabilityEndTime,
f = fragments[0];

availabilityStartTime = self.timelineConverter.calcPresentationTimeFromMediaTime(f.t / fTimescale, representation);
availabilityStartTime = (f.t === undefined) ? 0 : self.timelineConverter.calcPresentationTimeFromMediaTime(f.t / fTimescale, representation);
availabilityEndTime = self.timelineConverter.calcPresentationTimeFromMediaTime((time - frag.d) / fTimescale, representation);
representation.segmentAvailabilityRange = {start: availabilityStartTime, end: availabilityEndTime};
representation.availableSegmentsNumber = availabilityIdx + 1;
Expand Down

0 comments on commit d7945dc

Please sign in to comment.