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

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



Solution 1:[1]

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

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

Solution 2:[2]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ilir Liburn
Solution 2 polybiusproxy