Skip to content
forked from MAJigsaw77/hxvlc

A Haxe/OpenFL library for @:native video playback using libVLC.

License

Notifications You must be signed in to change notification settings

KarimAkra/hxvlc

 
 

Repository files navigation

hxvlc

A Haxe/OpenFL library for @:native video playback using libVLC.

Supported Platforms

  • 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.

Instructions

  1. Install the library:

    • Via Haxelib:
      haxelib install hxvlc
    • Via Git for the latest updates:
      haxelib git hxvlc https://github.com/MAJigsaw77/hxvlc.git
  2. Add this code in the project.xml file:

    <section if="cpp">
    	<haxelib name="hxvlc" if="desktop || mobile" />
    </section>
  3. Linux users only: 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
  4. 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 change Debug Information Format to DWARF.
    • Go to Build Phases/Link Binary With Libraries, click on the plus sign at the bottom, and select Add Other/Add Files.
    • Locate the path of the MobileVLCKit.xcframework where you extracted the framework and add it.
  5. Well done!

Usage Examples

Check out the Samples Folder for examples on how to use this library.

Licensing

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.

About

A Haxe/OpenFL library for @:native video playback using libVLC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 75.8%
  • Haxe 24.2%