Skip to content

Commit

Permalink
feat(player): adjust info toast
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Nov 19, 2023
1 parent 3d4a2ff commit 8fcd69b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/player.player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,15 @@ const __player_metadata__: PlayerMetadata = {
case 39: // Right
P.skip(T.ctrlKey ? 1 : 5);
break;
case 84: // T
P.toast(P.title);
break;
case 73: // I
P.toast(
`${new Date().toLocaleTimeString()}<br/>${fTime(P.video.currentTime, P.overHour)} / ${fTime(
P.video.duration
)}`
[
['LocalTime', new Date().toLocaleString()],
['File', `${P.title} @ ${P.video.videoWidth}x${P.video.videoHeight}`],
['Time', `${fTime(P.video.currentTime, P.overHour)} / ${fTime(P.video.duration)}`],
]
.map(([l, t]) => `<b>${l}: </b>${t}`)
.join('<br/>')
);
break;
case 68: // D
Expand Down

0 comments on commit 8fcd69b

Please sign in to comment.