Skip to content

Add playback rate support for media player - #477

Merged
Dananji merged 2 commits into
mainfrom
playback-rate
Apr 25, 2024
Merged

Add playback rate support for media player#477
Dananji merged 2 commits into
mainfrom
playback-rate

Conversation

@Dananji

@Dananji Dananji commented Apr 9, 2024

Copy link
Copy Markdown
Collaborator

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

Comment thread src/components/MediaPlayer/MediaPlayer.md Outdated
@Dananji
Dananji merged commit 59cf7c7 into main Apr 25, 2024
@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