Starmapo / hxvlc

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

Home Page:https://lib.haxe.org/p/hxvlc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 needs be to compiled using Lime targeting cpp in order to work.

Instructions

  1. Install the library.

    • You can install it through Haxelib

      haxelib install hxvlc
    • Or through Git, if you want 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, 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
  4. iOS users only, you need to add the MobileVLCKit framework.

    • Download the Framework and extract it.

    • In your apps, on the .xcodeproj file click on the target named after your app.

    • Navigate to Build Settings and change Debug Information Format to DWARF.

    • After that go to Build Phases/Link Binary With Libraries and at the bottom click on the plus sign and click Add Other/Add Files.

    • Locate the path of the MobileVLCKit.xcframework were you extracted the downloaded 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 an embeddable engine for 3rd party applications and frameworks released under the LGPLv2 (or later) License. Check VideoLAN.org for more information.

About

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

https://lib.haxe.org/p/hxvlc

License:MIT License


Languages

Language:C 78.1%Language:Haxe 21.9%