Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
/ extension-videoview Public archive

Native Video Support For Android Haxe Flixel

Notifications You must be signed in to change notification settings

zatrit/extension-videoview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extension-Videoview

Native Video Support For Android in Haxe Flixel using Java VideoView

Credits:

If You want to use it credit me, thank you

A code Exemple to be able to use it

#if android
import extension.videoview.VideoView;
#end
import flixel.FlxBasic;

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

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

	        #if android
                VideoView.playVideo('file:///storage/emulated/0/Videos/video.mp4');// the video can be in any format webm mkv any
                VideoView.onCompletion = function(){
		        if (finishCallback != null){
			        finishCallback();
		        }
                }
		#end
	}
}

just a little good thing you need to know this extension can run videos from the web browser too :)

TODO: more Functions for the videoview extension

About

Native Video Support For Android Haxe Flixel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages