1

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?

Community
  • 1
  • 1
  • The DPF Android components should be able to help. http://sourceforge.net/projects/dpfdelphiandroid/ – FMXExpress Mar 16 '15 at 01:17
  • DPF Android components include TJDPFVIdeoView which has GetJVideoView.getHolder methods. This works perfectly for preview, however it is not exactly native Delphi way, because you have to replace classes.dex file etc. Can it be done without such tricks? – Alex Gornostayev Apr 04 '15 at 01:29
  • @AlexGornostayev Were you able to solve this? – havrlisan Jul 05 '22 at 13:02

0 Answers0