Skip to content
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

Add playback speed button for quick acess #2674

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

trib2014956
Copy link

No description provided.

-Function Definition: The createPlaybackSpeedButtons function creates buttons for different playback speeds (0.5x, 1.0x, 1.5x, and 2.0x).
-Button Creation: For each speed, a button is created with an appropriate label and style.
-Event Listener: Each button has an event listener that calls the ImprovedTube.playbackSpeed function with the corresponding speed when clicked. The current speed is also displayed next to the buttons.
-Appending to Player Controls: The buttons are appended to the player controls, allowing users to easily access them.
Initialization: The init function is modified to call createPlaybackSpeedButtons, ensuring that the buttons are created when the player is initialized.
@ImprovedTube ImprovedTube marked this pull request as draft November 15, 2024 05:26
@ImprovedTube
Copy link
Member

Hi and thank you!! @trib2014956

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.

2 participants