From a1e78eecde1e5c8e8c02726e58c7e6516bc272e8 Mon Sep 17 00:00:00 2001 From: Dylan McIntyre Date: Sun, 22 Jan 2017 20:19:45 -0500 Subject: [PATCH] add actual image and video request calls to readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index b8b63b57..a6cf0c27 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,8 @@ camera.setCameraListener(new CameraListener() { Bitmap result = BitmapFactory.decodeByteArray(picture, 0, picture.length); } }); + +camera.takePicture(); ``` ### Capturing Video @@ -174,6 +176,14 @@ camera.setCameraListener(new CameraListener() { // The File parameter is an MP4 file. } }); + +camera.startRecordingVideo(); +camera.postDelayed(new Runnable() { + @Override + public void run() { + camera.stopRecordingVideo(); + } +}, 2500); ``` ## Automatic Permissions Behavior