A Haxe/OpenFL library for @:native video playback using libVLC.
- Windows (x86_64 only)
- MacOS (x86_64 and arm64 only)
- Linux
- Android (arm64, armv7a, x86, and x86_64 only)
- iOS (arm64 and simulator only)
Caution
These platforms need to be compiled using Lime targeting cpp
to work.
-
Install the library:
- Via
Haxelib
:haxelib install hxvlc
- Via
Git
for the latest updates:haxelib git hxvlc https://github.com/MAJigsaw77/hxvlc.git
- Via
-
Add this code in the project.xml file:
<section if="cpp"> <haxelib name="hxvlc" if="desktop || mobile" /> </section>
- When updating the library on Windows or MacOS and the release note indicates that libVLC has been updated, ensure to use the
-clean
option during the application build process once. This will allow proper regeneration ofplugins.dat
.
On Linux you need to install vlc
from your distro's package manager.
- Debian based distributions:
sudo apt-get install libvlc-dev libvlccore-dev vlc-bin vlc
- Arch based distributions:
sudo pacman -S vlc
- Gentoo based distributions:
sudo emerge media-video/vlc
- Check out the Samples Folder for examples on how to use this library.
hxvlc is made available under the MIT License. Check LICENSE for more information.
libVLC is released under the LGPLv2 (or later) License.
For more information, visit VideoLAN.org.