/hxWave

A multiplatform media library built with HxCodecPlus and LibVLC++ bindings, designed to seamlessly integrate with Haxe, HaxeFlixel, OpenFL, and Lime

Primary LanguageCMozilla Public License 2.0MPL-2.0

hxWave

A multiplatform media library built with HxCodecPlus and LibVLC++

designed to seamlessly integrate with Haxe, HaxeFlixel, OpenFL, and Lime

libVLC, allows hxWave to play many media codecs while streaming the data to haxe or playing directly in the window container.

Getting Started With HxWave!

1. Installing the library

Install the library by running the following Haxelib command:

haxelib git hxWave (https://github.com/RapperGF/hxWave)

2. Include the library

add it to the Project.xml file:

<haxelib name="hxWave"/>

Using HxWave

HxWave makes playing media types extremely easy!

Audio

import wave.sound.Audio;
sound = new Audio(path);
sound.play();

Video

import wave.video.Player;
container = new Player(path);
container.play();

Haxe Flixel State Playback

HxWave has a special state included on the player class allowing playback as a cutscene in haxe flixel without importing anything extra!!

FlxG.switchState(new PlayerState('assets/video.mp4'));

Extra Features!

HxWave has the ability to decode multiple formats through haxe.io Bytes.

import _backend.format.MP3;
import _backend.format.RIFF4;

HxWave also can stream natively or with its respective handles. This means libVLC is not required for all stream handles.

HxWave has the ability to play 16Bit, 24Bit or even 32Bit WAVE files.

HxWave can even playFiles in reverse!!

HxWave will expose the audio samples and bytes from channels so you can easily manipulate the data in real-time!


Supported Formats.

Currently supported formats are :

VIDEO

Format Description Stream (WEB) Stream (WINDOWS)
MP4 MPEG-4 Video
MP4V MPEG-4 Visual
M4V MPEG-4 Video
MKV Matroska Video
MOV QuickTime Video
WEBM WebM Video
F4V Flash Video
3GP 3GPP Multimedia
3G2 3GPP2 Multimedia
OGV Ogg Video
WMV Windows Media Video
AVI Audio Video Interleave

AUDIO

Format Description Stream (WEB) Native (WEB) Stream (WINDOWS) Native (WINDOWS)
OGG OGGS Header
MP3 LAME ID3
WAVE PCM RAW
RIFF PCM RIFF
FLAC FRAME SUBCHUNK
AAC ADVANCED AUDIO CODEC
AC3 ADVANCED CODEC
M4A MPEG-4 Audio
WMA Windows Media Audio