Skip to content

mfkl/vlc-unity

 
 

Repository files navigation

VLC for Unity

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

This repository contains the native Unity plugin that bridges LibVLCSharp with LibVLC for performance oriented video rendering in Unity3D applications and games. Available on the Unity Store.

LibVLC Features

Given that this plugin is using LibVLCSharp (which uses LibVLC), it exposes more or less the same feature set and same codecs support than VLC, such as:

  • Play every media file formats, every codec and every streaming protocols
  • Run on every platform, from desktop (Windows, Linux, Mac) to mobile (Android, iOS) and TVs
  • Hardware and efficient decoding on every platform, up to 8K
  • Network browsing for distant filesystems (SMB, FTP, SFTP, NFS...) and servers (UPnP, DLNA)
  • Playback of Audio CD, DVD and Bluray with menu navigation
  • Support for HDR, including tonemapping for SDR streams
  • Audio passthrough with SPDIF and HDMI, including for Audio HD codecs, like DD+, TrueHD or DTS-HD
  • Support for video and audio filters
  • Support for 360 video and 3D audio playback, including Ambisonics
  • Able to cast and stream to distant renderers, like Chromecast and UPnP renderers.

And more.

Supported platforms

  • Windows Classic x64

Installation

The recommended way to install the VLC for Unity plugin is through the Unity Store. This also ensures you get commercial support with your build.

Platform Unity Store Asset
Windows VLCUnityWindowsBadge

Getting started

There is a quick documentation.txt file included in the package. It gives some context and high level overview of how things work and how to get started.

Since this Unity plugin largely shares the same API than LibVLCSharp, most LibVLCSharp samples and documentation apply, do check those out!

Documentation

See the LibVLCSharp documentation.

It includes best practices, Q&A guide, libvlc specific information and tutorials.

Support

Support is done on a volunteer base, professional support is only available for paying customers.

StackOverflow

We regularly monitor the stackoverflow-libvlcsharp and stackoverflow-vlc-unity tags on StackOverflow.

Sample scenes

Several Unity sample scenes are available to help you get started quickly!

More LibVLCSharp samples can be found here.

Roadmap

Platforms support

  • Android (prototype working),
  • macOS, iOS, tvOS,
  • UWP,
  • Linux.

Graphics APIs

  • OpenGL ES,
  • OpenGL,
  • Metal.

Other improvements

  • Provide various easy to use, ready-to-run samples and improved documentation.
  • Provide in-Editor MediaPlayer customization, so you can customize LibVLC and playback parameters directly from the Unity Editor.

Release Notes

Check out the NEWS file for details about each release.

Building

Windows

  • Download and install https://github.com/mstorsjo/llvm-mingw on latest Debian (WSL or otherwise). Add it to path.
  • run ./get-libvlc-windows.sh to download a win64 llvm libvlc 4 build.
  • Build with
./build.sh

This will produce a VLCUnityPlugin.dll which you can use with LibVLCSharp in your Unity project

  • Extract the vlc-cache-gen.exe binary from the nightly build archive. Drag and drop the plugins folder onto it. Or just run the Unity scene with _libVLC = new LibVLC("--reset-plugins-cache");. This will produce a plugins.dat file in the plugins folder.

Debugging

Editor crash location: C:\Users\YourUserName\AppData\Local\Temp\Unity\Editor\Crashes

Code of Conduct

Please read and follow the VideoLAN CoC.

Commercial services

If you would like VLC developers to provide you with:

  • custom development on LibVLC, VLC for Unity and/or LibVLCSharp,
  • training and workshops,
  • support services,
  • consulting services,
  • other multimedia services.

Feel free to contact us.

License

Licensed under the LGPL 2.1 and prorietary license via Videolabs.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 69.0%
  • C# 17.7%
  • C 7.7%
  • Shell 4.1%
  • Makefile 1.5%