Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
add playbackRate
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanAbinaya committed Oct 17, 2023
1 parent 77eb41d commit c46490e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/watch/player/artplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export default function NewPlayer({
}

useEffect(() => {
Artplayer.PLAYBACK_RATE = [0.5, 0.75, 1, 1.15, 1.2, 1.5, 1.7, 2];

const art = new Artplayer({
...option,
container: artRef.current,
Expand Down
1 change: 1 addition & 0 deletions components/watch/player/playerComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ export default function PlayerComponent({
url: url,
autoplay: autoplay ? true : false,
autoSize: false,
playbackRate: true,
fullscreen: true,
autoOrientation: true,
icons: icons,
Expand Down

0 comments on commit c46490e

Please sign in to comment.