test(windows): MediaPlayer playback check of the Media Foundation output

BRIEF §20.2 lists a MediaPlayer playback check after the Media Foundation encode
smoke test; the encoder tests stopped at the MP4 inspector. The new test encodes
two seconds of software H.264, opens the file with WPF's MediaPlayer and checks
its natural size and duration (failing on MediaFailed or a timeout), then
decodes the first frame with a Media Foundation source reader and checks its
size, the file's duration and the picture that was encoded. Without Windows Media
Player (Windows Server, "N" editions) the source reader decode is the check.
Core.Windows.Tests references WPF through its framework reference only, so its
implicit usings stay as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-12 10:05:58 +00:00
1 parent e583b6ed74
commit a8cf92b4a4
3 files changed
+283

No files matched your search

@@ -4,6 +4,10 @@
<TargetFramework>net10.0-windows</TargetFramework>
<RootNamespace>Titano.Core.Windows.Tests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<!-- WPF's MediaPlayer for the playback check (BRIEF §20.2); not UseWPF, which would also change the implicit usings. -->
<FrameworkReference Include="Microsoft.WindowsDesktop.App.WPF" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Titano.Testing\Titano.Testing.csproj" />
<ProjectReference Include="..\..\src\Titano.Core.Windows\Titano.Core.Windows.csproj" />