add actual image and video request calls to readme

pull/1/head
Dylan McIntyre 8 years ago
parent 99b18120c9
commit a1e78eecde
  1. 10
      README.md

@ -160,6 +160,8 @@ camera.setCameraListener(new CameraListener() {
Bitmap result = BitmapFactory.decodeByteArray(picture, 0, picture.length); Bitmap result = BitmapFactory.decodeByteArray(picture, 0, picture.length);
} }
}); });
camera.takePicture();
``` ```
### Capturing Video ### Capturing Video
@ -174,6 +176,14 @@ camera.setCameraListener(new CameraListener() {
// The File parameter is an MP4 file. // The File parameter is an MP4 file.
} }
}); });
camera.startRecordingVideo();
camera.postDelayed(new Runnable() {
@Override
public void run() {
camera.stopRecordingVideo();
}
}, 2500);
``` ```
## Automatic Permissions Behavior ## Automatic Permissions Behavior

Loading…
Cancel
Save