HypMedias 1.0.1

Allow video playback on Android & iOS

Released 2013-10-20.

To install, run:

haxelib install HypMedias 1.0.1

See using Haxelib in Haxelib documentation for more information.

Maintainershoebox
Websitehttps://github.com/hyperfiction/HypMedias
Current version1.0.1
StatisticsInstalled 151 times
LicenseBSD
Tags hyperfiction, macro, openfl, playback, shoebox, video

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.