microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.31k stars 676 forks source link

MediaPlayerElement does not support DolbyVision #9238

Open kingcean opened 10 months ago

kingcean commented 10 months ago

Describe the bug

There is no HDR effect on MediaPlayerElement.

Steps to reproduce the bug

Play a DolbyVision encoded video.

<MediaPlayerElement Source="dolbyvisionsample.mp4" AutoPlay="True" AreTransportControlsEnabled="True" Stretch="Uniform" />

But no effect. But it works well in Media Player app.

Expected behavior

Supports HDR (including DolbyVision).

Screenshots

No response

NuGet package version

Windows App SDK 1.4.3: 1.4.231115000

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

The test device should be Dolby Vision certificated, e.g. Surface Pro 9.

codendone commented 8 months ago

Thanks for reporting this. In UWP, MediaPlayer automatically figures out whether it can/should use HDR by looking at the monitor the CoreWindow is on. There is no CoreWindow in WinAppSDK apps so a different mechanism will be needed to communicate this information.

lolametro commented 5 months ago

Was this fixed in Windows App SDK 1.5? To be frank, I don't see a difference between WinUI 2 and WinUI 3 (or the Windows media player app) using a HDR10 video file on my HDR monitor.