Browse Source
Add check to avoid saving player pos to the
length of the given video by saving a minimum of 15 at the end
pull/2750/head
11Tuvork28
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
assets/js/player.js
|
|
|
@ -215,7 +215,7 @@ if (video_data.params.save_player_pos) { |
|
|
|
const raw = player.currentTime(); |
|
|
|
const time = Math.floor(raw); |
|
|
|
|
|
|
|
if(lastUpdated !== time) { |
|
|
|
if(lastUpdated !== time && raw <= video_data.length_seconds - 15) { |
|
|
|
save_video_time(time); |
|
|
|
lastUpdated = time; |
|
|
|
} |
|
|
|
|