Fix issue with download link on edit page when a range timestamp is at the exact end of the video

pull/237/head
ElementalAlchemist 3 years ago committed by Mike Lang
parent 53bd932963
commit 26b8efc093

@ -971,7 +971,7 @@ function wubloaderTimeFromVideoPlayerTime(videoPlayerTime) {
// This is not the case before the video is loaded for the first time, or outside the video's buffer if it hasn't played that far/part.
for (segment of videoPlaylist.segments) {
const segmentEndTime = segmentStartTime + segment.duration;
if (segmentStartTime <= videoPlayerTime && segmentEndTime > videoPlayerTime) {
if (segmentStartTime <= videoPlayerTime && segmentEndTime >= videoPlayerTime) {
segmentDateObj = segment.dateTimeObject;
break;
}

Loading…
Cancel
Save