media-player-sdk-net-winui

Integrate VisioForge Media Player SDK .NET playback into WinUI 3 apps.

Updated May 29, 2025
One-click install
npx skills add https://github.com/visioforge/help --skill media-player-sdk-net-winui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: media-player-sdk-net-winui
Source: https://github.com/visioforge/help/tree/main/dotnet/agent-skills/media-player-sdk-net-winui
Command: npx skills add https://github.com/visioforge/help --skill media-player-sdk-net-winui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Integrating the VisioForge Media Player SDK .NET into a WinUI 3 app is error-prone, especially around VideoView wiring, NuGet/redist setup, licensing, and common deployment failures like missing native DLLs or unsupported formats.

Core Features & Use Cases

  • WinUI 3 VideoView integration: Host the SDK video output using VisioForge.Core.UI.WinUI.VideoView over a Win2D CanvasControl, with the correct WinUI hosting pattern.
  • File and stream playback: Play local files and network streams (HTTP/HTTPS/RTSP/UDP/file-based MMS) with transport controls (play/pause/resume/stop) and async operations.
  • Format coverage and reliability: Use MediaPlayerSourceMode.LAV with pinned NuGets and redist packages to reduce “filter not registered” and “codec not found” issues, plus guidance on what to do when a protocol like HLS/DASH isn’t supported.
  • Production deployment and licensing: Register licenses via SetLicenseCertificateAsync(byte[]), and avoid MSIX packaging pitfalls that can drop required native DLLs.

Quick Start

Configure a WinUI 3 desktop app to use the pinned NuGet packages for VisioForge.DotNet.MediaPlayer plus the WinUI VideoView host and redist packages, then construct VideoView(canvasControl) and MediaPlayerCore with Source_Mode = MediaPlayerSourceMode.LAV, add your stream or file to the playlist, and call PlayAsync().

Frequently Asked Questions about media-player-sdk-net-winui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I play video files and network streams in a WinUI 3 app?

Play video files and network streams in WinUI 3 by wiring a VisioForge VideoView to a Win2D CanvasControl, configuring MediaPlayerCore with LAV source mode, and calling PlayAsync with transport controls for HTTP, HTTPS, RTSP, and UDP protocols.

Why does my WinUI 3 media player throw a DLL not found error after MSIX packaging?

DLL not found errors in WinUI 3 MSIX packaging occur when native redist files are dropped during deployment; using pinned NuGet redist packages and following unpackaged deployment guidance ensures required native DLLs are included.

How do I set up the VisioForge Media Player SDK in WinUI 3 using NuGet?

Set up the VisioForge Media Player SDK in WinUI 3 by installing pinned NuGet packages for VisioForge.DotNet.MediaPlayer and the WinUI VideoView host, then constructing VideoView with a CanvasControl and initializing MediaPlayerCore.

Does the VisioForge Media Player SDK support HLS and DASH streaming in WinUI 3?

The VisioForge Media Player SDK uses MediaPlayerSourceMode.LAV for reliable format handling of local files and network streams, with specific guidance provided for handling unsupported streaming protocols like HLS and DASH.

How do I register a license for the VisioForge Media Player SDK in a WinUI 3 application?

Register a VisioForge Media Player SDK license in WinUI 3 by calling SetLicenseCertificateAsync with a byte array containing the certificate data before initializing playback operations.

What is the best way to avoid codec not found errors with WinUI 3 video playback?

Avoid codec not found errors in WinUI 3 video playback by configuring MediaPlayerSourceMode.LAV and using pinned NuGet redist packages to ensure proper filter registration and codec coverage.