Default the initial range to the entire video

pull/235/head
ElementalAlchemist 3 years ago committed by Mike Lang
parent 4886715f0d
commit 2508610b4e

@ -210,9 +210,14 @@ async function initializeVideoInfo() {
});
if (videoInfo.video_start) {
rangeDefinitionStart.value = videoHumanTimeFromWubloaderTime(videoInfo.video_start);
} else {
rangeDefinitionStart.value = videoHumanTimeFromVideoPlayerTime(0);
}
if (videoInfo.video_end) {
rangeDefinitionEnd.value = videoHumanTimeFromWubloaderTime(videoInfo.video_end);
} else {
const player = getVideoJS();
rangeDefinitionEnd.value = videoHumanTimeFromVideoPlayerTime(player.duration());
}
if (videoInfo.video_start && videoInfo.video_end) {
rangeDataUpdated();

Loading…
Cancel
Save