Update CAPTURING.mdx
This commit is contained in:
parent
7b90f4fa70
commit
dff8fc7178
@ -85,7 +85,7 @@ Due to limitations of the React Native Bridge, this function can not be awaited.
|
||||
To stop the video recording, you can call [`stopRecording(...)`](api/classes/camera.camera-1#stoprecording):
|
||||
|
||||
```ts
|
||||
camera.current.stopRecording()
|
||||
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 [`<Video>`](https://github.com/react-native-video/react-native-video) component.
|
||||
@ -95,7 +95,7 @@ Once a recording has been stopped, the `onRecordingFinished` callback passed to
|
||||
To focus the camera to a specific point, simply use the Camera's [`focus(...)`](api/classes/camera.camera-1#focus) function:
|
||||
|
||||
```ts
|
||||
camera.current.focus({ x: tapEvent.x, y: tapEvent.y })
|
||||
await camera.current.focus({ x: tapEvent.x, y: tapEvent.y })
|
||||
```
|
||||
|
||||
The focus function expects a [`Point`](api/interfaces/point.point-1) parameter which represents the location relative to the Camera View where you want to focus the Camera to. If you use react-native-gesture-handler, this will consist of the [`x`](https://docs.swmansion.com/react-native-gesture-handler/docs/api/gesture-handlers/tap-gh#x) and [`y`](https://docs.swmansion.com/react-native-gesture-handler/docs/api/gesture-handlers/tap-gh#y) properties of the tap event payload.
|
||||
|
Loading…
Reference in New Issue
Block a user