diff --git a/services/web-ui/public/screens-editor.jsx b/services/web-ui/public/screens-editor.jsx index a360b53..c82506a 100644 --- a/services/web-ui/public/screens-editor.jsx +++ b/services/web-ui/public/screens-editor.jsx @@ -1,5 +1,14 @@ // screens-editor.jsx — Editor (timeline) +function _fmtTimecode(ms) { + const s = Math.floor(ms / 1000); + const f = Math.floor((ms % 1000) / (1000 / 30)); + return String(Math.floor(s / 3600)).padStart(2, '0') + ':' + + String(Math.floor((s % 3600) / 60)).padStart(2, '0') + ':' + + String(s % 60).padStart(2, '0') + ':' + + String(f).padStart(2, '0'); +} + function Editor() { const { ASSETS } = window.ZAMPP_DATA; const [playing, setPlaying] = React.useState(false); @@ -12,7 +21,7 @@ function Editor() { }, [playing]); return ( -