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

Commit c46490e

Browse files
committed
add playbackRate
1 parent 77eb41d commit c46490e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/watch/player/artplayer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export default function NewPlayer({
3737
}
3838

3939
useEffect(() => {
40+
Artplayer.PLAYBACK_RATE = [0.5, 0.75, 1, 1.15, 1.2, 1.5, 1.7, 2];
41+
4042
const art = new Artplayer({
4143
...option,
4244
container: artRef.current,

components/watch/player/playerComponent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ export default function PlayerComponent({
446446
url: url,
447447
autoplay: autoplay ? true : false,
448448
autoSize: false,
449+
playbackRate: true,
449450
fullscreen: true,
450451
autoOrientation: true,
451452
icons: icons,

0 commit comments

Comments
 (0)