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>
-
Linux users only: Install
vlc
from your distro's package manager. -
iOS users only:
- Download the MobileVLCKit Framework and extract it.
- In your app's
.xcodeproj
file, click on the target named after your app. - Navigate to
Build Settings
and changeDebug Information Format
toDWARF
. - Go to
Build Phases/Link Binary With Libraries
, click on the plus sign at the bottom, and selectAdd Other/Add Files
. - Locate the path of the
MobileVLCKit.xcframework
where you extracted the framework and add it.
-
Well done!
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.