Code example for Camera

Methods: addCallbackBuffer

0
        if (VERBOSE) {
          Log.v("*WEBRTC*", String.format(Locale.US, "frame delivered"));
        } 
        if(ownsBuffers) {
          // Give the video buffer to the camera service again. 
          camera.addCallbackBuffer(data);
        } 
      } 
    } 
    previewBufferLock.unlock();
  } 
 
 
  public void surfaceChanged(SurfaceHolder holder,
                             int format, int width, int height) {
 
    try { 
      if(camera != null) {
        camera.setPreviewDisplay(localPreview);
      } 
    } catch (IOException e) {