reset subtitle offset on track change

This commit is contained in:
redSpoutnik 2019-12-09 21:37:05 +01:00
parent aca0fb09bc
commit b0d4b94140

View File

@ -603,7 +603,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
offsetValue = updateCurrentTrackOffset(offsetValue);
setVttSubtitleOffset(trackElement, offsetValue);
} else {
console.log("No available track, cannot apply offset : " + offsetValue);
console.log("No available track, cannot apply offset : ", offsetValue);
}
}
};
@ -1022,6 +1022,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
return;
}
self.resetSubtitleOffset();
var item = self._currentPlayOptions.item;
destroyCustomTrack(videoElement);