Pergunta

I'm using the barcodescanner library from dm77 and it works just great.

Now I would like to use the front camera instead of the rear camera.

I can't find a way to do so, has anyone found a way to achieve this?

I made this work with ZXing native libraries, using Camera.open(Camera.CameraInfo.CAMERA_FACING_FRONT), but I now would like to use the other library that uses ZBar instead.

DM77's barcodescanner uses CameraUtils's getCameraInstance() to get the camera, which uses Camera.open(). I would like to change that behavior wihout having to clone and modify the original sources.

Foi útil?

Solução

Lokks like this is not possible without altering the sources.

I'll use the "raw" ZBar library or clone that dmyy's library.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top