Skip to content

Use maxVideoPlaybackRate for the max value of Default Playback Rate#7184

Merged
FreeTubeBot merged 1 commit into
FreeTubeApp:developmentfrom
efb4f5ff-1298-471a-8973-3d47447115dc:fix-default-playback-rate
Apr 14, 2025
Merged

Use maxVideoPlaybackRate for the max value of Default Playback Rate#7184
FreeTubeBot merged 1 commit into
FreeTubeApp:developmentfrom
efb4f5ff-1298-471a-8973-3d47447115dc:fix-default-playback-rate

Conversation

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

Use maxVideoPlaybackRate for the max value of Default Playback Rate

Pull Request Type

  • Bugfix

Description

Default Playback Rate slider doesn't exceed max value set by Max Video Playback Rate slider

Testing

  1. Set Max Video Playback Rate slider to a value, e.g. 2x
  2. Use Default Playback Rate slider to check that you cant go beyond previously set value

Desktop

  • OS: Ubuntu
  • OS Version: 24.04 LTS
  • FreeTube version: latest

Additional context

I noticed that the Default Playback Rate slider was set to max value of 8x but the Max Video Playback Rate slider goes up to 10x so i initially wanted to adjust that to 10x just to fix that inconsistency. Then i noticed that when I set the Max Video Playback Rate slider to 2x and i was able to set the Default Playback Rate slider to values >2x and the video player happily played at those speeds but didn't show them in the video player. So i guess a kind of 2 birds with one stone kind of situation here.

Also related but already existing behavior:

Sliders values don't automatically auto adjust. It requires user interaction before it uses the new values. If user doesnt interact with the slider than the player also plays the value. Any ideas how we could address that?

FreeTube_zxrKlKyXet.mp4

@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 10, 2025
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) April 10, 2025 21:51
Copy link
Copy Markdown
Collaborator

@kommunarr kommunarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sliders values don't automatically auto adjust. It requires user interaction before it uses the new values. If user doesnt interact with the slider than the player also plays the value. Any ideas how we could address that?

I'm not sure if there's a cleaner way to do it, but what comes to mind is applying a custom rounding function on either an intermediary function call in player-settings.js or as a side effect handler through our system we have set up for that.

@FreeTubeBot FreeTubeBot merged commit 0868f19 into FreeTubeApp:development Apr 14, 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 Apr 14, 2025
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc deleted the fix-default-playback-rate branch April 14, 2025 07:42
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.

5 participants