-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix resume not working on LG WebOS #3724
Fix resume not working on LG WebOS #3724
Conversation
What webOS version are you testing? Since this is a bug, please rebase this branch on |
WebOS 4.5 Will do |
Don't forget to reapply suggestions. You are free to squash commits to a first one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have played with timeouts: 50ms worked too (once), but 300 worked more often. So there's a chance that 500ms may fail too. It probably depends on buffering time.
I have tried events durationchange
, loadeddata
, play
, loadedmetadata
: they all go before seekOnPlaybackStartIfNeeded
(play
goes first).
I haven't tried timeupdate
though 🤔 Something like: seek if needed on the first time update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Maybe also add HACK:
somewhere to mark it as an unfinished/non-ideal solution?
I did some more testing and noticed subtitles aren't synced to the resumed time. |
Tested unmodified jf-web on emulators of webOS 1.2, 2, 4 and 5 - only 4 fails 🤷♂️
What subs? SRT or ASS, embedded or external. |
External SRT file |
On webOS this block should be called on jellyfin-web/src/plugins/htmlVideoPlayer/plugin.js Lines 791 to 793 in 7028419
|
In webOS 4 emulator Test assets jf-gray_1080p_h264_m40.mp4 |
Alright, I did some more digging and it turns out that if you change 'metadata' here: jellyfin-web/src/plugins/htmlVideoPlayer/plugin.js Lines 1377 to 1378 in 7028419
to 'auto' then resume simply (i.e. w/o the timer) works 🤷♂️. Subtitles still don't sync to the correct position though |
I like hack-free solutions. 👍 Does it work with transcoding?
Have you tried the sample above? In the emulator subtitles are out of sync even from the beginning. |
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
(cherry picked from commit bc48691) Signed-off-by: Bill Thornton <billt2006@gmail.com>
Resume wasn't working for me on LG WebOS (via jellyfin-webos) on Jellyfin 10.8.0, jellyfin-webos 1.0.1 and latest jellyfin-web (master)
Description
I believe the issue is that:
Changes
Math.abs(element.currentTime || 0, seconds)
is actuallyMath.abs(element.currentTime || 0)
. I interpreted the logic was meant to not skip if the diff is smaller than 1 sec.Issues
Probably solves jellyfin/jellyfin-webos#46