From a02f378a4b0423c841f705fdc323574378cdd62c Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Mon, 7 Jun 2021 15:55:20 +0200 Subject: [PATCH] docs: Lifecycle (#182) * Add docs for Lifecycle * Update CAPTURING.mdx * move * Update DEVICES.mdx * Update FRAME_PROCESSOR_PLUGIN_LIST.mdx * f * move FP * separate focusing * fix links --- docs/docs/guides/ANIMATED.mdx | 2 +- docs/docs/guides/CAPTURING.mdx | 17 +----- docs/docs/guides/DEVICES.mdx | 33 ++---------- docs/docs/guides/FOCUSING.mdx | 25 +++++++++ docs/docs/guides/FORMATS.mdx | 2 + docs/docs/guides/FRAME_PROCESSORS.mdx | 4 ++ .../FRAME_PROCESSORS_CREATE_OVERVIEW.mdx | 4 -- .../guides/FRAME_PROCESSOR_PLUGIN_LIST.mdx | 1 + docs/docs/guides/LIFECYCLE.mdx | 54 +++++++++++++++++++ docs/sidebars.js | 2 + src/CameraDevice.ts | 2 +- src/CameraProps.ts | 2 +- 12 files changed, 95 insertions(+), 53 deletions(-) create mode 100644 docs/docs/guides/FOCUSING.mdx create mode 100644 docs/docs/guides/LIFECYCLE.mdx diff --git a/docs/docs/guides/ANIMATED.mdx b/docs/docs/guides/ANIMATED.mdx index 4d8da24..80c0509 100644 --- a/docs/docs/guides/ANIMATED.mdx +++ b/docs/docs/guides/ANIMATED.mdx @@ -91,4 +91,4 @@ The above example only demonstrates how to animate the `zoom` property. To actua
-#### 🚀 Next section: [Camera Errors](errors) +#### 🚀 Next section: [Focusing](focusing) diff --git a/docs/docs/guides/CAPTURING.mdx b/docs/docs/guides/CAPTURING.mdx index 9b78849..8143c20 100644 --- a/docs/docs/guides/CAPTURING.mdx +++ b/docs/docs/guides/CAPTURING.mdx @@ -36,7 +36,6 @@ The most important actions are: * [Taking Photos](#taking-photos) - [Taking Snapshots](#taking-snapshots) * [Recording Videos](#recording-videos) -* [Focussing](#focussing) ## Taking Photos @@ -86,7 +85,7 @@ To start a video recording you first have to enable video capture: {...props} video={true} audio={true} // <-- optional - /> +/> ``` Then, simply use the Camera's [`startRecording(...)`](../api/classes/camera.camera-1#startrecording) function: @@ -109,20 +108,6 @@ await camera.current.stopRecording() Once a recording has been stopped, the `onRecordingFinished` callback passed to the `startRecording` function will be invoked with a [`VideoFile`](../api/interfaces/videofile.videofile-1) which you can then use to display in a [`