Why does Haxe have such poor documentation" Why are there no examples at all?
Haxe / Openfl/ Is it possible to load a video (.mp4) from the Assets file and display it in the stage?
644 Views Asked by Heber Cooke At
2
There are 2 best solutions below
0
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.
You can simply check libraries to see if there is something available like
https://lib.haxe.org/p/hxCodec