mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix setCurrentTimeIfNeeded calc + change preload to auto to resume in WebOS
This commit is contained in:
parent
c8590d37ed
commit
cab6e34390
2 changed files with 5 additions and 1 deletions
|
@ -131,7 +131,8 @@ import { Events } from 'jellyfin-apiclient';
|
|||
}
|
||||
|
||||
function setCurrentTimeIfNeeded(element, seconds) {
|
||||
if (Math.abs(element.currentTime || 0, seconds) <= 1) {
|
||||
// If it's worth skipping (1 sec or less of a difference)
|
||||
if (Math.abs((element.currentTime || 0) - seconds) >= 1) {
|
||||
element.currentTime = seconds;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue