update docs

This commit is contained in:
Marc Rousavy 2021-06-07 15:09:16 +02:00
parent ac40880df0
commit 2915b176b2
2 changed files with 1 additions and 5 deletions

View File

@ -74,7 +74,7 @@ While taking snapshots is faster than taking photos, the resulting image has way
::: :::
:::note :::note
The `takeSnapshot` function also works with `photo={false}`. For this reason, **devices that do not support photo and video capture** at the same time (see ["The `supportsPhotoAndVideoCapture` prop"](/docs/guides/devices/#the-supportsphotoandvideocapture-prop)) can use `video={true}` and **fall back to snapshot capture** for photos. (See ["Taking Snapshots"](/docs/guides/capturing#taking-snapshots)) The `takeSnapshot` function also works with `photo={false}`. For this reason, devices that do not support photo and video capture at the same time (see ["The `supportsPhotoAndVideoCapture` prop"](/docs/guides/devices/#the-supportsphotoandvideocapture-prop)) can use `video={true}` and fall back to snapshot capture for photos. (See ["Taking Snapshots"](/docs/guides/capturing#taking-snapshots))
::: :::
## Recording Videos ## Recording Videos

View File

@ -125,10 +125,6 @@ function App() {
} }
``` ```
:::info
If you don't care about fast resume times you can also fully unmount the `<Camera>` view instead, which will use less memory (RAM).
:::
### The `supportsPhotoAndVideoCapture` prop ### The `supportsPhotoAndVideoCapture` prop
Camera devices provide the [`supportsPhotoAndVideoCapture` property](/docs/api/interfaces/cameradevice.cameradevice-1#supportsphotoandvideocapture) which determines whether the device supports enabling photo- and video-capture at the same time. Camera devices provide the [`supportsPhotoAndVideoCapture` property](/docs/api/interfaces/cameradevice.cameradevice-1#supportsphotoandvideocapture) which determines whether the device supports enabling photo- and video-capture at the same time.