media-player-sdk-x-wpf

Integrate VisioForge Media Player SDK X into WPF apps with MediaPlayerCoreX.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the challenge of wiring VisioForge Media Player SDK X into a Windows WPF application so playback works reliably across platforms, including the tricky parts like engine initialization, native redist dependencies, and license/trial behavior.

Core Features & Use Cases

  • WPF playback setup for Media Player SDK X: integrate the cross-platform “X” runtime into a WPF host using MediaPlayerCoreX and the VideoView rendering surface.
  • Correct runtime boot and common failure prevention: ensures VisioForgeX.InitSDKAsync() runs once per process and helps avoid common errors such as missing native DLLs, codec/element not found, or trial expiry due to unregistered licenses.
  • Real-world media support and playback controls: supports local files and network URIs via UniversalSourceSettingsV2, including external subtitles and basic UX patterns like play/pause/stop, seeking, looping, and live stream selection (video/audio stream switching).

Quick Start

Use the skill to add the pinned NuGet wrapper and Windows x64 redist packages, then create a WPF MainWindow that calls await VisioForgeX.InitSDKAsync() and uses MediaPlayerCoreX with a UniversalSourceSettingsV2.CreateAsync(new Uri("...")) URI to open and play your media.

Frequently Asked Questions about media-player-sdk-x-wpf

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

FAQPage Schema
How do I integrate cross-platform video playback into a WPF application?

Integrate cross-platform video playback into a WPF application by using the MediaPlayerCoreX engine within a VideoView rendering surface. This approach supports local files, network streaming, and external subtitles via UniversalSourceSettingsV2 configuration.

Why does my GStreamer-based media player fail to find codecs or native DLLs in WPF?

GStreamer-based media playback fails to find codecs or native DLLs when the non-transitive native redist NuGet packages do not match the wrapper and RID. Reference the correct Windows x64 redist packages to resolve missing element errors.

Does the Media Player SDK X engine need to be initialized every time a video plays?

The Media Player SDK X engine does not need initialization every time a video plays. You must call VisioForgeX.InitSDKAsync exactly once per process to correctly boot the runtime and prevent common playback failures.

Can I switch between enumerated audio and video streams during network streaming in WPF?

You can switch between enumerated audio and video streams during network streaming in WPF. The MediaPlayerCoreX instance supports live stream selection, allowing dynamic switching among available audio and video tracks after opening the media.

Do I need a registered license to play local files using UniversalSourceSettingsV2?

A registered license is required to play local files using UniversalSourceSettingsV2 without interruptions. Unregistered licenses cause trial expiry errors, so proper license registration is necessary for dependable continuous media playback.

What is the best way to open and play network URIs in a WPF media player?

The best way to open and play network URIs in a WPF media player is to configure a MediaPlayerCoreX instance with UniversalSourceSettingsV2.CreateAsync, passing the network URI. After configuration, call OpenAsync followed by PlayAsync to start streaming.