Felix K.
Felix K.

Reputation: 6281

takePicture callback data is null

Is the Camera.takePicture callback for raw data null when running in emulator environment? I got the CameraSurface method out of the WWW, so it should be correct.

Upvotes: 2

Views: 2067

Answers (2)

Vajk Hermecz
Vajk Hermecz

Reputation: 5702

Before calling takePicture you have to provide a buffer large enough to hold the raw image data. (detailed here). For setting the buffer, use the addCallbackBuffer method.

Upvotes: 3

Felix K.
Felix K.

Reputation: 6281

This issue seems to be related to the raw-data callback only. Using the picture callback which retrieves a jpeg solves the issue.

Upvotes: 1

Related Questions