# Camera Set Preview

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-others/camera-set-preview
>
> Shows the live camera preview inside a Media Player control on the Form, to take photos or read barcodes without opening the camera full screen.

Shows the camera image inside a [Media Player](https://doc.sysdevmobile.com/kalipso/6.1/documentation/controls/type/media-player.md) control on the Form, instead of opening it full screen. Use it when you want to take a photo or read a barcode with the camera without leaving the Form.

Action available for the following operating systems:

![OS Supported: Android, iOS, Win](https://doc.sysdevmobile.com/kalipso/assets/images/05_Supported_OS_android_ios_windows-424599c09f0876367e13723c150134ec.png)

### Parameters

* **Preview Status** - Shows or hides the camera preview. It can be one of:
  * _Show Preview_
  * _Hide Preview_
* **Presentation Mode** - Defines how the camera image fits inside the Media Player control. It can be one of:
  * _Proportionally Fit_
  * _Proportionally Fill_
* **Media Player Control** - The [Media Player](https://doc.sysdevmobile.com/kalipso/6.1/documentation/controls/type/media-player.md) control where the camera preview is shown.
* **Allow Photos** - Defines if photos can be taken from the preview. It can be one of:
  * _Yes_
  * _No_
* **Photo X Res** \<numeric> - The width resolution of the photos.
* **Photo Y Res** \<numeric> - The height resolution of the photos.
* **Allow Barcode Scan** - Defines if barcodes can be read from the preview. It can be one of:
  * _Yes_
  * _No_
* **Barcode Scan X Res** \<numeric> - The width resolution used to read barcodes.
* **Barcode Scan Y Res** \<numeric> - The height resolution used to read barcodes.

:::info
To read barcodes with **Allow Barcode Scan** set to _Yes_:

1. Call the [Barcode Enable](https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-barcode/barcode-enable.md) action **before** Camera Set Preview.
2. Add the [Barcode Scanned](https://doc.sysdevmobile.com/kalipso/6.1/documentation/controls/events/barcode-scanned.md) event to the Form. It is triggered each time a barcode is read from the camera image shown in the Media Player control.
:::
