diff --git a/src/components/htmlMediaHelper.js b/src/components/htmlMediaHelper.js index a7a9961e1c..3bb29ca912 100644 --- a/src/components/htmlMediaHelper.js +++ b/src/components/htmlMediaHelper.js @@ -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; } } diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 423e081a2b..123c550517 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -1375,6 +1375,9 @@ function tryRemoveElement(elem) { // Can't autoplay in these browsers so we need to use the full controls, at least until playback starts if (!appHost.supports('htmlvideoautoplay')) { html += '