# Participant

## Public fields <a href="#sessionerror-publicconstructorsummary" id="sessionerror-publicconstructorsummary"></a>

| **Name**          | **Description**                                                                                                                                                                                      |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| participantId     | <ul><li>Unique identifier of a participant</li></ul>                                                                                                                                                 |
| participantName   | <ul><li>Name of participant</li></ul>                                                                                                                                                                |
| isLocal           | <ul><li>Identifies whether the participant is a local one</li></ul>                                                                                                                                  |
| stream            | <ul><li>Participant Media Stream - Read <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaStream">here</a> for more information</li></ul>                                               |
| streamConstraints | <ul><li>An object with two fields:<br>{audio: boolean, video: boolean}</li><li>Example:<br>{audio: false, video: true}. - that means a stream of participant consists only of video tracks</li></ul> |
| settings          | <ul><li>An object with two fields:<br>{mutedAudio: boolean, mutedVideo: boolean} - Those fields contain the state of the Audio and Video of the participant</li></ul>                                |

## Public method Summar <a href="#sessionerror-publicconstructorsummary" id="sessionerror-publicconstructorsummary"></a>

| Name                                                                                                                                                                                                                                                            | Description                                                                            | Parameters                                                                                                                                                          |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| enableAudio()                                                                                                                                                                                                                                                   |                                                                                        |                                                                                                                                                                     |
| disableAudio()                                                                                                                                                                                                                                                  |                                                                                        |                                                                                                                                                                     |
| enableVideo()                                                                                                                                                                                                                                                   |                                                                                        |                                                                                                                                                                     |
| disableVideo()                                                                                                                                                                                                                                                  |                                                                                        |                                                                                                                                                                     |
| isAudioEnabled()                                                                                                                                                                                                                                                |                                                                                        | <ul><li>Return boolean state of the local audio</li></ul>                                                                                                           |
| isVideoEnabled()                                                                                                                                                                                                                                                |                                                                                        | <ul><li>Return boolean state of the local video</li></ul>                                                                                                           |
| startScreenSharing(callback: Function)                                                                                                                                                                                                                          | <ul><li>The callback function will be invoked when screen sharing is started</li></ul> |                                                                                                                                                                     |
| stopScreenSharing(callback: Function)                                                                                                                                                                                                                           | <ul><li>The callback function will be invoked when screen sharing is stopped</li></ul> |                                                                                                                                                                     |
| toggleRemoteAudio(participantId: String)                                                                                                                                                                                                                        | <ul><li>Toggle remote <em>participantId</em> audio</li></ul>                           |                                                                                                                                                                     |
| toggleRemoteVideo(participantId: String)                                                                                                                                                                                                                        | <ul><li>Toggle remote <em>participantId</em> video</li></ul>                           |                                                                                                                                                                     |
| isRemoteAudioEnabled(participantId: String)                                                                                                                                                                                                                     |                                                                                        |                                                                                                                                                                     |
| isRemoteVideoEnabled(participantId: String)                                                                                                                                                                                                                     |                                                                                        |                                                                                                                                                                     |
| [setMediaQuality](https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/sscale-confluence-participant-websdk/setmediaquality) ({videoHeight: Number, videoWidth: Number, frameRate: Number}) | <ul><li>Apply constraints to video resolution and frame rate</li></ul>                 |                                                                                                                                                                     |
| publishRemoteParticipant(participantId)                                                                                                                                                                                                                         | <ul><li>Allow the remote participant to publish into the session</li></ul>             |                                                                                                                                                                     |
| disconnectRemoteParticipant(participantId, message)                                                                                                                                                                                                             | <ul><li>Disconnect the remote participant from the session</li></ul>                   | <ul><li>participantId - id of participant who will be disconnected from a session</li><li>message - optional parameter to provide a reason of kick action</li></ul> |


---

# 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/sscale-confluence-web-sdk-reference/sscale-confluence-participant-websdk.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.
