Skip to content

Commit

Permalink
feat(player): playback rate in toast info
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Aug 9, 2024
1 parent 799e9dc commit 1233479
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,10 @@ const hotkeys = (P: Player, T: KeyboardEvent) => {
[
['LocalTime', new Date().toLocaleString()],
['File', `${P.title} @ ${P.video.videoWidth}x${P.video.videoHeight}`],
['Time', `${P.fCurrentTime()} / ${fTime(P.video.duration)}`],
[
'Time',
`${P.fCurrentTime()} / ${fTime(P.video.duration)} (${P.video.playbackRate.toFixed(2)}x)`,
],
]
.map(([l, t]) => `<b>${l}: </b>${t}`)
.join('<br/>')
Expand Down

0 comments on commit 1233479

Please sign in to comment.