HypMedias

Allow video playback on Android & iOS
https://github.com/hyperfiction/HypMedias

To install, run:

haxelib install HypMedias 1.0.1 

See using Haxelib in Haxelib documentation for more information.

README.md

HypMedias

Haxe NME / OpenFL extension for Media Playback

Vidéo playback only for now, and soon recording, display image...

HypVideo:

Allow to play Videos on Android & iOS

Usage:

The usage is quite simple:

var v = HypVideo.getInstance( );
	v.addEventListener( HypVideoEvent.PLAYBACK_COMPLETE , _onHypVideo_event );
	v.addEventListener( HypVideoEvent.PLAYBACK_ERROR , _onHypVideo_event );
	v.addEventListener( HypVideoEvent.PLAYBACK_INFO , _onHypVideo_event );
	v.addEventListener( HypVideoEvent.PLAYBACK_PAUSE , _onHypVideo_event );
	v.addEventListener( HypVideoEvent.PLAYBACK_PLAY , _onHypVideo_event );
	v.addEventListener( HypVideoEvent.PLAYBACK_SEEK , _onHypVideo_event );
	v.addEventListener( HypVideoEvent.PLAYBACK_STOP , _onHypVideo_event );
	v.playRemote("VIDEOURL");

iOS setup:

Nothing to do.

Android setup:

For android you need to add the following activity to your AndroidManifest:

<!-- HypMedias -->
<activity
	android:name="fr.hyperfiction.hypmedias.HypVideoActivity"
	android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
	android:label="HypMedias"
	android:screenOrientation="landscape"
/>

Made at Hyperfiction

Developed by Johann Martinache @shoe_box

License

This work is under BSD simplified License.

Contributors
shoebox
Version
1.0.1
Published
4 years ago
License
BSD

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github