GitHub - Richasy/mpv-winui: 基于 MPV 的 WinUI 播放器 (original) (raw)

MPV WinUI

This is a test project primarily aimed at integrating libmpv into WinUI3.

After some modifications, libmpv uses OpenGL to render content, while XAML only supports DirectX content. Therefore, the core task is to convert the OpenGL content into DirectX content required by XAML through a swapchain.

Thanks to the insights provided by this article: [WinUI 3] 如何利用 D3D11 在 SwapChainPanel 控件上绘制 OpenGL(UWP通用)

Currently, this player core is already used in the Richasy/Bili.Copilot project.