Open skywaydave opened 8 years ago
I haven't tried this myself yet. We should definitely enhance the demo app with more use cases like this.
This is how I made it work in a Fragment:
@Override
public void onResume() {
super.onResume();
if (cameraView != null && isCapturing) {
cameraView.start();
}
}
@Override
public void onPause() {
if (cameraView != null && isCapturing)
cameraView.stop();
super.onPause();
}
The flag is manually set when calling start/stop.
Hi There,
I'm embedding the cameraview in a Fragment (within an Activity) and have run into the following exception when mCameraView.start() is called in onResume():
I'm running on a Nexus 6P with Android 6.0.
Is there a working example that illustrates how to do this?
Thanks