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 rate support for media player #477

Merged
merged 2 commits into from
Apr 25, 2024
Merged

Add playback rate support for media player #477

merged 2 commits into from
Apr 25, 2024

Conversation

Dananji
Copy link
Collaborator

@Dananji Dananji commented Apr 9, 2024

Related issue: #185

This PR introduces a prop to the MediaPlayer component called enablePlaybackRate which adds PlaybackRateMenuButton to the player's control bar. This provides the ability to adjust the playback speed of the media.

The provided speeds are: 0.5x, 0.75x, 1x, 1.5x, and 2x.

The playback speed icon is a menu-button which clicked to adjust the playback speed (goes from 1x -> 1.5x -> 2x -> 0.5x -> 0.75x) or select the desired playback speed from the menu when hovered over using a mouse pointer.

When enabled the icon shows the selected playback speed in the icon:
Screenshot 2024-04-09 at 4 43 21 PM

src/components/MediaPlayer/MediaPlayer.md Outdated Show resolved Hide resolved
@Dananji Dananji merged commit 59cf7c7 into main Apr 25, 2024
0 of 2 checks passed
@Dananji Dananji deleted the playback-rate branch April 25, 2024 14:26
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