# LocalParticipant

* The LocalParticipant object is responsible for all the properties and methods from Participant object

## Field Summary

| Type                     | Field                                                                                          |
| ------------------------ | ---------------------------------------------------------------------------------------------- |
| ParticipantType          | The participantType represents a type of local user - full participant, viewer or broadcaster. |
| AVCaptureDevice.Position | The cameraPosition is a value indicating whether the back or front camera is currently active. |
| VideoQuality             | The videoQuality represents a video quality - low, default or high.                            |
| frameRate                | private variable with range of 10-60 to set                                                    |

## Public Method Summary

| Return type                             | Methods                                     | Description                                                                                                                    |
| --------------------------------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| void                                    | startCameraPreview() -> UIView              | Start capturing video from the camera.                                                                                         |
| LocalParticipantSnapshot                | takeSnapshot()                              | <p>return snapshot of local participant settings.</p><p><em>Note</em>: You can't read and edit snapshot object</p><p><br></p>  |
| You can't read and edit snapshot object |                                             |                                                                                                                                |
| void                                    | set(snapshot: LocalParticipantSnapshot)     | snapshot - is parameter with participant settings                                                                              |
| void                                    | set(orientation: AVCaptureVideoOrientation) | orientation - is [AVCaptureVideoOrientation](https://developer.apple.com/documentation/avfoundation/avcapturevideoorientation) |
| Int32                                   | getFrameRate()                              | fps ot translated video                                                                                                        |
| void                                    | setFrameRate(fps: Int)                      | frames to set(limited in range of 10-60)                                                                                       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-api-references/ios-swift-reference-new/localparticipant.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
