libvlcsharp-samples
libvlcsharp-samples copied to clipboard
Various samples on different platforms showcasing LibVLCSharp features
Samples for LibVLCSharp
Various samples on different platforms showcasing LibVLCSharp features.
:wave: If you need custom LibVLCSharp integration or advanced samples, feel free to contact us. Commercial support is also available.
Chromecast sample
A sample demonstrating how to find and use a Chromecast in a crossplatform Xamarin.Forms app (iOS/Android). Blog post
HLS sample
A sample demonstrating how to record an HLS stream using LibVLCSharp in a .NET Core CLI Windows app. Blog post
RTSP Mosaic sample
<img src="https://mfkl.github.io/assets/mosaic-ios.png" Width="220" /> <img src="https://mfkl.github.io/assets/mosaic-android.png" Width="220" />
Short Xamarin.Forms sample demonstrating how to build a mosaic-style RTSP player (iOS/Android). Blog post
ForegroundBackground
This sample demonstrates how to deal with video playback when the app goes in the background/foreground. It shows one way to deal with this on Android with LibVLCSharp.Forms on Xamarin.Forms specifically, which is a bit trickier than other platforms.
PulseMusic
<img src="https://mfkl.github.io/assets/pulse-music-playback.gif" Width="220" />
PulseMusic is an audio player sample showcasing use of Skia and LibVLCSharp to implement great UX player view. Blog post
LibVLCSharp.PHP
A small experiment that shows how to use LibVLCSharp from PHP using the PeachPie compiler.
LibVLCSharp.VB
A VB.NET (Visual Basic) sample that uses LibVLCSharp.
Gestures
VLC 3.0 playing 8K 48fps 360 video on Android Galaxy S8
2 cross-platform gestures samples showcasing how to use the Xamarin.Forms crossplatform gestures to control the video position, volume level and 360 viewpoint. Blog post
LocalNetwork
Xamarin.Forms sample showcasing local network browsing and playback of network shares (SMB, UPnP) on Android, iOS and WPF from 100% shared code. Blog post
MediaPlayerElement

Minimal Xamarin.Forms sample to get up and running quickly with the MediaPlayerElement from LibVLCSharp.Forms. Blog post
Preview Thumbnailer
.NET Core crossplatform sample showing how to use the LibVLC 3 video callbacks API to extract frames and save them to disk with ImageSharp or Skia.
ScreenRecorder
.NET Core crossplatform (Windows, macOS, Linux) console app that records your screen for 5 seconds and saves the video as an mp4 on disk.
LVST
.NET Core crossplatform (Windows, macOS, Linux) CLI app that allows you to stream any media torrent for local or remote (chromecast) playback. Blog post

AudioCallbacks
This sample shows you how you can use SetAudioFormatCallback
and SetAudioCallbacks
. It does two things:
Speech
Speak to your video player by integrating System.Speech with LibVLC in ~ 100 lines of code.
LibVLCNugetCpp
A tiny demo to show how to download and use LibVLC from NuGet with C++ in Visual Studio.
For more samples, check out the Community Projects made with LibVLCSharp.