Zoom integration with android end point

We are trying to integrate zoom SDK on anrdroid end point, but unable to access the camera as this is not a default camera but we can access the camera only in surface view mode. Can you please help us on how we can integrate the same

 

 

 

Our SDK will check the android device’s cameras by the system api. we will get the front and back cameras and usb cameras.
What’s the type of your devece’s camera? And could you provide code sample how to access the camera?

Dear Jacky Du,

Our device is a Android Endpoint, similar to Cisco / Polycom endpoint  for which we are looking to integrate ZOOM so that customers can use them out of box. You can access the camera from surface mode find below the code to do the same

 

 

 

 

 surfaceHolder = surfaceView.getHolder();
 surfaceHolder.addCallback(this);
 surfaceHolder.setType(SurfaceHolder.SURFACE\_TYPE\_PUSH\_BUFFERS);

 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
 // Now that the size is known, set up the camera parameters and begin
 // the preview.
 setCameraDisplayOrientation(MyMeetingActivity.this, getFrontCameraId(), camera);
 // mCamera.startPreview();
 }

 public void surfaceCreated(SurfaceHolder holder) {
 try {
 // open the camera
 camera = Camera.open(getFrontCameraId());
 } catch (RuntimeException e) {
 // check for exceptions
 System.err.println(e);
 return;
 }
 Camera.Parameters param;
 param = camera.getParameters();

 // modify parameter
 param.setPreviewSize(352, 288);
 camera.setParameters(param);
 try {

 // The Surface has been created, now tell the camera where to draw
 // the preview.
 camera.setPreviewDisplay(surfaceHolder);
 camera.startPreview();
 } catch (Exception e) {
 // check for exceptions
 System.err.println(e);
 return;
 }
 }

 public void surfaceDestroyed(SurfaceHolder holder) {
 // stop preview and release camera
 camera.stopPreview();
 camera.release();
 camera = null;
 }