DASH-IF-Conformance
DASH-IF-Conformance copied to clipboard
unhandled exception in processmpdresults
I detect an exception in the function processmpdresults
when parsing the Adaptxml
.
I fix the code using following line
@@ -1064,7 +1064,8 @@ function processmpdresults()
adaptholder.push(Adapt_count);
AdaptRepPeriod_count += ' ' + Adapt_count;
var Adaptxml = Periodxml[p].getElementsByTagName("Adaptation");
- for (var v=0; v<Adapt_count; v++){
+ var AdaptxmlLen = Adaptxml.length;
+ for (var v=0; v<AdaptxmlLen; v++){
AdaptRepPeriod_count += " " +Adaptxml[v].getElementsByTagName("Representation").length;
}
}
@Phencys Can you comment on this please?