mfkl / libvlcsharp-samples

Various samples on different platforms showcasing LibVLCSharp features
GNU Lesser General Public License v2.1
52 stars 16 forks source link

Samples for LibVLCSharp

Join the chat at https://discord.gg/3h3K3JF Build Status

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

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

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

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:

  1. Play the sound from the specified video using NAudio
  2. Extract the sound into a file using NAudio

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.