Skip to content

Fix ctrl+click to reset playback rate not working#6943

Merged
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
absidue:fix-playback-rate-reset
Mar 3, 2025
Merged

Fix ctrl+click to reset playback rate not working#6943
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
absidue:fix-playback-rate-reset

Conversation

@absidue
Copy link
Member

@absidue absidue commented Feb 27, 2025

Fix ctrl+click to reset playback rate not working

Pull Request Type

  • Bugfix

Related issue

Description

This pull request fixes CTRL+clicking not resetting the playback rate "Scroll Playback Rate over Video Player" is enabled and that the toast message doesn't show up notifying you of the new playback rate, like it does when scrolling. The problem was that we were trying to restore it to the current playback rate instead of the default configured in the settings. As for the toast message, we just had not implemented it for the playback rate reset.

Testing

  1. Turn on "Scroll Playback Rate over Video Player" in the "Player" settings.
  2. Change the playback rate by holding CTRL or Cmd and then try resetting it by CTRL or Cmd + clicking.
  3. Check that it remembers the playback rate that you are currently on when you go to the next video e.g. click on a video in the recommended videos section.
  4. Test that it correctly resets the playback rate even if it was not 1x (e.g. 2x).

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 68ec1e1

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Feb 27, 2025
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) February 27, 2025 21:12
@efb4f5ff-1298-471a-8973-3d47447115dc

This comment was marked as duplicate.

@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Member

efb4f5ff-1298-471a-8973-3d47447115dc commented Mar 1, 2025

The code is fixed to what it was doing before BUT #6449 changed the way how ctrl + clicked worked when autoplay is enabled

Default playback rate is set to 1x in the setting -> playback rate has been changed while watching the video, 9x -> next video uses playback rate of previous video so still 9x-> ctrl click resets to 9x instead of the default playback rate predefined in the settings

It basically sets the session playback rate as its default playback rate

Virtualboxvm.Pglra2gkkv.mp4

The wording in the tooltip indicate that it should always reset to the value set in the settings

135803944-907060fe-41c6-4a18-a1e8-5c86ecb7b585

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Mar 1, 2025
@absidue
Copy link
Member Author

absidue commented Mar 1, 2025

Should be fixed now.

@absidue absidue added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: changes requested labels Mar 2, 2025
@FreeTubeBot FreeTubeBot merged commit 7fbe4b2 into FreeTubeApp:development Mar 3, 2025
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 3, 2025
@absidue absidue deleted the fix-playback-rate-reset branch March 3, 2025 06:38
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Mar 5, 2025
* fix-legacy-alone:
  Allow legacy formats to be used even when dash and audio-only are unavailable
  Fix search not working on mobile because of undefined ref (FreeTubeApp#6706)
  Bump bgutils-js from 3.1.3 to 3.2.0 (FreeTubeApp#6960)
  Bump copy-webpack-plugin from 12.0.2 to 13.0.0 (FreeTubeApp#6964)
  Bump babel-loader from 9.2.1 to 10.0.0 in the babel group (FreeTubeApp#6957)
  Bump yaml-eslint-parser from 1.2.3 to 1.3.0 in the eslint group (FreeTubeApp#6958)
  Bump lefthook from 1.11.0 to 1.11.2 (FreeTubeApp#6961)
  Bump sass from 1.85.0 to 1.85.1 (FreeTubeApp#6965)
  Bump stylelint from 16.14.1 to 16.15.0 in the stylelint group (FreeTubeApp#6959)
  Bump electron from 34.2.0 to 34.3.0 (FreeTubeApp#6962)
  Bump shaka-player from 4.13.4 to 4.13.6 (FreeTubeApp#6963)
  Translated using Weblate (Welsh)
  Fix search suggestions error for long search queries (FreeTubeApp#6955)
  Fix ctrl+click to reset playback rate not working (FreeTubeApp#6943)
  Translated using Weblate (Romanian)
  IV RSS Subscriptions: properly detect `error channels` (FreeTubeApp#4407)
  Translated using Weblate (Romanian)
  Move screenshot fallback path handling to the main process (FreeTubeApp#6945)
  Translated using Weblate (Romanian)
doublecrow pushed a commit to doublecrow/FreeTube that referenced this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Ctrl + click feature doesnt work when Scroll Playback Rate Over Video Player is enabled

5 participants