-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix playback rate reset when video ends #7718
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 playback rate reset when video ends #7718
Conversation
fyi: havent forgotten about this one but i have made some notes on my issue you are trying to solve and the gist of it is that the issue is maybe running way deeper than i though. So i will investigate the notes first and come back to this |
So the other case that was listed in my notes and should be checked is playlists
|
Hello! It seems like it is working fine on this branch. Here is my test on a playlist I created. The same behaviour was found on playlists from other channels. video.mp4 |
Could you rebase into dev so we can test this with working playback |
Head branch was pushed to by a user without write access
ad60aeb
to
5d0880a
Compare
Rebased |
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.
Functionally wise LGTM but i prefer @absidue to sign off code wise first
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.
Please remove the sessionStorage code.
Head branch was pushed to by a user without write access
Done! |
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
Sorry for the delay. Please rebase into dev branch so playback isnt broken anymore and this can be properly tested |
Head branch was pushed to by a user without write access
6028c1b
to
7d0fb9c
Compare
Rebased |
Head branch was pushed to by a user without write access
7d0fb9c
to
5c7ebb7
Compare
My bad, my fork was outdated. I rebased it again. |
* development: (24 commits) Add proxy login support (FreeTubeApp#7996) Migrate the History view to the composition API (FreeTubeApp#8064) Fix player button hiding (FreeTubeApp#8065) Translated using Weblate (Norwegian Bokmål) Translated using Weblate (Indonesian) Fix playback rate reset when video ends (FreeTubeApp#7718) Skip Electron binary download in CI as we do not run it (FreeTubeApp#8063) Feat: Display player overlay controls on keyboard interaction (FreeTubeApp#7757) Translated using Weblate (Hungarian) Translated using Weblate (Czech) Translated using Weblate (Estonian) Translated using Weblate (French) Bump electron from 37.4.0 to 38.1.0 (FreeTubeApp#8025) Translated using Weblate (Dutch) Translated using Weblate (Portuguese (Brazil)) Translated using Weblate (German) Translated using Weblate (Breton) Translated using Weblate (Italian) Translated using Weblate (Chinese (Simplified Han script)) Support exporting single playlists as a list of video URLs (FreeTubeApp#8054) ... # Conflicts: # src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js
Pull Request Type
Related issue
Closes #7445
Description
Fixes a bug that made the video speed reset when the video ended.
These changes include a session storage to preserve the selected speed and a
watch
to monitor thecurrentPlaybackRate
prop and keep it in sync.Testing
1 - Open a video and set a custom speed.
2 - Let the video end.
3 - See that the video speed remains the same.
(previously, the speed would automatically reset to the default at the end)
Desktop
Additional context
It seems like the bug was happening because the Shaka Player replaces the
<video>
element's source when it loads a new manifest. This throws away the currentplaybackRate
.