media-player-sdk-x-android

Integrate VisioForge Media Player SDK X for video playback in .NET for Android apps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the problem of integrating VisioForge Media Player SDK X into a native .NET for Android app so you can reliably play media (local files and network streams) with the correct Android host control and runtime setup.

Core Features & Use Cases

  • Android native .NET for Android setup (net10.0-android): wires the cross-platform “X” engine into an Activity-based app using the Android renderer VideoViewTX.
  • Correct NuGet + AndroidDependency integration: provides the wrapper and the required Android redist along with the companion AndroidDependency project reference that contains essential Java glue classes.
  • Practical playback workflow + common failure fixes: covers permissions, license registration via SetLicenseCertificateAsync, and the most common runtime issues (missing INTERNET, AAB/ABI packaging, missing Java classes, trial expiry, and decoder fallback stutter).

Quick Start

Use the instructions to integrate the VisioForge.DotNet.MediaPlayer wrapper and the VisioForge.CrossPlatform.Core.Android redist into a new net10.0-android project, copy the AndroidDependency project next to your solution, add the required permissions, place a VideoViewTX in your layout, and call OpenAsync followed by PlayAsync from MainActivity.

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

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

FAQPage Schema
How do I play local and streaming video in a .NET Android app?

To play local and streaming video in a .NET Android app, integrate the VisioForge Media Player SDK X by adding the required NuGet packages, placing a VideoViewTX control in your layout, and calling OpenAsync followed by PlayAsync from MainActivity.

What NuGet packages and project references are required for .NET Android media playback setup?

Required .NET Android media playback setup includes pinning the VisioForge.DotNet.MediaPlayer wrapper and VisioForge.CrossPlatform.Core.Android redist versions, alongside adding the companion AndroidDependency ProjectReference for essential Java glue classes.

Why does network stream video playback fail on Android despite correct .NET code?

Network stream video playback fails on Android when AndroidManifest permissions are missing. You must explicitly declare the INTERNET permission and correctly configure AAB/ABI packaging to prevent runtime failures during stream initialization.

Does the VisioForge Media Player SDK X require a license for .NET Android video playback?

Yes, the VisioForge Media Player SDK X requires a license for .NET Android video playback. You can load it asynchronously through the SetLicenseCertificateAsync method during lifecycle-safe initialization to avoid trial expiry errors.

How do I handle Activity lifecycle initialization and teardown for Android video playback?

Handle Activity lifecycle initialization and teardown for Android video playback by using the MediaPlayerCoreX engine and VideoViewTX control, ensuring proper resource disposal and safe destruction during the Activity destruction phase to prevent memory leaks.

What causes stuttering or decoder fallback during video playback in native .NET for Android?

Stuttering or decoder fallback during video playback in native .NET for Android is typically caused by incorrect ABI packaging configurations or missing Java dependency classes from the AndroidDependency project reference required by the cross-platform engine.