Commit Graph
19 Commits
Author SHA1 Message Date
vhaudiquet 47510c88b5 app: drop the old Tauri front end
tauri-app/ was kept while the native app caught up, and the screens it had
are covered now. Its 48 tracked files go; the 7.6 GB of node_modules,
dist and target beside them were never tracked and are gone from the
working copy too.

The docs that said it was still in the tree name two programs now, and
the comments that pointed at a file inside it name the old app's file
instead, so nothing refers to a folder that is no longer there. The design
plans under plans/ keep their wording: they are dated documents, not
instructions.
2026-11-24 00:18:31 +01:00
vhaudiquet c483c012b3 app: pick the recordings folder from the quick tab
The quick tab showed the folder read-only, so a user who wanted another
one had to find the recording tab for it.

The row is the recording tab's now: the path, and Select folder beside
it. Open folder stays in the card header for the folder in use.
2026-11-24 00:00:13 +01:00
vhaudiquet 1bb2874753 app: pick the recordings folder and cut paths to the row
The folder was a text field, and the path was always cut to its last
two folders, so a wide window dropped folders it had room for and a
narrow one showed only the tail.

The row now shows the path the settings hold, cut in the middle at
whatever width the labels and the button leave it, with Select folder
opening the system's folder dialog through rune's native-file-dialog
feature. Form keeps no copy of the path any more; the draft is the one
place it lives.

The quick tab's recordings folder and the daemon tab's log file get the
same cut, and short_path goes.
2026-11-23 23:53:21 +01:00
vhaudiquet 73b41fa86b app: fill the screen with a clip in review
The review screen gave the clip a framed stage with the header, the
details column and the status bar around it, so a clip watched there
filled a fraction of the display.

Full screen, the button beside the volume or F, hands the window to the
display with no frame of ours and draws the picture alone, letterboxed
at 16:9. The controls keep to a band at the bottom: a gradient no taller
than they are, the scrubber with its event marks, the transport and an
Exit full screen button. The band is its own hover group, so the pointer
comes to it for the controls to draw in over 200 ms, and they are gone
400 ms after it leaves. Escape, the button or a double press on the
picture leaves, and the double press enters from the windowed stage.

Being full screen belongs to the window, not to the review, so App keeps
the state it last asked of the window and poll reconciles the two: a way
out of the review, a jump to another screen, or a window closed and
reopened brings the title bar, the status bar and the frame back.
2026-11-23 23:24:11 +01:00
vhaudiquet e546ab6969 app: show the game being recorded while it runs
record-daemon / Check and lint (Linux) (push) Successful in 1m13s
record-daemon / Build (Windows x64) (push) Successful in 1m56s
The daemon's protocol says whether it is recording and which game it is
on, and nothing else, so the app could not say what was being recorded
or stop it.

A Recording screen now opens by itself when a recording starts, and at
launch if one is already running, and a button in the title bar brings it
back from any other screen. It shows the champion, the queue and the
summoner, when the game began, two clocks, the live scoreline and both
teams, and the clip being written as it grows on disk. The game's own
data is read once a second on a thread of its own, from the endpoint the
daemon polls for its events, which needs no login. Without an answer the
screen keeps what it has and says it is waiting.

Stop recording and Stop and delete end the game. A stop over the
protocol is not the stop the recorder gives a game that ends by itself.
The video lands in a new timeline while the open one is left behind,
which showed in the match history as a game that never happened, next to
one with no champion. Stopping from the app closes the open timeline into
the one holding the video, and deleting removes the clip and both. The
history skips timelines that have no end meanwhile, so a recording in
progress is not listed as a game.
2026-11-23 22:46:44 +01:00
vhaudiquet 9ce2b75568 app: open a clip view from a card and after an export
The grid answers what was exported; the view answers this one clip.
It plays the file muted and looping, with a transport under it, and a
panel on the right for the title and the share.

The title is the file's name, because a file is the only place a clip
keeps one: saving renames it, the miniature follows, and the grid
shows the new name. Share puts the file itself on the clipboard, so
pasting it into a chat attaches the video. The card's share button
does the same now, and an export that finishes opens the view it
produced.
2026-11-22 19:20:16 +01:00
vhaudiquet 83ca4071d4 app: cut miniatures for the clips grid
Each card's stage shows a frame of the clip now, cut once with ffmpeg
into a thumbs folder beside the clips and reused from there. The pass
runs one clip at a time on a thread, skips what is already on disk and
as new as its clip, and poll drops each finished picture into its card
as it lands. Deleting a clip takes its miniature with it.

The frame is the clip's first: an export starts on the moment the clip
was cut for, so the picture shows the action without a seek. A clip
re-exported over the same name keeps its old picture until restart,
because the image cache keys a file by its path alone.
2026-11-22 18:52:57 +01:00
vhaudiquet 3f82f87a81 app: open the clips grid
The clips screen lists the clips folder: one card per mp4 the user
exported, newest first, with the clip's 16:9 stage, the champion it
stars when its recording is in the loaded history, share, and a menu
whose Delete removes the file. The folder read runs when the screen
opens, and again when an export finishes on it.

Computed highlights were the first plan for the grid, but a real
history parses hundreds of timelines and some run to tens of MB, so
the grid now reads only what the user actually exported.
2026-11-22 18:36:00 +01:00
vhaudiquet 297118cfc1 app: download ffmpeg on the first run, not the first export
record-daemon / Build, check and test (push) Failing after 1m15s
Clip export needs ffmpeg, and the app fetched it when an export was
asked for: a minute of nothing at the worst moment, with the export
sitting behind it. The run that follows an install now fetches it in
the background and narrates the download in the notice banner; the
notice is updated in place and leaves another notice alone. A hidden
start (the login item) skips the fetch and leaves it to the export.

Only ffmpeg.exe is unpacked. The archive also carries ffplay and
ffprobe, which the export paths never call: unpacking all three put
370 MB beside the exe instead of 105 MB.

An export asked for while the download runs says so instead of
starting a second download over the same directory, and --fetch-ffmpeg
runs the same fetch from a shell, printing progress.

Checked on this machine: --fetch-ffmpeg downloaded in about 20 s,
unpacked, and answered "ready"; a second run returned at once.
2026-11-19 22:23:08 +01:00
vhaudiquet 20303d5ddc app: ship the VC++ runtime with the installer
The app, the daemon, obs.dll and every OBS plugin import VCRUNTIME140.dll,
and the plugins reach for MSVCP140.dll and VCRUNTIME140_1.dll as well.
Windows carries the UCRT but none of those, so an installer without them
starts nothing on a machine that never ran Visual Studio; this one only
worked because the redistributable happened to be installed here.

The three DLLs live in vendor/vcruntime (they are on the redistributable
list) and packager.toml copies them beside the exes.
2026-11-19 22:19:38 +01:00
vhaudiquet 72a6da0ca3 app: note the VC runtime the installer assumes
Both exes import VCRUNTIME140.dll, which Windows does not ship: the
installer works here because Visual Studio's redistributable is
installed. A clean machine would refuse to start the app until either
the redist rides along or the build uses a static CRT.
2026-11-19 21:46:19 +01:00
vhaudiquet 673cddfff6 app: build as a windowed app so no console opens with it
The exe was a console-subsystem binary, so every launch allocated a console
window: from Explorer, from the Run key at login, everywhere. The PE header
now says windowed (`windows_subsystem = "windows"`), and Windows creates no
console for the process.

The printing modes still work from a shell: `attach_console` borrows the
console of whatever started the app, and does nothing when nothing did. The
daemon was already spawned with `DETACHED_PROCESS`, so it never had a window
of its own, and ffmpeg goes through `ffmpeg-sidecar`, which passes
`CREATE_NO_WINDOW` on each spawn.
2026-11-19 18:49:30 +01:00
vhaudiquet eabc3780c9 record: keep a track per audio source and let the review mute them
The recorder put every source on one mixer track, so the file had one audio
stream and the review screen could not tell the game's sound from the
microphone or from Discord.

The daemon now gives each source a track: 1 for the game, 2 for the
microphone, then one per application in the settings, up to OBS's six. Every
track above the first gets an audio encoder and the output is told which
tracks to write, which is what libobs's muxer reads to lay the streams out in
track order. The timeline's new `audio_tracks` names what each stream holds,
with empty names for the tracks no source fed.

The app opens one player per stream, copied out of the clip into the audio
cache, and the transport carries a toggle per channel. A channel that is off
is neither heard nor kept: clip and highlight exports mix only the tracks
left on. Recordings made before this change have one stream and play as they
did.
2026-11-19 18:37:20 +01:00
vhaudiquet 6584b2f92f app: read the history a page at a time and open clips on demand
Every launch parsed all 313 timelines, raw responses and all, which put
2.1 GB of JSON on the heap at startup.

The list now holds `Summary` rows: `history::summaries` parses a file,
keeps the champion, queue, scoreline, LP change and event count, then
drops the timeline. Files are listed by write time, and `poll` reads the
next 20 when the list is scrolled near its end or when the filtered rows
do not fill the screen. Selecting a row hands its id to the review
screen, which reads that one timeline on a thread.

Peak memory over 313 recordings: 165 MB.
2026-11-16 23:48:58 +01:00
vhaudiquet 227aecb8f6 app: draw champion portraits, a 16:9 player and draggable scroll bars
Cards and the review header showed two initials where a champion
portrait belongs. Data Dragon is fetched from a worker thread and cached
under the user's cache directory, so the first sight of a champion puts
its face on the card and later runs read it from disk; offline, the tile
keeps its initials on the champion's colour.

The review screen put the clip in a small box above two list columns.
The clip now fills the window at 16:9 and the highlights and timeline
open beside it on demand, so nothing shrinks the video by default and
every event still marks the scrubber.

Scroll bars were a thumb drawn over the cards that could not be
dragged. They now sit in a strip the content leaves free, stay visible
while the list overflows, and scroll the viewport when dragged.
2026-11-16 18:24:39 +01:00
vhaudiquet 560f08cfb9 app: document the many-games scene and grey the unknown tile
A recording with no champion gets a neutral tile instead of a colour
picked from an empty name. The README lists `--scene many`, which repeats
the sample games to fill the list, and says why the scrollbar needs
`--at 1`.
2026-11-15 23:40:57 +01:00
vhaudiquet b06ec4be7b app: reach the daemon and load the real history
The pipe path was missing a backslash, so every client call went to a
path Windows never resolves and the app reported a dead daemon. With the
path fixed, --probe answers against the running daemon and parses its
settings with the app's model; a recording made through it lands on disk.

Reading a large history (288 timelines, 524 MB of raw API responses) took
eleven seconds, so the files are parsed on up to eight threads now. The
history refresh also runs in headless runs, and `--live` renders a
snapshot from the daemon and the real timelines instead of sample data.
2026-11-15 22:46:49 +01:00
vhaudiquet 8883e93d2b app: edit per-application volume in the audio tab
Each configured source gets a slider that sends updateAudioSource as it
moves, so a change is heard while dragging. The demo data now includes two
application sources and a microphone, which the screenshots use.

Also look the game up by recording id in the review screen, so a refresh
that adds a recording does not change what is open.
2026-11-15 22:14:23 +01:00
vhaudiquet 0377141e4f app: add native rune client for record-daemon
Replaces the Vue/Tauri front end with a rune app that speaks the daemon's
existing IPC protocol: settings (general, recording, audio), match history
and game review with a scrubber, event markers and ffmpeg highlight export.
Includes tray icon, launch at login, single instance, toasts, a headless
snapshot path for checking screens, and a cargo-packager NSIS config.

Rune is pinned to 4ddf696b0f and its three patched crates are vendored under
app/vendor, since a dependency's [patch.crates-io] does not apply to the app.

The daemon's OBS bootstrap never reached its IPC server on this machine, so
the live check is a `--probe` command; the wire format is covered by tests.
2026-11-15 21:53:44 +01:00