Giter VIP home page Giter VIP logo

hxwave's Introduction

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

hxwave's People

Contributors

rappergf avatar binpuki avatar swordcube avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.