Repository navigation
refactor(mediaplayer)!: Reparent MediaPlayerPresenter to FrameworkElement - #23807
Conversation
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23807/wasm-skia-net9/index.html |
|
The build 222891 found UI Test snapshots differences: Details
|
…ment MediaPlayerPresenter now derives directly from FrameworkElement (matching WinUI) instead of Border, dropping the extra Border level and its leaked Child/BorderBrush/BorderThickness/CornerRadius/Padding surface. The video surface is hosted via an internal Child slot (AddChild/RemoveChild) with an ArrangeOverride; the 6 platform extensions reach it unchanged through InternalsVisibleTo. MediaPlayerElement paints its black background on the template root so letterbox bars stay black. Compiled on Skia Desktop (incl. Win32/X11 media extensions); structural reparent runtime-validated (Given_MediaPlayerPresenter). Video-hosting behaviour and the non-desktop extensions need per-head validation. Part of the 7.0 breaking-changes rollup (uno#8339). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
73828b0 to
21a3378
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23807/wasm-skia-net9/index.html |
|
The build 223424 found UI Test snapshots differences: Details
|
|
|
|
Tick the box to add this pull request to the merge queue (same as
|
GitHub Issue: Part of #8339
PR Type:
💬 Other — Breaking change (base-class realignment for WinUI parity; targets
feature/breakingchanges)What changed? 🚀
MediaPlayerPresenternow derives directly fromFrameworkElement(matching WinUI) instead ofBorder, removing the extraBorderlevel and its leakedChild/BorderBrush/BorderThickness/CornerRadius/Padding/BackgroundSizing/ChildTransitionssurface. The video surface is hosted via an internalChildslot (AddChild/RemoveChild+ArrangeOverride); the 6 platform media extensions reach it unchanged throughInternalsVisibleTo.MediaPlayerElementnow paints its black background on the templateLayoutRoot(aPanel) so letterbox bars stay black.Validation (Skia Desktop):
SamplesApp.Skia.Generic(net10.0) — ✅ 0 errors, including the Win32 and X11 media extensions building against the internalChildvia IVT.Given_MediaPlayerPresenter1/1 (structural — base isFrameworkElement, notBorder).PR Checklist ✅
Given_MediaPlayerPresenter, structural)migrating-to-uno-7.md→ "Type-hierarchy changes")Screenshots Compare Test Runresults.Breaking change / migration: the
Border-only surface is gone fromMediaPlayerPresenterandis Borderis no longertruefor a presenter; playback andStretchare unchanged. Migration note included inmigrating-to-uno-7.md.