[Q] how to get a live feed of the camera in native C++ on Google Glass

Search This thread

dkottas

New member
Apr 2, 2014
1
0
We are looking for a way to get a live feed of the camera in native C++ on
Google Glass. Our plan is to setup a CameraListener that will act as a
callback for when a image is recorded.
Right now, the problem comes in the camera connection process. So far, we
have tried to set up a SurfaceTexture to use with
android::Camera::setPreviewTexture(), and android::Camera::startPreview().
The application gets a reference to the Camera successfully, but when we
call setPreviewTexture with a SurfaceTexture that has been created via
OpenGL, the application crashes.
 

EnemyOfGlaDOS

Senior Member
Nov 10, 2010
5,080
1,279
Boulder, Colorado
We are looking for a way to get a live feed of the camera in native C++ on
Google Glass. Our plan is to setup a CameraListener that will act as a
callback for when a image is recorded.
Right now, the problem comes in the camera connection process. So far, we
have tried to set up a SurfaceTexture to use with
android::Camera::setPreviewTexture(), and android::Camera::startPreview().
The application gets a reference to the Camera successfully, but when we
call setPreviewTexture with a SurfaceTexture that has been created via
OpenGL, the application crashes.

have you checked out BBQScreen?