Skip to content

Commit fa111ad

Browse files
committed
docs: Add docs for Pause/Resume recording
1 parent bfa18ee commit fa111ad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/docs/guides/CAPTURING.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ await camera.current.stopRecording()
8888

8989
Once a recording has been stopped, the `onRecordingFinished` callback passed to the `startRecording` function will be invoked with a [`VideoFile`](/docs/api/interfaces/VideoFile) which you can then use to display in a [`<Video>`](https://github.com/react-native-video/react-native-video) component.
9090

91+
To pause/resume the recordings, you can use `pauseRecording()` and `resumeRecording()`:
92+
93+
```ts
94+
await camera.current.pauseRecording()
95+
...
96+
await camera.current.resumeRecording()
97+
```
98+
9199
<br />
92100

93101
#### 🚀 Next section: [Frame Processors](frame-processors)

0 commit comments

Comments
 (0)