Repository navigation
feat(desktop): play vault audio and video natively - #189
Merged
Merged
Conversation
# Conflicts: # docs/design/app.md # docs/plans/0009-mygo-desktop.md # go.sum # internal/desktop/editor/live.go # internal/desktop/reading/view.go
bketelsen
changed the base branch from
fix/render-image-source-span
to
feat/native-math
November 11, 2026 07:47
This was referenced Nov 11, 2026
6 tasks done
frostyard-machines
approved these changes
Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Play vault audio/video in native reading views, live preview and attachment tabs. Standalone wiki/Markdown media embeds become blob-backed playback controls; prose links retain their link behavior. Play opens the decoder, Pause/seek/Stop control it, and unmount closes playback and the file. Attachment tabs retain the system-player fallback.
Closes #148. Stacked on #188, which includes native math from #187. The pinned MyGo already supplies the playback APIs.
Risk tier
Risk tier: 3 — L1 paths
internal/desktop/editor/live.go,internal/desktop/reading/view.go, newinternal/desktop/media/media.go, andpackaging/flatpak/org.frostyard.Frostnotes.json; L2.github/risk-paths.json. Only validated local blob hashes with supported extensions reach playback; URLs and paths are rejected. Playback starts on a user press. Flatpak adds the PulseAudio socket for sound. Registered audio decoders are pinned through the existing MyGo module and regenerated Go sources.Docs housekeeping
Updated the render contract, native UI spec, app design and desktop plan with reciprocal links. Added the media opener to the risk paths.
Verification
mise exec -- make checkandmake desktop-buildpassed on the refreshed branch.Merge order
Remaining merge order: #191 → #188 → #189 → #190. #187 was merged into #188, so its math changes land with #188. Preserve ancestry with merge commits, or rebase the remaining branches after a squash merge. Merge #188 first, then retarget this PR to
main.Update (2026-11-11): moved onto MyGo v0.9.0 by merging
main(MyGo v0.9.0, build(desktop): move to MyGo v0.9.0 #192) and fix(deps): adopt merged frostui and stabilize async checks #191's updated branch are merged into feat(desktop): style live headings and tasks and render native math #188, then feat(desktop): style live headings and tasks and render native math #188 into feat(desktop): play vault audio and video natively #189, and feat(desktop): play vault audio and video natively #189 into feat(desktop): toggle reading tasks with undo and follow block links #190, without force-pushes. Nothing frommainis rolled back: feat(desktop): style live headings and tasks and render native math #188's diff againstmainis its own work plus fix(deps): adopt merged frostui and stabilize async checks #191's.frostyard/nextatd97fd2e1: v0.9.0 with editor: show elements between lines egoist/mygo#1662, per-line styles, and the Markdown view's task actions and anchors. It replaces the old fork commits5fa528b3andd805de38, which predate v0.9.0. The replace's comment, plan 0009 andAGENTS.mdsay it goes once all of these are in a MyGo release.Local results
On each of #188, #189 and #190, these are green:
make checkgo test -raceover./internal/desktop/...and./internal/render/make desktop-buildmake desktop-evidenceon #190: the tree at a median of 369 µs, the switcher at 4.8 ms, and a phone edit in 8.7 ms.Typing cost: about 2.7 ms a keystroke in source mode, and 11.6 to 12.7 ms in live preview, against
main's 9.0 ms without per-line styles and the 16 ms budget.Not verified yet
make desktop-smokedidn't run locally, because the host has noxvfb-run. Its first run is CI's.pull_requestruns only on PRs tomain, so feat(desktop): play vault audio and video natively #189's and feat(desktop): toggle reading tasks with undo and follow block links #190's CI and Flatpak workflows were started by hand withworkflow_dispatchon their branches. Those runs may not appear among the PR's checks.