-
-
Notifications
You must be signed in to change notification settings - Fork 509
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
Add option to customize seek time #3794
Conversation
This should ideally take into account the user-specific settings made on the Jellyfin server, i.e. the These settings are already partially used in the Android TV client, as seen here and in this issue. Having an override specifically for the TV client can still make sense (a user may want different seeking behaviour between clients), but I think that it should still default to the server-side settings. Also, perhaps the seek time should be cached somewhere so the preferences aren't being hit for each |
I have already seen the settings for forward and back. However, the SeekProvider does not allow a distinction between forward and back, so there is only one value. The setting is therefore different from the Android app/web app. I think using only the value of “back” would not be much better than creating a new (local) value (seek time). Maybe this would be a temporary solution until there is a rewrite of the playback. The seektime can of course be given directly to the CustomSeekProvider, would be no problem to change that. |
Right, that does complicate things. Luckily, the ATV playback rewrite allows such a distinction. Since there is the rewrite coming up, I would propose the following: Legacy code
Rewrite code
This PR already accomplishes the legacy part, and could be considered self-contained. I wrote some thoughts about how this PR could consider the transition between legacy/rewrite, but came to the conclusion that it doesn't matter much on the legacy side. Perhaps the names could be changed from So perhaps the rewrite side could be punted off for later. FWIW, I was previously planning on working on custom seek times once the rewrite was completed if no one else got to it first. @nielsvanvelzen Thoughts on all this? |
We should re-use the skip forward/backward preferences already available in the user settings. Not add a new one. |
Hey @kabel2, are you still interested in finishing this pull request? it's currently waiting for you to address my comment above. |
Sorry for the late reply. |
We can use the "forward" preference for now and update it later when we redo the player design. |
Okay, I'll take a look at the necessary changes tomorrow :) |
Is now adjusted. |
app/src/main/java/org/jellyfin/androidtv/preference/UserSettingPreferences.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/jellyfin/androidtv/ui/playback/overlay/LeanbackOverlayFragment.java
Outdated
Show resolved
Hide resolved
The tests are currently failing |
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've made 2 final changes:
- Fix the issue where you can change the value below the minimum - this wasn't your mistake but a bug in our UI code
- Use the long type in CustomSeekProvider and do the casting from LeanbackOverlayFragment (where we initialize the provider)
Thanks for the pull request!
Changes
Adds a slider in the playback settings to set the fast-forward/rewind times. Minimum 1 second, maximum 60 seconds. Default 15 seconds.
TODO:
I think the naming of the setting needs to be changed. It may also be necessary to change the slider to two dropdowns (as in the Android smartphone app).
Issues
Fixes my own frustration of not being able to rewind a short dialog.