You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rn-core/local-user/introduction.mdx
+65-50Lines changed: 65 additions & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -8,76 +8,69 @@ tags:
8
8
- self
9
9
---
10
10
11
-
# Introduction - Local User
12
11
13
-
The local user has the methods and properties on the local user media controls.
14
-
Accessible via `self` key within the `meeting` object, the local user also
15
-
contains the access control (permissions) and theming-related properties that
16
-
will help to render the meeting state.
12
+
# Introduction
13
+
14
+
Accessible via `self` key within the `meeting` object, the local user object consists of all the information related to the current participant and methods to configure media and other states.
17
15
18
16
## Properties
19
17
20
18
Here is a list of properties that local user provides:
21
19
22
-
-`id`: The ID of the participant pertaining to local user.
23
-
-`userId`: The User ID of the participant pertaining to local user.
20
+
**Metadata**
21
+
22
+
-`userId`: User ID of the local user.
23
+
-`customParticipantId`: Identifier provided by the developer while adding the
24
+
participant.
24
25
-`organizationId`: The ID of the organization the meeting is created from.
25
26
-`name`: Contains Name of the local user.
26
-
-`isPinned`: A boolean value indicating if the local user is pinned or not.
27
-
-`supportsRemoteControl`: A boolean value indicating if the meeting can
28
-
supports remote control.
29
-
-`device`: Information like browser and OS details.
30
27
-`picture`: Display picture URL for the local user.
31
-
-`waitlistStatus`: Indicates if the local user has been waitlisted or not. It
32
-
can take the following values: `accepted` | `waiting` | `rejected` | `none`;
33
-
-`clientSpecificId`: Identifier provided by the developer while adding the
34
-
participant.
35
-
-`roomJoined`: A boolean value indicating if the local user has joined the
36
-
meeting.
37
-
-`roomState`: Indicates the state of the user in the meeting. It
38
-
can take the following values: `init` | `joined` | `waitlisted` | `rejected` | `kicked` | `left` | `ended`;
39
-
-`permissions`: The permissions related to various capabilities within a
40
-
meeting context for the local user
28
+
-`permissions`: The permissions related to various capabilities for the local user defined by the preset
29
+
30
+
**Media**:
31
+
41
32
-`mediaPermissions`: The current audio and video permissions given by the local
42
33
user.
43
34
-`audioTrack`: The audio track for the local user.
44
-
-`rawAudioTrack`: The audio track for the local user without any middleware applied on it.
45
35
-`videoTrack`: The video track for the local user.
46
-
-`rawVideoTrack`: The video track for the local user without any middleware applied on it.
47
36
-`screenShareTracks`: The screen share video and audio tracks for the local
48
37
user.
49
38
-`audioEnabled`: A boolean value indicating if the audio currently enabled.
50
39
-`videoEnabled`: A boolean value indicating if the video currently enabled.
51
40
-`screenShareEnabled`: A boolean value indicating if the screen share is
52
41
currently enabled.
53
-
-`config`: The suggested theme for building the user interface.
54
-
-~~`suggestedTheme`: The suggested theme for building the user interface.~~
55
-
-~~`preview`: The local audio and video stream for the preview purpose (it will be populated after calling `enablePreview`).~~
56
-
57
-
## Change default audio / video settings
58
-
59
-
By default as soon as you join the meeting the SDK will produce your video and
60
-
audio streams. To change this behaviour use the `default` parameter
61
-
62
-
```ts {5}
63
-
const meeting =awaitDyteClient.init({
64
-
authToken,
65
-
defaults: {
66
-
audio: false, // Disable user's audio by default
67
-
video: true, // Enable user's video by default
68
-
},
69
-
});
42
+
43
+
**States**:
44
+
45
+
-`isPinned`: A <spanclassName="tag-orange">boolean</span> value indicating if the local user is pinned or not.
46
+
-`roomJoined`: A <spanclassName="tag-orange">boolean</span> value indicating if the local user is in the meeting
47
+
-`roomState`: Indicates the state of the user in the meeting. It
0 commit comments