FORUMS

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

1 posts
Thanks Meter: 0
 
By dkottas, Junior Member on 2nd April 2014, 11:58 PM
Post Reply Subscribe to Thread Email Thread
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.
 
 
4th April 2014, 09:14 PM |#2  
EnemyOfGlaDOS's Avatar
Recognized Contributor
Flag Boulder, Colorado
Thanks Meter: 1,286
 
More
Quote:
Originally Posted by dkottas

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?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes