(seconds: number)
| 45 | type CastPlayer = AsciinemaPlayer.Player; |
| 46 | |
| 47 | const fmt = (seconds: number): string => { |
| 48 | const s = Math.max(0, Math.floor(seconds)); |
| 49 | return `${Math.floor(s / 60)}:${String(s % 60).padStart(2, "0")}`; |
| 50 | }; |
| 51 | |
| 52 | /** The cast's own duration: timestamp of its last event (the file is local |
| 53 | * and line-delimited, cheaper and more deterministic than player events). */ |