video-capture-sdk-x-avalonia

Integrate VisioForge Video Capture SDK X into Avalonia UI for cross-platform capture.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you integrate VisioForge Video Capture SDK X into an Avalonia UI app so you can capture and optionally record video across Windows, Linux, and macOS from one codebase.

Core Features & Use Cases

  • Avalonia VideoView integration: wire VideoCaptureCoreX to the Avalonia VideoView control for live preview.
  • Cross-platform NuGet + native dependency setup: add the right managed packages and conditional per-OS native runtime redists (Windows/macOS) while using system GStreamer on Linux.
  • Production-like capture workflow: enumerate devices and formats, start/stop, pause/resume, snapshot grabbing, and record to common containers (e.g., MP4).

Quick Start

Tell your AI to generate a minimal Avalonia MainWindow integration that calls VisioForgeX.InitSDK() once, creates VideoCaptureCoreX on activation, enumerates devices, and starts a preview with a chosen camera format.

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

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

FAQPage Schema
How do I add cross-platform webcam capture to an Avalonia application?

You can add cross-platform webcam capture to Avalonia by integrating the Video Capture SDK X, wiring the VideoCaptureCoreX to a VideoView control for live preview while sharing a single C# codebase across Windows, macOS, and Linux.

Does Avalonia video capture work on Linux without installing native redist packages?

Video capture on Linux does not use native NuGet redists; instead, it requires the system GStreamer installation to handle native dependencies while the shared C# capture codebase remains identical across platforms.

How do I enumerate cameras and start video preview in an Avalonia UI?

To enumerate cameras and start video preview in Avalonia, call VisioForgeX.InitSDK() once during startup, create VideoCaptureCoreX on window activation, enumerate available devices and formats, then start the preview on the chosen camera.

Can I record IP camera and NDI streams to MP4 using a single cross-platform C# codebase?

You can record IP camera, NDI, and webcam streams to MP4 containers using a single cross-platform C# codebase by applying the Video Capture SDK X to handle capture and optional recording across desktop operating systems.

Why does my Avalonia camera capture initialization fail when calling device enumeration?

Avalonia camera capture initialization fails if VisioForgeX.InitSDK() is not called before device enumeration, or if the required conditional per-OS native runtime packages and correct Avalonia host wiring are missing.

What is the best way to properly tear down video capture resources in an Avalonia app?

The best way to tear down video capture resources in Avalonia is to call StopAsync() to halt capture and then VisioForgeX.DestroySDK() during application lifecycle teardown to ensure proper cleanup.