Haxe / Openfl/ Is it possible to load a video (.mp4) from the Assets file and display it in the stage?

644 Views Asked by At

Why does Haxe have such poor documentation" Why are there no examples at all?

2

There are 2 best solutions below

0
Ilir Liburn On

You can simply check libraries to see if there is something available like

https://lib.haxe.org/p/hxCodec

0
polybiusproxy On

It depends of the platform you're targeting to.

OpenFL can play videos on HTML5, however, it cannot play them natively (Windows, macOS, Linux).
For native platforms, consider searching for a library.

If you're targeting a native platform, as Ilir Liburn said, use hxCodec.
If not, check out the PlayingVideo example OpenFL provides.