Hi all,
I'm currently developing a libary that has realtime access to the camera preview while recording with the android mediarecorder a video. The problem is: Once the record process of the mediarecorder is started, the onPreviewFrame(byte[] data, Camera camera) event is not longer triggered.
I found a possible solution at stackoverflow but this is not working for me.
Could you please help with this problem?
Thank you!
I'm currently developing a libary that has realtime access to the camera preview while recording with the android mediarecorder a video. The problem is: Once the record process of the mediarecorder is started, the onPreviewFrame(byte[] data, Camera camera) event is not longer triggered.
I found a possible solution at stackoverflow but this is not working for me.
B4X:
public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
mCamera.setPreviewCallback(new PreviewCallback() {
public void onPreviewFrame(byte[] _data, Camera _camera) {
Log.d("onPreviewFrame-surfaceChanged",String.format("Got %d bytes of camera data", _data.length));
}
});
}
Thank you!
Last edited: