video-capture-sdk-x-winui

Integrate VisioForge Video Capture SDK X into WinUI 3 apps for device enumeration, preview, and recording.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you integrate VisioForge Video Capture SDK X into a WinUI 3 (Windows App SDK) app so you can reliably enumerate capture devices, preview video, and record output without running into common “DLL not found” or “no element X” startup failures.

Core Features & Use Cases

  • WinUI 3 VideoView hosting for X engine: wires the cross-platform Video Capture SDK X engine to the Win2D CanvasControl used by WinUI 3.
  • Capture + record with the X API: uses VideoCaptureCoreX for webcam/IP camera/screen/NDI capture and recording to common container formats.
  • Production-ready setup guidance: covers InitSDKAsync boot, explicit NuGet redist pairing, license certificate registration, MSIX packaging behavior, and typical deployment pitfalls.
  • Verification and troubleshooting: provides a checklist for first-run behavior, codec/plugin readiness, and teardown correctness.

Quick Start

Use the video-capture-sdk-x-winui skill to set up your WinUI 3 project, add the required NuGet packages, call VisioForgeX.InitSDKAsync once on window activation, create VideoView + VideoCaptureCoreX, then start capture and (optionally) add an MP4 output using the provided sample references.

Frequently Asked Questions about video-capture-sdk-x-winui

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

FAQPage Schema
How do I integrate video capture into a WinUI 3 application?

To integrate video capture in a WinUI 3 application, you wire the VideoCaptureCoreX engine to a Win2D CanvasControl using VideoView. You must call VisioForgeX.InitSDKAsync during window activation to properly boot the SDK before enumerating devices or starting a live preview.

Why does VideoCaptureCoreX fail with startup errors in my WinUI 3 project?

VideoCaptureCoreX startup errors often occur when VisioForgeX.InitSDKAsync is not called once on window activation. Correct wrapper and redist NuGet version pinning, along with MSIX-safe packaging of native runtimes, are required to prevent DLL not found failures.

Can I use VideoCaptureCoreX with MSIX packaging in a Windows App SDK project?

Yes, VideoCaptureCoreX supports MSIX packaging in Windows App SDK projects. You must configure MSIX-safe packaging for native runtimes and pair the correct wrapper and redist NuGet versions to ensure the capture and record workflows deploy correctly.

How do I register a license certificate for the Video Capture SDK X engine?

You optionally register a license certificate for the Video Capture SDK X engine by calling SetLicenseCertificateAsync. This step is performed after the mandatory VisioForgeX.InitSDKAsync boot sequencing and before initializing VideoView and VideoCaptureCoreX for capture.

What is the best way to record MP4 output from a webcam using WinUI 3?

The best way to record MP4 output from a webcam using WinUI 3 is to initialize VideoCaptureCoreX, attach it to a WinUI VideoView, and add an MP4 output target. This cross-platform engine handles webcam, IP camera, screen, and NDI capture to common container formats.

How do I troubleshoot codec and plugin readiness during WinUI 3 video capture setup?

Troubleshoot codec and plugin readiness during WinUI 3 video capture by following a verification checklist for first-run behavior and teardown correctness. Ensure explicit NuGet redist pairing is applied so that all required codecs and native runtimes are loaded properly.