Repository navigation
Add Media Foundation playback and harden WinUI composition hosting - #48
Open
atcarter714 wants to merge 3 commits into
Open
atcarter714 wants to merge 3 commits into
atcarter714 wants to merge 3 commits into
Conversation
Poll frame fences and busy DXGI presents, drain resize work off the UI thread, and reattach resized composition chains. Queue render turns after XAML composition callbacks while preserving elapsed animation time across skipped turns. Add shared lifecycle/HRESULT logs, bounded qualification watchdogs, resize-burst checks, and GPU-gated fence-poll assertions. Keep Preview 4 gated on Windows CI and hardware review of the reported WinUI crash/freeze.
This branch has not been deployed
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.
Add the optional DXSharp.Media library and one WinUI VideoPlayer using the shared composition host. Media Engine owns audio and playback timing; BGRA frames transfer through writable WIC storage into persistent per-frame-slot D3D12 textures. Local-file controls cover play/pause, seek, loop and volume/mute, with visible transfer/timing diagnostics.
Project the complete pinned Media Foundation namespace, including its D3D12 video declarations: the local name/member/IID gate measures 1,650 types and 8,484 member names. Raw owned outputs and generated COM callbacks retain deterministic lifetime. Existing Core sampler overloads remain available.
Address identified WinUI blocking/reentrancy risks: poll frame fences and busy presents, drain resize work on a worker, reattach resized composition chains, and queue drawing after XAML composition callbacks. Preserve animation time across skipped turns. Add rapid move/resize checks, GPU-gated polling assertions, persistent lifecycle/HRESULT logs and independent test watchdogs.
Validation: both WinUI samples pass managed .NET 10/11 Release cross-builds with zero warnings/errors. The local Linux .NET 11 ABI/lifetime/CPU suite passes 2,298 checks with no live native objects. The preceding media commit passed all six hosted CI jobs, including paused seek; fresh Windows checks are required for the host changes. Cross-builds do not qualify Windows deployment or presentation.
Release gates: retest the reported VideoPlayer 0xC000027B failure and CharacterLab.WinUI move/resize freeze on affected hardware; their original causes are not yet established. Verify audible A/V synchronization using the audio-bearing fixture. Hosted tests use a video-only fixture for runners without audio endpoints. Decoder acceleration is unmeasured; this CPU-transfer backend does not qualify zero-copy interop or direct D3D12 video queues. Optional media/desktop JIT workloads and native SDK NativeAOT ownership remain separate qualification claims.
Preview 4 candidate cutoff includes ten modern package IDs (twenty package/symbol archives). No versioned release note or package publication is included; Preview 4 remains gated on Windows and hardware review.