Set the video time to 0 if the video has been watched ALMOST completly
All checks were successful
Invidious CI / build (push) Successful in 4m33s
All checks were successful
Invidious CI / build (push) Successful in 4m33s
This commit is contained in:
parent
ae0848e6c1
commit
a64cc8a203
1 changed files with 1 additions and 0 deletions
|
@ -352,6 +352,7 @@ if (video_data.params.save_player_pos) {
|
|||
let lastUpdated = 0;
|
||||
|
||||
if(!hasTimeParam) set_seconds_after_start(rememberedTime);
|
||||
if (rememberedTime >= video_data.length_seconds - 20 && !hasTimeParam) set_seconds_after_start(0);
|
||||
|
||||
player.on('timeupdate', function () {
|
||||
const raw = player.currentTime();
|
||||
|
|
Loading…
Reference in a new issue