Uncaught TypeError: p.setIndexHandlerTime is not a function
Created by: o-hreshchuk
Hi guys,
I'm trying to switch to the latest version of dash.js (3.0.0) and I get
Uncaught TypeError: p.setIndexHandlerTime is not a function
.
I spent some time on solving this and figured out that it throws here:
if (!initialPlayback) {
if (!isNaN(seekTime)) {
playbackController.seek(seekTime); //we only need to call seek here, IndexHandlerTime was set from seeking event
} else {
(function () {
var startTime = playbackController.getStreamStartTime(true);
if (!keepBuffers) {
getActiveStreamProcessors().forEach(function (p) {
adapter.setIndexHandlerTime(p, startTime);
});
}
})();
}
}
this line - adapter.setIndexHandlerTime(p, startTime);
I try to find all setIndexHandlerTime(
with 2 parameters but only found in the previous version (2.9.1).
if I console log the adapter I do not see this method in the object
Could someone take a look and help, please?