Commit Graph

174 Commits

Author SHA1 Message Date
hl-valdemar 5087a0a0f0 feat: visualize retained network playback buffer 2026-10-11 03:15:38 +02:00
hl-valdemar 4d4c3e6b0a feat: choose YouTube quality with a 1080p default 2026-10-11 02:54:01 +02:00
hl-valdemar 5f0287f489 fix: preserve app identity through FFmpeg preflight 2026-10-11 02:25:25 +02:00
hl-valdemar cf24a0fc4f fix: respond to macOS system playback controls 2026-10-11 01:51:59 +02:00
hl-valdemar c6d2958744 feat: install release builds and report missing FFmpeg
Add make release and make install PREFIX=/Users/valdemar/.local. Keep optimized no-debug release artifacts separate; install adjacent CLI/app under lib/terebi and link bin/terebi. Preflight FFmpeg/pkg-config before compiling or installing, including cached builds.

Record the player's exact linked FFmpeg ABI paths. AppKit-only CLI/bootstrap validate native loadability and transitive dependencies before entering the FFmpeg-linked terebi-player. CLI fails with status 69 and remediation; Finder bootstrap shows a native alert and execs the player without losing initial events or process identity.

Verified staged installation with spaces, reinstall preservation, absent build dependencies, missing/corrupt/transitively broken dylibs, real modal error surface, installed CLI and Finder startup across exec, local/YouTube resume and window reuse, and full make check.
2026-10-11 01:33:03 +02:00
hl-valdemar 230949bb95 feat: add a native CLI launcher for local and YouTube playback
Build .build/terebi beside the app. Parse a single local file or YouTube URL, --url, --, and help; reject invalid commands before GUI launch. Resolve the adjacent app through symlinks and launch through NSWorkspace, reusing its process/window and saved progress.

Launch the app without media before delivering URL events. Raw media argv suppress SwiftUI's initial singleton window. Own warm document and internet Apple events because SwiftUI's default external-event routing closes that window; retain initial Finder document delivery to create it.

Verified actual CLI 0/64/69 exit behavior, PATH/symlink discovery from another directory, cold local/YouTube playback, warm local/YouTube replacement in the same native window/process, resume, Finder-style cold launch, and make all check.
2026-10-11 00:45:24 +02:00
hl-valdemar 0411064f0c feat: remember playback progress across player restarts
Persist authoritative per-video positions in UserDefaults. Save periodic checkpoints, pause, close, replacement, and quit; restore a validated position before autoplay. Canonical YouTube webpage URLs survive fresh stream extraction, and local symlinks share file progress.

Clear completed or out-of-duration bookmarks. Leave failed opens and live/non-seekable inputs out of persistence. Pending opens hide errors belonging to the previous source.

Verified separate-process restart, source replacement, failed-open recovery, completion, checkpoints, real YouTube short-link resume, live exclusion, and make all check.
2026-10-10 23:44:48 +02:00
hl-valdemar 5bc0d81bbf fix: keep initial playback focus off the titlebar pin
Restore the playback window as first responder after initial setup and after file/YouTube dialogs return. Keep native control focus indicators and Tab navigation unchanged.

Verified hidden native window focus, both dialog cancellations, explicit control focus, Tab navigation, P shortcut, app build, and compact-window checks.
2026-10-10 23:21:26 +02:00
hl-valdemar 8fb08db6f3 feat: stream YouTube video with coordinated audio and video inputs
Resolve public YouTube URLs through external yt-dlp and play selected streams in the existing native window.

Independent bounded network readers keep one authored timeline. Successful seeks clear FFmpeg's sticky aborted-read AVIO error; manifest seekability uses native format flags rather than a top-level I/O handle.

Verified real YouTube playback, seeking, frame stepping, compact mode, cancellation, and the complete native regression checks.
2026-10-10 23:02:19 +02:00
hl-valdemar 25d674d84d feat: default compact mode to the top-right corner 2026-10-10 22:18:18 +02:00
hl-valdemar a6bebb05c0 feat: replace normal fullscreen control with compact-mode button 2026-10-10 22:05:54 +02:00
hl-valdemar fa66020951 feat: add same-window compact playback with magnetic snapping 2026-10-10 21:34:08 +02:00
hl-valdemar 681a7be6f7 chore: rename project and app to terebi 2026-10-10 20:32:14 +02:00
hl-valdemar 33858bd8ce fix: center controller content and autoplay opened files 2026-10-10 19:25:52 +02:00
hl-valdemar 131acbe41b fix: count repeated frame steps and retain the forward decoder cursor 2026-10-10 18:57:26 +02:00
hl-valdemar 2bb7d9b4ee fix: keep the displayed frame during frame stepping 2026-10-10 18:35:13 +02:00
hl-valdemar a99b0c1168 feat: step to adjacent decoded video frames 2026-10-10 18:05:00 +02:00
hl-valdemar 310be5aa61 feat: add familiar single-key playback controls 2026-10-10 17:47:00 +02:00
hl-valdemar bdae024c7f fix: align slider tracks with native thumb travel 2026-10-10 17:21:24 +02:00
hl-valdemar 9356ed8b4d fix: keep seek target visible until acknowledged and make volume thumb opaque 2026-10-10 17:05:59 +02:00
hl-valdemar c9b9264109 feat: match IINA screenshot geometry and controls 2026-10-10 16:03:18 +02:00
hl-valdemar 462cb52eb2 feat: adopt IINA-style playback window 2026-10-10 05:04:53 +02:00
hl-valdemar df2456f559 fix: preserve audio sample continuity across timestamp rounding 2026-10-10 01:33:33 +02:00
hl-valdemar 8a89d88254 feat: add native local-file playback 2026-10-10 01:24:06 +02:00