ios-videoplay

A simple haxelib for video playback on iOS HaxeFlixel.
https://github.com/Joalor64/ios-videoplay

To install, run:

haxelib install ios-videoplay 1.0.0 

See using Haxelib in Haxelib documentation for more information.

README.md

ios-videoplay

A simple haxelib for video playback on iOS HaxeFlixel.

Installation

To install ios-videoplay, follow these steps:

  1. Install the latest stable version with this command:

    haxelib install ios-videoplay

    You can also install through Git for the latest updates.

    haxelib git ios-videoplay https://github.com/Joalor64/ios-videoplay
  2. Add this code to your Project.xml:

    <haxelib name="ios-videoplay" if="ios" />

Usage Example

#if ios
import iosvideo.IOSVideo;
#end
import flixel.FlxBasic;

class VideoPlayer extends FlxBasic
{
	public var finishCallback:Void->Void = null;

	public function new(name:String)
	{
		super();

		#if ios
		IOSVideo.play('assets/videos/$name.mp4'); // the video format must be .mp4
		IOSVideo.onComplete = function()
		{
			if (finishCallback != null)
			{
				finishCallback();
			}
		}
		#end
	}
}

Licensing

ios-videoplay is made available under the MIT License. Check LICENSE for more information.

Credits

Contributors
Joalor64
Version
1.0.0
Published
7 weeks ago
Dependencies
License
MIT

All libraries are free

Every month, more than a 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

⌂