media-blocks-sdk-net-avalonia

Integrate VisioForge Media Blocks SDK into Avalonia UI apps with cross-platform media pipelines.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the problem of integrating VisioForge Media Blocks SDK into an Avalonia app while reliably building and running custom, graph-based media pipelines across Windows, Linux, and macOS.

Core Features & Use Cases

  • Custom graph pipelines in Avalonia: Compose source, transform, and sink blocks (e.g., tees for preview + recording) and connect them into a runnable pipeline.
  • Cross-platform NuGet + native runtime setup: Apply the correct per-OS package layout (Windows redists, macOS redist, and system GStreamer on Linux) to avoid missing-native-library and “no element X” failures.
  • Operational readiness for real apps: Handle mandatory engine boot (InitSDK/DestroySDK), licensing registration via SetLicenseCertificateAsync, and common UI-thread/error-handling pitfalls in Avalonia.

Use case example: Build a single Avalonia app that previews webcam video, optionally records MP4 with audio, and transcodes or streams using a custom pipeline topology that you can modify at runtime.

Quick Start

Tell me how to wire a TeeBlock so my Avalonia preview shows live video while the same stream records to an MP4 file on Windows, Linux, and macOS.

Frequently Asked Questions about media-blocks-sdk-net-avalonia

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

FAQPage Schema
How do I build a cross-platform media pipeline in an Avalonia app?

To set up preview and recording simultaneously, you use a TeeBlock to split the video stream, routing one branch to a UI preview sink and the other to an MP4 muxer file sink. This graph-based pipeline topology runs across Windows, Linux, and macOS within your Avalonia application.

Why does my cross-platform media pipeline fail with missing native library errors on Linux?

To initialize the media pipeline engine correctly, you must call VisioForgeX.InitSDK() globally before creating pipelines and DestroySDK() on shutdown. You also need to configure per-OS NuGet packages and native runtimes, using Windows/macOS redists and system GStreamer on Linux.

How do I handle licensing for a MediaBlocksPipeline before starting video capture?

To build a cross-platform media pipeline in an Avalonia app, you construct a graph of source, transform, and sink blocks, then connect them into a runnable pipeline. This supports custom topologies for preview, recording, and streaming across Windows, Linux, and macOS.

Can I use GStreamer with Avalonia to create custom video transcoding graphs?

To avoid UI thread pitfalls in Avalonia when running media pipelines, you must manage engine initialization and error handling carefully across threads. Properly structuring the graph-based pipeline operations ensures smooth preview and recording without blocking the interface.