Skip to content

Commit

Permalink
fragmentDuration can be NaN for other type than fragmentedText (#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosang authored and epiclabsDASH committed Sep 11, 2019
1 parent 13f1205 commit 902651a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/controllers/ScheduleController.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function ScheduleController(config) {
if (isNaN(currentRepresentationInfo.fragmentDuration)) { //fragmentDuration of representationInfo is not defined,
// call metrics function to have data in the latest scheduling info...
// if no metric, returns 0. In this case, rule will return false.
const bufferInfo = dashMetrics.getLatestBufferInfoVO(Constants.FRAGMENTED_TEXT, true, MetricsConstants.SCHEDULING_INFO);
const bufferInfo = dashMetrics.getLatestBufferInfoVO(currentRepresentationInfo.mediaInfo.type, true, MetricsConstants.SCHEDULING_INFO);
safeBufferLevel = bufferInfo ? bufferInfo.duration * 1.5 : 1.5;
}
const request = fragmentModel.getRequests({
Expand Down

0 comments on commit 902651a

Please sign in to comment.