Don't skip exactly to the end on Safari

Fix #1027
This commit is contained in:
Ajay Ramachandran 2021-12-10 23:52:50 -05:00
parent 8d1b35403d
commit 071f8b1729

View file

@ -1225,6 +1225,9 @@ function skipToTime({v, skipTime, skippingSegments, openNotice, forceAutoSkip, u
// for some reason you also can't skip to 1 second before the end
if (v.loop && v.duration > 1 && skipTime[1] >= v.duration - 1) {
v.currentTime = 0;
} else if (navigator.vendor === "Apple Computer, Inc." && v.duration > 1 && skipTime[1] >= v.duration - 1) {
// MacOS will loop otherwise #1027
v.currentTime = skipTime[1] - 0.01;
} else {
v.currentTime = skipTime[1];
}