I mean portable solution that will work for linux, windows, android and ios?
Thanks for the answer, but for the start this example doesn’t work on linux - so it already excludes it.
As a custom fallback for native targets you can use OpenCV bindings (Video/Camera capture IO) – hx-opencv/HighGUI.hx at master · deltaluca/hx-opencv · GitHub (obv. you need to figure out how to transfer cvbuffer to haxe realm/how to read pixel data).
OpenCV is not a videocapture library. I guess, ffmpeg
is a better fit for that (FFmpeg Devices Documentation). You need to add missing bindings to – GitHub - delahee/linc_ffmpeg: linc_ffmpeg tentative . Probably, @delahee himself would help you.