Hi, Iam trying to create a plugin using library https://github.com/Glamdring/EasyCamera. which has usage mentioned as below:
EasyCamera camera = DefaultEasyCamera.open();
CameraActions actions = camera.startPreview(surface);
PictureCallback callback = new PictureCallback() {
public void onPictureTaken(byte[] data, CameraActions actions) {
// store picture
}
};
actions.takePicture(Callbacks.create().withJpegCallback(callback));
When i convert the first line of code to net.bozho.easycamera.DefaultEasyCamera.open(1);
gives result
"net.bozho.easycamera.DefaultEasyCamera@2b74236".
Can anyone suggest me how to make use of the result and open the camera and if camera.startPreview(surface); will actually display the camera, then how to create the surface instance and pass it to startPreview method?