Repository navigation
feat: add in-app audio preview - #207
Merged
Merged
Conversation
Play local audio with the Windows MediaPlayer, fed as a local stream after refusing disguised executables. South play/pause, Left/Right and LB/RB bounded seeks, Up/Down volume, North mute; the player state is polled per frame and closing stops playback and releases the file. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
nextestudios
force-pushed
the
feature/60-audio-preview
branch
from
September 27, 2026 22:36
92f5b98 to
eb29ffb
Compare
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
IMediaPlayerFactory/IMediaSessionwith a polledMediaStatussnapshot (state, position, duration, volume, mute, tracks/subtitles for the upcoming video player).AppController.TickMediareads it every frame and only redraws when something visible changed (whole seconds, state, volume…).WindowsMediaPlayerFactory(Infrastructure.Media): WindowsMediaPlayer/Media Foundation with installed codecs only, fed viaMediaSource.CreateFromStream(never a URL → no network, no UNC resolution by the player), system media transport controls disabled, clear message for unsupported codecs.MediaPreviewPolicyrefuses empty files and disguised executables (MZ) off the UI thread before anything reaches the decoders.ma-audio-previewcapture with a real WAV.Tested in CI
AudioPreviewJourneyTests(fake player): play/pause/seek bounds/volume/mute/restart-at-end, redraw only on visible status change, close disposes and restores focus, disguised executable refused before the player.MediaPlayerIntegrationTests(real MediaPlayer, generated WAV): opens as a stream, reads the duration, pauses, seeks, and the file can be deleted right after dispose. Skips with the reason if the runner has no audio output.Manual checks (docs/TESTING.md, "Áudio (#60)")
Closes #60
🤖 Generated with Claude Code