@livekit/components-js-docs 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated-docs/core/gettrackreferenceid.md +5 -1
- package/generated-docs/core/index.md +114 -110
- package/generated-docs/core/isparticipantsourcepinned.md +4 -0
- package/generated-docs/core/isparticipanttrackreferencepinned.md +16 -0
- package/generated-docs/core/mutedobserver.md +1 -4
- package/generated-docs/core/setupconnectionqualityindicator.md +1 -59
- package/generated-docs/core/setuptrackmutedindicator.md +1 -4
- package/generated-docs/core/trackreferenceid.md +9 -0
- package/generated-docs/react/audiotrackprops.md +9 -8
- package/generated-docs/react/audiotrackprops.name.md +6 -0
- package/generated-docs/react/audiotrackprops.participant.md +6 -0
- package/generated-docs/react/audiotrackprops.publication.md +6 -0
- package/generated-docs/react/audiotrackprops.source.md +7 -1
- package/generated-docs/react/audiotrackprops.trackref.md +13 -0
- package/generated-docs/react/audiovisualizerprops.md +4 -3
- package/generated-docs/react/audiovisualizerprops.participant.md +6 -0
- package/generated-docs/react/audiovisualizerprops.trackref.md +9 -0
- package/generated-docs/react/{carouselviewprops.children.md → carousellayoutprops.children.md} +1 -1
- package/generated-docs/react/carousellayoutprops.md +21 -0
- package/generated-docs/react/{carouselviewprops.orientation.md → carousellayoutprops.orientation.md} +1 -1
- package/generated-docs/react/{carouselviewprops.tracks.md → carousellayoutprops.tracks.md} +1 -1
- package/generated-docs/react/carouselview.md +15 -0
- package/generated-docs/react/chatprops.md +2 -2
- package/generated-docs/react/component/audiotrack.md +11 -4
- package/generated-docs/react/component/audiovisualizer.md +18 -1
- package/generated-docs/react/component/{carouselview.md → carousellayout.md} +8 -4
- package/generated-docs/react/component/chattoggle.md +5 -1
- package/generated-docs/react/component/clearpinbutton.md +3 -3
- package/generated-docs/react/component/connectionqualityindicator.md +1 -1
- package/generated-docs/react/component/connectionstate.md +1 -1
- package/generated-docs/react/component/connectionstatetoast.md +2 -0
- package/generated-docs/react/component/controlbar.md +1 -1
- package/generated-docs/react/component/disconnectbutton.md +1 -1
- package/generated-docs/react/component/focuslayout.md +7 -0
- package/generated-docs/react/component/focuslayoutcontainer.md +2 -0
- package/generated-docs/react/component/focustoggle.md +14 -3
- package/generated-docs/react/component/gridlayout.md +5 -1
- package/generated-docs/react/component/livekitroom.md +1 -1
- package/generated-docs/react/component/mediadevicemenu.md +1 -1
- package/generated-docs/react/component/mediadeviceselect.md +1 -1
- package/generated-docs/react/component/participantaudiotile.md +6 -1
- package/generated-docs/react/component/participantcontextifneeded.md +11 -1
- package/generated-docs/react/component/participantloop.md +1 -1
- package/generated-docs/react/component/participantname.md +1 -1
- package/generated-docs/react/component/participanttile.md +20 -5
- package/generated-docs/react/component/prejoin.md +7 -2
- package/generated-docs/react/component/roomaudiorenderer.md +1 -1
- package/generated-docs/react/component/roomname.md +1 -1
- package/generated-docs/react/component/startaudio.md +1 -1
- package/generated-docs/react/component/toast.md +9 -1
- package/generated-docs/react/component/trackloop.md +6 -6
- package/generated-docs/react/component/trackmutedindicator.md +11 -4
- package/generated-docs/react/component/tracktoggle.md +1 -1
- package/generated-docs/react/component/videoconference.md +2 -2
- package/generated-docs/react/component/videotrack.md +12 -5
- package/generated-docs/react/focuslayoutcontainerprops.focustrack.md +6 -0
- package/generated-docs/react/focuslayoutcontainerprops.participants.md +6 -0
- package/generated-docs/react/focuslayoutprops.md +5 -4
- package/generated-docs/react/focuslayoutprops.track.md +6 -0
- package/generated-docs/react/focuslayoutprops.trackref.md +13 -0
- package/generated-docs/react/focustoggleprops.md +5 -4
- package/generated-docs/react/focustoggleprops.participant.md +6 -0
- package/generated-docs/react/focustoggleprops.trackref.md +9 -0
- package/generated-docs/react/focustoggleprops.tracksource.md +7 -1
- package/generated-docs/react/hook/usechat.md +7 -1
- package/generated-docs/react/hook/usechattoggle.md +6 -0
- package/generated-docs/react/hook/useclearpinbutton.md +2 -0
- package/generated-docs/react/hook/useconnectionqualityindicator.md +12 -59
- package/generated-docs/react/hook/usedatachannel.md +14 -1
- package/generated-docs/react/hook/usedatachannel_1.md +14 -1
- package/generated-docs/react/hook/usedisconnectbutton.md +10 -1
- package/generated-docs/react/hook/useensuretrackref.md +24 -0
- package/generated-docs/react/hook/useensuretrackreference.md +4 -0
- package/generated-docs/react/hook/usefocustoggle.md +11 -2
- package/generated-docs/react/hook/usegridlayout.md +8 -2
- package/generated-docs/react/hook/useismuted.md +10 -5
- package/generated-docs/react/hook/useismuted_1.md +29 -0
- package/generated-docs/react/hook/useisspeaking.md +9 -1
- package/generated-docs/react/hook/uselivekitroom.md +10 -1
- package/generated-docs/react/hook/uselocalparticipant.md +8 -2
- package/generated-docs/react/hook/uselocalparticipantpermissions.md +9 -1
- package/generated-docs/react/hook/usemaybetrackcontext.md +4 -0
- package/generated-docs/react/hook/usemaybetrackrefcontext.md +19 -0
- package/generated-docs/react/hook/usemediadevices.md +10 -1
- package/generated-docs/react/hook/usemediadeviceselect.md +11 -1
- package/generated-docs/react/hook/usemediatrack.md +4 -0
- package/generated-docs/react/hook/usemediatrackbyname.md +4 -0
- package/generated-docs/react/hook/useparticipants.md +15 -2
- package/generated-docs/react/hook/useparticipanttile.md +7 -1
- package/generated-docs/react/hook/usepinnedtracks.md +13 -1
- package/generated-docs/react/hook/useremoteparticipant.md +13 -1
- package/generated-docs/react/hook/useremoteparticipants.md +15 -2
- package/generated-docs/react/hook/usesortedparticipants.md +1 -1
- package/generated-docs/react/hook/usespeakingparticipants.md +8 -2
- package/generated-docs/react/hook/usetoken.md +9 -1
- package/generated-docs/react/hook/usetrack.md +31 -0
- package/generated-docs/react/hook/usetrackbyname.md +31 -0
- package/generated-docs/react/hook/usetrackcontext.md +5 -1
- package/generated-docs/react/hook/usetrackmutedindicator.md +11 -9
- package/generated-docs/react/hook/usetrackmutedindicator_1.md +29 -0
- package/generated-docs/react/hook/usetrackrefcontext.md +19 -0
- package/generated-docs/react/hook/usetracktoggle.md +10 -1
- package/generated-docs/react/hook/usevisualstableupdate.md +13 -6
- package/generated-docs/react/index.md +163 -155
- package/generated-docs/react/localuserchoices.md +2 -0
- package/generated-docs/react/meta-data.json +1 -1
- package/generated-docs/react/participanttileprops.md +8 -7
- package/generated-docs/react/participanttileprops.participant.md +6 -0
- package/generated-docs/react/participanttileprops.publication.md +6 -0
- package/generated-docs/react/participanttileprops.source.md +6 -0
- package/generated-docs/react/participanttileprops.trackref.md +13 -0
- package/generated-docs/react/prejoinprops.md +12 -11
- package/generated-docs/react/prejoinprops.showe2eeoptions.md +9 -0
- package/generated-docs/react/trackcontext.md +4 -0
- package/generated-docs/react/trackmutedindicatorprops.md +6 -5
- package/generated-docs/react/trackmutedindicatorprops.participant.md +6 -0
- package/generated-docs/react/trackmutedindicatorprops.source.md +7 -1
- package/generated-docs/react/trackmutedindicatorprops.trackref.md +9 -0
- package/generated-docs/react/trackrefcontext.md +13 -0
- package/generated-docs/react/usefocustoggleprops.md +6 -5
- package/generated-docs/react/usefocustoggleprops.participant.md +6 -0
- package/generated-docs/react/usefocustoggleprops.trackref.md +9 -0
- package/generated-docs/react/usefocustoggleprops.tracksource.md +7 -1
- package/generated-docs/react/useparticipantinfooptions.md +9 -1
- package/generated-docs/react/useparticipantpermissionsoptions.md +9 -1
- package/generated-docs/react/useparticipanttileprops.md +9 -8
- package/generated-docs/react/useparticipanttileprops.participant.md +7 -1
- package/generated-docs/react/useparticipanttileprops.publication.md +6 -0
- package/generated-docs/react/useparticipanttileprops.source.md +7 -1
- package/generated-docs/react/useparticipanttileprops.trackref.md +13 -0
- package/generated-docs/react/useremoteparticipantoptions.md +3 -3
- package/generated-docs/react/useremoteparticipantoptions.updateonlyon.md +4 -0
- package/generated-docs/react/useroominfooptions.md +13 -1
- package/generated-docs/react/usetrackmutedindicatoroptions.participant.md +6 -0
- package/generated-docs/react/usetrackoptions.element.md +9 -0
- package/generated-docs/react/usetrackoptions.md +18 -0
- package/generated-docs/react/usetrackoptions.props.md +9 -0
- package/generated-docs/react/videoconferenceprops.md +2 -2
- package/generated-docs/react/videotrackprops.md +10 -9
- package/generated-docs/react/videotrackprops.name.md +6 -0
- package/generated-docs/react/videotrackprops.participant.md +6 -0
- package/generated-docs/react/videotrackprops.publication.md +6 -0
- package/generated-docs/react/videotrackprops.source.md +7 -1
- package/generated-docs/react/videotrackprops.trackref.md +13 -0
- package/package.json +1 -1
- package/generated-docs/react/carouselviewprops.md +0 -21
- /package/generated-docs/{react → core}/messagedecoder.md +0 -0
- /package/generated-docs/{react → core}/messageencoder.md +0 -0
|
@@ -14,11 +14,12 @@ export interface AudioTrackProps<T extends HTMLMediaElement = HTMLMediaElement>
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Type
|
|
18
|
-
| -------------------------------------------------------------------------------------- |
|
|
19
|
-
| [name?](./react/audiotrackprops.name.md) | string
|
|
20
|
-
| [onSubscriptionStatusChanged?](./react/audiotrackprops.onsubscriptionstatuschanged.md) | (subscribed: boolean) => void
|
|
21
|
-
| [participant?](./react/audiotrackprops.participant.md) | Participant
|
|
22
|
-
| [publication?](./react/audiotrackprops.publication.md) | TrackPublication
|
|
23
|
-
| [source](./react/audiotrackprops.source.md)
|
|
24
|
-
| [
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| -------------------------------------------------------------------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------- |
|
|
19
|
+
| [name?](./react/audiotrackprops.name.md) | string | _(Optional)_ |
|
|
20
|
+
| [onSubscriptionStatusChanged?](./react/audiotrackprops.onsubscriptionstatuschanged.md) | (subscribed: boolean) => void | _(Optional)_ |
|
|
21
|
+
| [participant?](./react/audiotrackprops.participant.md) | Participant | _(Optional)_ |
|
|
22
|
+
| [publication?](./react/audiotrackprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
23
|
+
| [source?](./react/audiotrackprops.source.md) | Track.Source | _(Optional)_ |
|
|
24
|
+
| [trackRef?](./react/audiotrackprops.trackref.md) | [TrackReference](./core/trackreference.md) | _(Optional)_ The track reference of the track from which the audio is to be rendered. |
|
|
25
|
+
| [volume?](./react/audiotrackprops.volume.md) | number | _(Optional)_ by the default the range is between 0 and 1 |
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## AudioTrackProps.name property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This property will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
name?: string;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## AudioTrackProps.participant property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This property will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
participant?: Participant;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## AudioTrackProps.publication property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This property will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
publication?: TrackPublication;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## AudioTrackProps.source property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This property will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
|
-
source
|
|
12
|
+
source?: Track.Source;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
## AudioTrackProps.trackRef property
|
|
4
|
+
|
|
5
|
+
The track reference of the track from which the audio is to be rendered.
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
trackRef?: TrackReference;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -14,6 +14,7 @@ export interface AudioVisualizerProps extends React.HTMLAttributes<SVGElement>
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Type
|
|
18
|
-
| ----------------------------------------------------------- |
|
|
19
|
-
| [participant?](./react/audiovisualizerprops.participant.md) | Participant
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| ----------------------------------------------------------- | -------------------------------------------------------------------- | ------------ |
|
|
19
|
+
| [participant?](./react/audiovisualizerprops.participant.md) | Participant | _(Optional)_ |
|
|
20
|
+
| [trackRef?](./react/audiovisualizerprops.trackref.md) | [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md) | _(Optional)_ |
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## AudioVisualizerProps.participant property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> this property will be removed in a future version, use `trackRef` instead
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
participant?: Participant;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
## CarouselLayoutProps interface
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
export interface CarouselLayoutProps extends React.HTMLAttributes<HTMLMediaElement>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
**Extends:** React.HTMLAttributes<HTMLMediaElement>
|
|
12
|
+
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| ---------------------------------------------------------- | -------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
19
|
+
| [children](./react/carousellayoutprops.children.md) | React.ReactNode | |
|
|
20
|
+
| [orientation?](./react/carousellayoutprops.orientation.md) | 'vertical' \| 'horizontal' | _(Optional)_ Place the tiles vertically or horizontally next to each other. If undefined orientation is guessed by the dimensions of the container. |
|
|
21
|
+
| [tracks](./react/carousellayoutprops.tracks.md) | [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md)<!-- -->\[\] | |
|
package/generated-docs/react/{carouselviewprops.orientation.md → carousellayoutprops.orientation.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## CarouselLayoutProps.orientation property
|
|
4
4
|
|
|
5
5
|
Place the tiles vertically or horizontally next to each other. If undefined orientation is guessed by the dimensions of the container.
|
|
6
6
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
## CarouselView variable
|
|
4
|
+
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> Renamed to \[\[CarouselLayout\]\]
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
CarouselView: typeof CarouselLayout;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -16,6 +16,6 @@ export interface ChatProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
16
16
|
|
|
17
17
|
| Property | Type | Description |
|
|
18
18
|
| ---------------------------------------------------------- | ----------------------------------------------- | ------------ |
|
|
19
|
-
| [messageDecoder?](./react/chatprops.messagedecoder.md) | [MessageDecoder](./
|
|
20
|
-
| [messageEncoder?](./react/chatprops.messageencoder.md) | [MessageEncoder](./
|
|
19
|
+
| [messageDecoder?](./react/chatprops.messagedecoder.md) | [MessageDecoder](./core/messagedecoder.md) | _(Optional)_ |
|
|
20
|
+
| [messageEncoder?](./react/chatprops.messageencoder.md) | [MessageEncoder](./core/messageencoder.md) | _(Optional)_ |
|
|
21
21
|
| [messageFormatter?](./react/chatprops.messageformatter.md) | [MessageFormatter](./react/messageformatter.md) | _(Optional)_ |
|
|
@@ -14,7 +14,7 @@ import { AudioTrack } from '@livekit/components-react';
|
|
|
14
14
|
|
|
15
15
|
```tsx
|
|
16
16
|
<ParticipantTile>
|
|
17
|
-
<AudioTrack
|
|
17
|
+
<AudioTrack trackRef={trackRef} />
|
|
18
18
|
</ParticipantTile>
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -22,9 +22,6 @@ import { AudioTrack } from '@livekit/components-react';
|
|
|
22
22
|
|
|
23
23
|
## Properties
|
|
24
24
|
|
|
25
|
-
{% parameter name="source" type="Track.Source" optional=false %}
|
|
26
|
-
{% /parameter %}
|
|
27
|
-
|
|
28
25
|
{% parameter name="name" type="string" optional=true %}
|
|
29
26
|
_(Optional)_
|
|
30
27
|
|
|
@@ -45,6 +42,16 @@ _(Optional)_
|
|
|
45
42
|
|
|
46
43
|
{% /parameter %}
|
|
47
44
|
|
|
45
|
+
{% parameter name="source" type="Track.Source" optional=true %}
|
|
46
|
+
_(Optional)_
|
|
47
|
+
|
|
48
|
+
{% /parameter %}
|
|
49
|
+
|
|
50
|
+
{% parameter name="trackRef" type="TrackReference" optional=true %}
|
|
51
|
+
_(Optional)_ The track reference of the track from which the audio is to be rendered.
|
|
52
|
+
|
|
53
|
+
{% /parameter %}
|
|
54
|
+
|
|
48
55
|
{% parameter name="volume" type="number" optional=true %}
|
|
49
56
|
_(Optional)_ by the default the range is between 0 and 1
|
|
50
57
|
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
# AudioVisualizer
|
|
4
4
|
|
|
5
|
+
The AudioVisualizer component is used to visualize the audio volume of a given audio track.
|
|
6
|
+
|
|
5
7
|
## Import
|
|
6
8
|
|
|
7
9
|
```typescript
|
|
8
10
|
import { AudioVisualizer } from '@livekit/components-react';
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
Requires a `TrackReferenceOrPlaceholder` to be provided either as a property or via the `TrackRefContext`<!-- -->.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
<AudioVisualizer />
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
{% partial file="p_usage.md" variables={exampleCount: 1} /%}
|
|
12
24
|
|
|
13
25
|
## Properties
|
|
14
26
|
|
|
@@ -16,3 +28,8 @@ import { AudioVisualizer } from '@livekit/components-react';
|
|
|
16
28
|
_(Optional)_
|
|
17
29
|
|
|
18
30
|
{% /parameter %}
|
|
31
|
+
|
|
32
|
+
{% parameter name="trackRef" type="TrackReferenceOrPlaceholder" optional=true %}
|
|
33
|
+
_(Optional)_
|
|
34
|
+
|
|
35
|
+
{% /parameter %}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# CarouselLayout
|
|
4
4
|
|
|
5
|
-
The `CarouselLayout` displays a list of tracks
|
|
5
|
+
The `CarouselLayout` component displays a list of tracks in a scroll container. It will display as many tiles as possible and overflow the rest.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
import {
|
|
10
|
+
import { CarouselLayout } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
To ensure visual stability when tiles are reordered due to track updates, the component uses the `useVisualStableUpdate` hook.
|
|
16
|
+
|
|
13
17
|
## Usage
|
|
14
18
|
|
|
15
19
|
```tsx
|
|
16
|
-
const tracks = useTracks();
|
|
20
|
+
const tracks = useTracks([Track.Source.Camera]);
|
|
17
21
|
<CarouselLayout tracks={tracks}>
|
|
18
22
|
<ParticipantTile />
|
|
19
23
|
</CarouselLayout>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# ChatToggle
|
|
4
4
|
|
|
5
|
-
The ChatToggle component toggles the visibility of the
|
|
5
|
+
The `ChatToggle` component is a button that toggles the visibility of the `Chat` component.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -10,6 +10,10 @@ The ChatToggle component toggles the visibility of the chat component.
|
|
|
10
10
|
import { ChatToggle } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
For the component to have any effect it has to live inside a `LayoutContext` context.
|
|
16
|
+
|
|
13
17
|
## Usage
|
|
14
18
|
|
|
15
19
|
```tsx
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# ClearPinButton
|
|
4
4
|
|
|
5
|
-
The ClearPinButton is a basic html button with the added ability to signal the
|
|
5
|
+
The `ClearPinButton` is a basic html button with the added ability to signal the `LayoutContext` that it should display the grid view again.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -12,13 +12,13 @@ import { ClearPinButton } from '@livekit/components-react';
|
|
|
12
12
|
|
|
13
13
|
## Remarks
|
|
14
14
|
|
|
15
|
-
This component works only inside a
|
|
15
|
+
This component works only inside a `LayoutContext`<!-- -->.
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
19
|
```tsx
|
|
20
20
|
<LiveKitRoom>
|
|
21
|
-
<ClearPinButton>
|
|
21
|
+
<ClearPinButton>Back to grid view</ClearPinButton>
|
|
22
22
|
</LiveKitRoom>
|
|
23
23
|
```
|
|
24
24
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# ConnectionState
|
|
4
4
|
|
|
5
|
-
The ConnectionState component displays the connection status of the room
|
|
5
|
+
The `ConnectionState` component displays the connection status of the room as strings (`"connected" | "connecting" | "disconnected" | "reconnecting"`<!-- -->).
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# ControlBar
|
|
4
4
|
|
|
5
|
-
The ControlBar prefab
|
|
5
|
+
The `ControlBar` prefab gives the user the basic user interface to control their media devices (camera, microphone and screen share), open the `Chat` and leave the room.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# DisconnectButton
|
|
4
4
|
|
|
5
|
-
The DisconnectButton is a basic html button with the added ability to disconnect from a LiveKit room. Normally
|
|
5
|
+
The `DisconnectButton` is a basic html button with the added ability to disconnect from a LiveKit room. Normally this is the big red button that allows end users to leave the video or audio call.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
# FocusLayout
|
|
4
4
|
|
|
5
|
+
The `FocusLayout` component is just a light wrapper around the `ParticipantTile` to display a single participant.
|
|
6
|
+
|
|
5
7
|
## Import
|
|
6
8
|
|
|
7
9
|
```typescript
|
|
@@ -21,3 +23,8 @@ _(Optional)_
|
|
|
21
23
|
_(Optional)_
|
|
22
24
|
|
|
23
25
|
{% /parameter %}
|
|
26
|
+
|
|
27
|
+
{% parameter name="trackRef" type="TrackReferenceOrPlaceholder" optional=true %}
|
|
28
|
+
_(Optional)_ The track to display in the focus layout.
|
|
29
|
+
|
|
30
|
+
{% /parameter %}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
# FocusLayoutContainer
|
|
4
4
|
|
|
5
|
+
The `FocusLayoutContainer` is a layout component that expects two children: A small side component: In a video conference, this is usually a carousel of participants who are not in focus. And a larger main component to display the focused participant. For example, with the `FocusLayout` component.
|
|
6
|
+
|
|
5
7
|
## Import
|
|
6
8
|
|
|
7
9
|
```typescript
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# FocusToggle
|
|
4
4
|
|
|
5
|
-
The FocusToggle puts the ParticipantTile in focus or removes it from focus.
|
|
5
|
+
The `FocusToggle` puts the `ParticipantTile` in focus or removes it from focus.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -10,6 +10,10 @@ The FocusToggle puts the ParticipantTile in focus or removes it from focus.
|
|
|
10
10
|
import { FocusToggle } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
This component needs to live inside `LayoutContext` to work properly.
|
|
16
|
+
|
|
13
17
|
## Usage
|
|
14
18
|
|
|
15
19
|
```tsx
|
|
@@ -22,10 +26,17 @@ import { FocusToggle } from '@livekit/components-react';
|
|
|
22
26
|
|
|
23
27
|
## Properties
|
|
24
28
|
|
|
25
|
-
{% parameter name="
|
|
29
|
+
{% parameter name="participant" type="Participant" optional=true %}
|
|
30
|
+
_(Optional)_
|
|
31
|
+
|
|
26
32
|
{% /parameter %}
|
|
27
33
|
|
|
28
|
-
{% parameter name="
|
|
34
|
+
{% parameter name="trackRef" type="TrackReferenceOrPlaceholder" optional=true %}
|
|
35
|
+
_(Optional)_
|
|
36
|
+
|
|
37
|
+
{% /parameter %}
|
|
38
|
+
|
|
39
|
+
{% parameter name="trackSource" type="Track.Source" optional=true %}
|
|
29
40
|
_(Optional)_
|
|
30
41
|
|
|
31
42
|
{% /parameter %}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# GridLayout
|
|
4
4
|
|
|
5
|
-
The GridLayout component displays the nested participants in a grid where every participants has the same size.
|
|
5
|
+
The `GridLayout` component displays the nested participants in a grid where every participants has the same size. It also supports pagination if there are more participants than the grid can display.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -10,6 +10,10 @@ The GridLayout component displays the nested participants in a grid where every
|
|
|
10
10
|
import { GridLayout } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
To ensure visual stability when tiles are reordered due to track updates, the component uses the `useVisualStableUpdate` hook.
|
|
16
|
+
|
|
13
17
|
## Usage
|
|
14
18
|
|
|
15
19
|
```tsx
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# LiveKitRoom
|
|
4
4
|
|
|
5
|
-
The LiveKitRoom component provides the room context to all its child components. It is generally the starting point of your LiveKit app and the root of the LiveKit component tree. It provides the room state as a React context to all child components, so you don't have to pass it yourself.
|
|
5
|
+
The `LiveKitRoom` component provides the room context to all its child components. It is generally the starting point of your LiveKit app and the root of the LiveKit component tree. It provides the room state as a React context to all child components, so you don't have to pass it yourself.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# MediaDeviceMenu
|
|
4
4
|
|
|
5
|
-
The MediaDeviceMenu
|
|
5
|
+
The `MediaDeviceMenu` component is a button that opens a menu that lists all media devices and allows the user to select them.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# MediaDeviceSelect
|
|
4
4
|
|
|
5
|
-
The MediaDeviceSelect list all media devices of one kind. Clicking on one of the listed devices make it the active media device.
|
|
5
|
+
The `MediaDeviceSelect` list all media devices of one kind. Clicking on one of the listed devices make it the active media device.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# ParticipantAudioTile
|
|
4
4
|
|
|
5
|
-
The ParticipantAudioTile component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the `TileLoop` or independently if a participant is passed as a property.
|
|
5
|
+
The `ParticipantAudioTile` component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the `TileLoop` or independently if a participant is passed as a property.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -44,3 +44,8 @@ _(Optional)_
|
|
|
44
44
|
_(Optional)_
|
|
45
45
|
|
|
46
46
|
{% /parameter %}
|
|
47
|
+
|
|
48
|
+
{% parameter name="trackRef" type="TrackReferenceOrPlaceholder" optional=true %}
|
|
49
|
+
_(Optional)_ The track reference to display.
|
|
50
|
+
|
|
51
|
+
{% /parameter %}
|
|
@@ -2,10 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# ParticipantContextIfNeeded
|
|
4
4
|
|
|
5
|
+
The `ParticipantContextIfNeeded` component only creates a `ParticipantContext` if there is no `ParticipantContext` already.
|
|
6
|
+
|
|
5
7
|
## Import
|
|
6
8
|
|
|
7
9
|
```typescript
|
|
8
10
|
import { ParticipantContextIfNeeded } from '@livekit/components-react';
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
<ParticipantContextIfNeeded participant={trackReference.participant}>
|
|
17
|
+
...
|
|
18
|
+
</ParticipantContextIfNeeded>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
{% partial file="p_usage.md" variables={exampleCount: 1} /%}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# ParticipantLoop
|
|
4
4
|
|
|
5
|
-
The ParticipantLoop component loops over an array of participants to create a context for every participant. This component takes exactly one child component as a template. By providing your own template as a child you have full control over the look and feel of your participant representations.
|
|
5
|
+
The `ParticipantLoop` component loops over an array of participants to create a context for every participant. This component takes exactly one child component as a template. By providing your own template as a child you have full control over the look and feel of your participant representations.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# ParticipantName
|
|
4
4
|
|
|
5
|
-
The ParticipantName component displays the name of the participant as a string within an HTML span element. If no participant name is undefined the participant identity string is displayed.
|
|
5
|
+
The `ParticipantName` component displays the name of the participant as a string within an HTML span element. If no participant name is undefined the participant identity string is displayed.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# ParticipantTile
|
|
4
4
|
|
|
5
|
-
The ParticipantTile component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the `TrackLoop` component or by
|
|
5
|
+
The `ParticipantTile` component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the `TrackLoop` component or by passing a track reference as property.
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -10,15 +10,25 @@ The ParticipantTile component is the base utility wrapper for displaying a visua
|
|
|
10
10
|
import { ParticipantTile } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
## Usage
|
|
13
|
+
## Usage Example 1
|
|
14
|
+
|
|
15
|
+
Using the `ParticipantTile` component with a track reference:
|
|
14
16
|
|
|
15
17
|
```tsx
|
|
16
|
-
<ParticipantTile
|
|
18
|
+
<ParticipantTile trackRef={trackRef} />
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage Example 2
|
|
22
|
+
|
|
23
|
+
Using the `ParticipantTile` component as a child of the `TrackLoop` component:
|
|
17
24
|
|
|
18
|
-
|
|
25
|
+
```tsx
|
|
26
|
+
<TrackLoop>
|
|
27
|
+
<ParticipantTile />
|
|
28
|
+
</TrackLoop>
|
|
19
29
|
```
|
|
20
30
|
|
|
21
|
-
{% partial file="p_usage.md" variables={exampleCount:
|
|
31
|
+
{% partial file="p_usage.md" variables={exampleCount: 2} /%}
|
|
22
32
|
|
|
23
33
|
## Properties
|
|
24
34
|
|
|
@@ -46,3 +56,8 @@ _(Optional)_
|
|
|
46
56
|
_(Optional)_
|
|
47
57
|
|
|
48
58
|
{% /parameter %}
|
|
59
|
+
|
|
60
|
+
{% parameter name="trackRef" type="TrackReferenceOrPlaceholder" optional=true %}
|
|
61
|
+
_(Optional)_ The track reference to display.
|
|
62
|
+
|
|
63
|
+
{% /parameter %}
|