-
Notifications
You must be signed in to change notification settings - Fork 895
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
Feature: remember playback rate in watch session #6449
Feature: remember playback rate in watch session #6449
Conversation
Hi @ikizey, thank you for working on this. I do think this idea needs more discussion before deciding on an implementation. Here are my two cents:
|
I agree with @kommunarr. There is no extra setting needed here. Users sets default playback speed to 1x -> user watches video -> changes playback speed to 2x -> next video still has 2x speed -> User closes the application -> Open application -> watch video -> video uses default playback speed. |
I would argue that it should be like #6400: exit watch page = reset to default value |
…ack store value directly
Head branch was pushed to by a user without write access
3a2f88a
to
8ecdf29
Compare
@kommunarr @efb4f5ff-1298-471a-8973-3d47447115dc I updated the code to do the same thing with playback rate. (PR description updated) |
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.
Great work!
src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js
Outdated
Show resolved
Hide resolved
src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js
Outdated
Show resolved
Hide resolved
src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js
Outdated
Show resolved
Hide resolved
I have fixed the issue linked in the pull request description to point to the correct one for you (the one you had originally linked was your own issue that was closed as a duplicate of an existing one). |
…Watch components - Changed default playback rate from 1.0 to 1 in ft-shaka-video-player.js - Renamed event from 'current-playback-rate-update' to 'playback-rate-updated' in ft-shaka-video-player.js and Watch.vue - Updated Watch.js to initialize currentPlaybackRate to null and set it based on store value in mounted lifecycle hook
Head branch was pushed to by a user without write access
src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js
Outdated
Show resolved
Hide resolved
…yer and Watch components
Head branch was pushed to by a user without write access
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.
one step closer to #2295. Feel free to take a stab at more player controls
* feat: use state in Watch for playback rate value instead defaultPlayback store value directly * refactor: update playback rate handling in ft-shaka-video-player and Watch components - Changed default playback rate from 1.0 to 1 in ft-shaka-video-player.js - Renamed event from 'current-playback-rate-update' to 'playback-rate-updated' in ft-shaka-video-player.js and Watch.vue - Updated Watch.js to initialize currentPlaybackRate to null and set it based on store value in mounted lifecycle hook * refactor: simplify playback rate initialization in ft-shaka-video-player and Watch components
Pull Request Type
Related issue
Part of #2295
Description
Playback rate resets to default value only when leave watch view, not on every video, like it is now.
Testing
Manually tested playback rate doesn't change when you select another video, on autoplay, on next video in playlist. Resets to default, when you leave watch view.
Additional context
Closing issue created by me.