How to put visible JSurfaceTexture or JSurface on my FMX form?


I am implementing my own camera app for Android using Delphi XE6. Recording of video files works (see my answer to Record video from camera on Android to mp4) however I would like to have a “viewfinder” for my camera.

JMediaRecorder class has method setPreviewDisplay which accepts JSurface object. How I can place this JSurface (or JSurfaceTexture as an alternative) on my form?

JSurfaceTexture has method attachToGLContext, but it is unclear how o use it?

Comments are closed.