RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.81k stars 406 forks source link

How do I get the setPreviewCallback method ? #240

Closed jack-laowang closed 6 years ago

jack-laowang commented 6 years ago

How to get a preview listen to byte[] data, Camera Camera? How do I get the setPreviewCallback method ?

dmitry-zaitsev commented 6 years ago

I just answered your question here: https://github.com/Fotoapparat/Fotoapparat/issues/239

You can get your byte array from Frame object which you will receive in FrameProcessor.