Feat: Add decrease/increase speed buttons option (closes #3282)#3314
Feat: Add decrease/increase speed buttons option (closes #3282)#3314ImprovedTube merged 9 commits intocode-charity:masterfrom
Conversation
|
thank you guys !! |
| child: svgIncrease, | ||
| onclick: function () { | ||
| const currentSpeed = ImprovedTube.playbackSpeed(); | ||
| let newSpeed = Math.min(currentSpeed + 0.25, 2); |
There was a problem hiding this comment.
Could you add an option so the step can be configured?
PerchunPak
left a comment
There was a problem hiding this comment.
Those are nitpicks, but I am not a fan of AI artifacts
Co-authored-by: Perchun Pak <github@perchun.it>
Co-authored-by: Perchun Pak <github@perchun.it>
|
Looks like speed-changing keybinds do a bit more logic than just changing the speed. Can we reuse that function? |
If we call it, it would be necessary to change a little bit this shortcutIncreasePlaybackSpeed. This method picks the step from shortcuts_playback_speed_step, which is a different variable from the one we use to set the step (player_custom_playback_speed_step). |
We should move this method somewhere in a shared place, rename it and just provide the step as a function argument |
|
thank you so much!! :) @pecazeco @PerchunPak
There is a lot of potential for this project to be more of a framework. |
I don't really understand what you mean. I only talked about business logic, which is identical in both of those places. |


What:
Why:
How to test:
Notes: