Media & video · written walkthrough

MAUI VLC Player Tutorial

How to get VLC playing MP4 and HLS streams inside a .NET MAUI app, written down so nobody else loses the weeks.

Maui-basic-VLC-Player-Tutorial · Media & video · updated Oct 1, 2025

C#0 stars0 forks
No screenshot published

A written walkthrough: the README holds the explanation, the XAML layout and the code samples rather than screenshots.

Overview

This repository is a write-up, not a codebase: the README is the whole thing. It walks through wiring LibVLCSharp into .NET MAUI — the packages, the handler registration in MauiProgram.cs, the MediaPlayer setup, and the Grid layout with a control bar over a VideoView.

The author's note is refreshingly direct: MAUI video support was still rough, it took weeks to reach a working player, and this is part one of what is meant to become a series.

What it does

The packages that actually matter

LibVLCSharp, LibVLCSharp.MAUI, plus the native VideoLAN.LibVLC builds for Android, Windows and iOS.

Handler registration

The piece most tutorials skip: mapping VideoView to VideoViewHandler in MauiProgram.cs and calling Core.Initialize().

A usable layout

A two-row Grid — volume, mute, fullscreen and title-bar toggles above a VideoView that fills the rest.

HLS, not just MP4

The sample plays an HLS test stream, which is where naive player samples usually stop working.

← Back to all 35 repositories