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.