Skip to content

Commit

Permalink
feat: add player speed change notice
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMinds committed Mar 10, 2024
1 parent 94fc741 commit e8c34db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web/src/views/Player/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function keyHandler(event: KeyboardEvent) {
idx -= 1
if (idx <= 0) idx = 0
dp.video.playbackRate = speedList[idx]
dp.notice(`Speed ${dp.video.playbackRate.toFixed(2)}`, 2e3, 0.8)
break
}
Expand All @@ -100,6 +101,7 @@ function keyHandler(event: KeyboardEvent) {
idx += 1
if (idx >= speedList.length) idx = speedList.length - 1
dp.video.playbackRate = speedList[idx]
dp.notice(`Speed ${dp.video.playbackRate.toFixed(2)}`, 2e3, 0.8)
break
}
}
Expand Down

0 comments on commit e8c34db

Please sign in to comment.