@livekit/components-js-docs 0.1.2 → 0.1.4
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/chatmessage.md +2 -0
- package/generated-docs/core/chatoptions.md +24 -0
- package/generated-docs/core/createmediadeviceobserver.md +2 -1
- package/generated-docs/core/index.md +4 -3
- package/generated-docs/core/pinstate.md +2 -0
- package/generated-docs/core/receivedchatmessage.md +2 -0
- package/generated-docs/core/roomvideoplaybackallowedobservable.md +18 -0
- package/generated-docs/core/setupchat.md +1 -5
- package/generated-docs/core/setupstartvideo.md +20 -0
- package/generated-docs/core/trackreference.md +2 -0
- package/generated-docs/core/trackreferenceorplaceholder.md +2 -0
- package/generated-docs/core/trackreferenceplaceholder.md +2 -0
- package/generated-docs/core/widgetstate.md +2 -0
- package/generated-docs/react/audiotrackprops.md +10 -10
- package/generated-docs/react/audiovisualizerprops.md +4 -4
- package/generated-docs/react/carousellayoutprops.md +5 -5
- package/generated-docs/react/chatentryprops.md +6 -6
- package/generated-docs/react/chatmessage.md +25 -0
- package/generated-docs/{core/participantclickevent.track.md → react/chatmessage.message.md} +3 -3
- package/generated-docs/react/{chatprops.messageencoder.md → chatmessage.timestamp.md} +3 -3
- package/generated-docs/react/chatprops.md +2 -4
- package/generated-docs/react/component/chat.md +0 -10
- package/generated-docs/react/component/livekitroom.md +5 -0
- package/generated-docs/react/component/mediadeviceselect.md +5 -0
- package/generated-docs/react/focuslayoutcontainerprops.md +4 -4
- package/generated-docs/react/focuslayoutprops.md +5 -5
- package/generated-docs/react/focustoggleprops.md +5 -5
- package/generated-docs/react/gridlayoutprops.md +4 -4
- package/generated-docs/react/hook/usechat.md +1 -4
- package/generated-docs/react/hook/useisencrypted.md +29 -0
- package/generated-docs/react/hook/uselivekitroom.md +3 -0
- package/generated-docs/react/hook/usemediadeviceselect.md +5 -0
- package/generated-docs/react/hook/usestartvideo.md +43 -0
- package/generated-docs/react/index.md +181 -168
- package/generated-docs/react/layoutcontextproviderprops.md +5 -5
- package/generated-docs/react/livekitroomprops.md +1 -0
- package/generated-docs/react/livekitroomprops.onencryptionerror.md +13 -0
- package/generated-docs/react/localuserchoices.md +28 -0
- package/generated-docs/react/mediadeviceselectprops.md +3 -2
- package/generated-docs/react/mediadeviceselectprops.onerror.md +13 -0
- package/generated-docs/react/messagedecoder.md +20 -0
- package/generated-docs/react/messageencoder.md +20 -0
- package/generated-docs/react/meta-data.json +1 -1
- package/generated-docs/react/participanttileprops.md +8 -8
- package/generated-docs/react/pinstate.md +20 -0
- package/generated-docs/react/prejoinprops.md +13 -13
- package/generated-docs/react/{chatprops.messagedecoder.md → receivedchatmessage.from.md} +3 -3
- package/generated-docs/react/receivedchatmessage.md +26 -0
- package/generated-docs/react/setloglevel.md +20 -0
- package/generated-docs/react/trackloopprops.md +4 -4
- package/generated-docs/react/trackmutedindicatorprops.md +6 -6
- package/generated-docs/react/trackreference.md +22 -0
- package/generated-docs/react/trackreferenceorplaceholder.md +20 -0
- package/generated-docs/react/tracktoggleprops.md +7 -7
- package/generated-docs/react/usefocustoggleprops.md +6 -6
- package/generated-docs/react/usemediadeviceselectprops.md +1 -0
- package/generated-docs/react/usemediadeviceselectprops.onerror.md +17 -0
- package/generated-docs/react/useparticipanttileprops.md +9 -9
- package/generated-docs/react/usepersistentuserchoicesoptions.md +5 -5
- package/generated-docs/react/usestartvideoprops.md +25 -0
- package/generated-docs/react/usestartvideoprops.props.md +13 -0
- package/generated-docs/react/usestartvideoprops.room.md +13 -0
- package/generated-docs/react/usetrackshookreturntype.md +1 -1
- package/generated-docs/react/usevisualstableupdateoptions.md +3 -3
- package/generated-docs/react/videoconferenceprops.md +2 -2
- package/generated-docs/react/videotrackprops.md +10 -10
- package/generated-docs/react/widgetstate.md +21 -0
- package/package.json +2 -2
- package/generated-docs/core/istrackreference.md +0 -16
- package/generated-docs/core/participantclickevent.md +0 -23
- package/generated-docs/core/participantclickevent.participant.md +0 -13
|
@@ -19,8 +19,8 @@ export interface LayoutContextProviderProps
|
|
|
19
19
|
|
|
20
20
|
## Properties
|
|
21
21
|
|
|
22
|
-
| Property | Type
|
|
23
|
-
| ----------------------------------------------------------------------- |
|
|
24
|
-
| [onPinChange?](./react/layoutcontextproviderprops.onpinchange.md) | (state: [PinState](./
|
|
25
|
-
| [onWidgetChange?](./react/layoutcontextproviderprops.onwidgetchange.md) | (state: [WidgetState](./
|
|
26
|
-
| [value?](./react/layoutcontextproviderprops.value.md) | [LayoutContextType](./react/layoutcontexttype.md)
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| ----------------------------------------------------------------------- | ----------------------------------------------------------------- | ------------ |
|
|
24
|
+
| [onPinChange?](./react/layoutcontextproviderprops.onpinchange.md) | (state: [PinState](./react/pinstate.md)<!-- -->) => void | _(Optional)_ |
|
|
25
|
+
| [onWidgetChange?](./react/layoutcontextproviderprops.onwidgetchange.md) | (state: [WidgetState](./react/widgetstate.md)<!-- -->) => void | _(Optional)_ |
|
|
26
|
+
| [value?](./react/layoutcontextproviderprops.value.md) | [LayoutContextType](./react/layoutcontexttype.md) | _(Optional)_ |
|
|
@@ -28,6 +28,7 @@ export interface LiveKitRoomProps extends Omit<React.HTMLAttributes<HTMLDivEleme
|
|
|
28
28
|
| [connectOptions?](./react/livekitroomprops.connectoptions.md) | RoomConnectOptions | _(Optional)_ Define options how to connect to the LiveKit server. |
|
|
29
29
|
| [onConnected?](./react/livekitroomprops.onconnected.md) | () => void | _(Optional)_ |
|
|
30
30
|
| [onDisconnected?](./react/livekitroomprops.ondisconnected.md) | () => void | _(Optional)_ |
|
|
31
|
+
| [onEncryptionError?](./react/livekitroomprops.onencryptionerror.md) | (error: Error) => void | _(Optional)_ |
|
|
31
32
|
| [onError?](./react/livekitroomprops.onerror.md) | (error: Error) => void | _(Optional)_ |
|
|
32
33
|
| [onMediaDeviceFailure?](./react/livekitroomprops.onmediadevicefailure.md) | (failure?: MediaDeviceFailure) => void | _(Optional)_ |
|
|
33
34
|
| [options?](./react/livekitroomprops.options.md) | RoomOptions | _(Optional)_ Options for when creating a new room. When you pass your own room instance to this component, these options have no effect. Instead, set the options directly in the room instance. |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.onEncryptionError property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# LiveKitRoomProps.onEncryptionError property
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
onEncryptionError?: (error: Error) => void;
|
|
13
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "LocalUserChoices type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/persistent-storage/user-choices.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# LocalUserChoices type
|
|
11
|
+
|
|
12
|
+
Represents the user's choices for video and audio input devices, as well as their username.
|
|
13
|
+
|
|
14
|
+
**Signature:**
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
export type LocalUserChoices = {
|
|
18
|
+
videoEnabled: boolean;
|
|
19
|
+
audioEnabled: boolean;
|
|
20
|
+
videoDeviceId: string;
|
|
21
|
+
audioDeviceId: string;
|
|
22
|
+
username: string;
|
|
23
|
+
e2ee: boolean;
|
|
24
|
+
sharedPassphrase: string;
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
export interface MediaDeviceSelectProps extends React.HTMLAttributes<HTMLUListElement>
|
|
15
|
+
export interface MediaDeviceSelectProps extends Omit<React.HTMLAttributes<HTMLUListElement>, 'onError'>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
**Extends:** React.HTMLAttributes<HTMLUListElement>
|
|
18
|
+
**Extends:** Omit<React.HTMLAttributes<HTMLUListElement>, 'onError'>
|
|
19
19
|
|
|
20
20
|
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
21
21
|
|
|
@@ -29,5 +29,6 @@ export interface MediaDeviceSelectProps extends React.HTMLAttributes<HTMLUListEl
|
|
|
29
29
|
| [onActiveDeviceChange?](./react/mediadeviceselectprops.onactivedevicechange.md) | (deviceId: string) => void | _(Optional)_ |
|
|
30
30
|
| [onDeviceListChange?](./react/mediadeviceselectprops.ondevicelistchange.md) | (devices: MediaDeviceInfo\[\]) => void | _(Optional)_ |
|
|
31
31
|
| [onDeviceSelectError?](./react/mediadeviceselectprops.ondeviceselecterror.md) | (e: Error) => void | _(Optional)_ |
|
|
32
|
+
| [onError?](./react/mediadeviceselectprops.onerror.md) | (e: Error) => void | _(Optional)_ |
|
|
32
33
|
| [requestPermissions?](./react/mediadeviceselectprops.requestpermissions.md) | boolean | _(Optional)_ this will call getUserMedia if the permissions are not yet given to enumerate the devices with device labels. in some browsers multiple calls to getUserMedia result in multiple permission prompts. It's generally advised only flip this to true, once a (preview) track has been acquired successfully with the appropriate permissions. |
|
|
33
34
|
| [track?](./react/mediadeviceselectprops.track.md) | LocalAudioTrack \| LocalVideoTrack | _(Optional)_ |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "MediaDeviceSelectProps.onError property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# MediaDeviceSelectProps.onError property
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
onError?: (e: Error) => void;
|
|
13
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "MessageDecoder type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/components/chat.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# MessageDecoder type
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type MessageDecoder = (message: Uint8Array) => ReceivedChatMessage;
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**References:** [ReceivedChatMessage](./react/receivedchatmessage.md)
|
|
19
|
+
|
|
20
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "MessageEncoder type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/components/chat.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# MessageEncoder type
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type MessageEncoder = (message: ChatMessage) => Uint8Array;
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**References:** [ChatMessage](./react/chatmessage.md)
|
|
19
|
+
|
|
20
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"components":[{"filename":"audioconference.md","title":"AudioConference"},{"filename":"audiotrack.md","title":"AudioTrack"},{"filename":"audiovisualizer.md","title":"AudioVisualizer"},{"filename":"carousellayout.md","title":"CarouselLayout"},{"filename":"chat.md","title":"Chat"},{"filename":"chatentry.md","title":"ChatEntry"},{"filename":"chattoggle.md","title":"ChatToggle"},{"filename":"clearpinbutton.md","title":"ClearPinButton"},{"filename":"connectionqualityindicator.md","title":"ConnectionQualityIndicator"},{"filename":"connectionstate.md","title":"ConnectionState"},{"filename":"connectionstatetoast.md","title":"ConnectionStateToast"},{"filename":"controlbar.md","title":"ControlBar"},{"filename":"disconnectbutton.md","title":"DisconnectButton"},{"filename":"focuslayout.md","title":"FocusLayout"},{"filename":"focuslayoutcontainer.md","title":"FocusLayoutContainer"},{"filename":"focustoggle.md","title":"FocusToggle"},{"filename":"gridlayout.md","title":"GridLayout"},{"filename":"layoutcontextprovider.md","title":"LayoutContextProvider"},{"filename":"livekitroom.md","title":"LiveKitRoom"},{"filename":"mediadevicemenu.md","title":"MediaDeviceMenu"},{"filename":"mediadeviceselect.md","title":"MediaDeviceSelect"},{"filename":"participantaudiotile.md","title":"ParticipantAudioTile"},{"filename":"participantcontextifneeded.md","title":"ParticipantContextIfNeeded"},{"filename":"participantloop.md","title":"ParticipantLoop"},{"filename":"participantname.md","title":"ParticipantName"},{"filename":"participanttile.md","title":"ParticipantTile"},{"filename":"prejoin.md","title":"PreJoin"},{"filename":"roomaudiorenderer.md","title":"RoomAudioRenderer"},{"filename":"roomname.md","title":"RoomName"},{"filename":"startaudio.md","title":"StartAudio"},{"filename":"toast.md","title":"Toast"},{"filename":"trackloop.md","title":"TrackLoop"},{"filename":"trackmutedindicator.md","title":"TrackMutedIndicator"},{"filename":"tracktoggle.md","title":"TrackToggle"},{"filename":"videoconference.md","title":"VideoConference"},{"filename":"videotrack.md","title":"VideoTrack"}],"hooks":[{"filename":"useaudioplayback.md","title":"useAudioPlayback"},{"filename":"usechat.md","title":"useChat"},{"filename":"usechattoggle.md","title":"useChatToggle"},{"filename":"useclearpinbutton.md","title":"useClearPinButton"},{"filename":"useconnectionqualityindicator.md","title":"useConnectionQualityIndicator"},{"filename":"useconnectionstate.md","title":"useConnectionState"},{"filename":"usecreatelayoutcontext.md","title":"useCreateLayoutContext"},{"filename":"usedatachannel.md","title":"useDataChannel"},{"filename":"usedatachannel_1.md","title":"useDataChannel"},{"filename":"usedisconnectbutton.md","title":"useDisconnectButton"},{"filename":"useensurecreatelayoutcontext.md","title":"useEnsureCreateLayoutContext"},{"filename":"useensurelayoutcontext.md","title":"useEnsureLayoutContext"},{"filename":"useensureparticipant.md","title":"useEnsureParticipant"},{"filename":"useensureroom.md","title":"useEnsureRoom"},{"filename":"useensuretrackref.md","title":"useEnsureTrackRef"},{"filename":"useensuretrackreference.md","title":"useEnsureTrackReference"},{"filename":"usefacingmode.md","title":"useFacingMode"},{"filename":"usefocustoggle.md","title":"useFocusToggle"},{"filename":"usegridlayout.md","title":"useGridLayout"},{"filename":"useismuted.md","title":"useIsMuted"},{"filename":"useismuted_1.md","title":"useIsMuted"},{"filename":"useisspeaking.md","title":"useIsSpeaking"},{"filename":"uselayoutcontext.md","title":"useLayoutContext"},{"filename":"uselivekitroom.md","title":"useLiveKitRoom"},{"filename":"uselocalparticipant.md","title":"useLocalParticipant"},{"filename":"uselocalparticipantpermissions.md","title":"useLocalParticipantPermissions"},{"filename":"usemaybelayoutcontext.md","title":"useMaybeLayoutContext"},{"filename":"usemaybeparticipantcontext.md","title":"useMaybeParticipantContext"},{"filename":"usemayberoomcontext.md","title":"useMaybeRoomContext"},{"filename":"usemaybetrackcontext.md","title":"useMaybeTrackContext"},{"filename":"usemaybetrackrefcontext.md","title":"useMaybeTrackRefContext"},{"filename":"usemediadevices.md","title":"useMediaDevices"},{"filename":"usemediadeviceselect.md","title":"useMediaDeviceSelect"},{"filename":"usemediatrack.md","title":"useMediaTrack"},{"filename":"usemediatrackbyname.md","title":"useMediaTrackByName"},{"filename":"usepagination.md","title":"usePagination"},{"filename":"useparticipantcontext.md","title":"useParticipantContext"},{"filename":"useparticipantinfo.md","title":"useParticipantInfo"},{"filename":"useparticipantpermissions.md","title":"useParticipantPermissions"},{"filename":"useparticipants.md","title":"useParticipants"},{"filename":"useparticipanttile.md","title":"useParticipantTile"},{"filename":"usepersistentuserchoices.md","title":"usePersistentUserChoices"},{"filename":"usepinnedtracks.md","title":"usePinnedTracks"},{"filename":"usepreviewdevice.md","title":"usePreviewDevice"},{"filename":"usepreviewtracks.md","title":"usePreviewTracks"},{"filename":"useremoteparticipant.md","title":"useRemoteParticipant"},{"filename":"useremoteparticipants.md","title":"useRemoteParticipants"},{"filename":"useroomcontext.md","title":"useRoomContext"},{"filename":"useroominfo.md","title":"useRoomInfo"},{"filename":"usesortedparticipants.md","title":"useSortedParticipants"},{"filename":"usespeakingparticipants.md","title":"useSpeakingParticipants"},{"filename":"usestartaudio.md","title":"useStartAudio"},{"filename":"useswipe.md","title":"useSwipe"},{"filename":"usetoken.md","title":"useToken"},{"filename":"usetrack.md","title":"useTrack"},{"filename":"usetrackbyname.md","title":"useTrackByName"},{"filename":"usetrackcontext.md","title":"useTrackContext"},{"filename":"usetrackmutedindicator.md","title":"useTrackMutedIndicator"},{"filename":"usetrackmutedindicator_1.md","title":"useTrackMutedIndicator"},{"filename":"usetrackrefcontext.md","title":"useTrackRefContext"},{"filename":"usetracks.md","title":"useTracks"},{"filename":"usetracktoggle.md","title":"useTrackToggle"},{"filename":"usevisualstableupdate.md","title":"useVisualStableUpdate"}]}
|
|
1
|
+
{"components":[{"filename":"audioconference.md","title":"AudioConference"},{"filename":"audiotrack.md","title":"AudioTrack"},{"filename":"audiovisualizer.md","title":"AudioVisualizer"},{"filename":"carousellayout.md","title":"CarouselLayout"},{"filename":"chat.md","title":"Chat"},{"filename":"chatentry.md","title":"ChatEntry"},{"filename":"chattoggle.md","title":"ChatToggle"},{"filename":"clearpinbutton.md","title":"ClearPinButton"},{"filename":"connectionqualityindicator.md","title":"ConnectionQualityIndicator"},{"filename":"connectionstate.md","title":"ConnectionState"},{"filename":"connectionstatetoast.md","title":"ConnectionStateToast"},{"filename":"controlbar.md","title":"ControlBar"},{"filename":"disconnectbutton.md","title":"DisconnectButton"},{"filename":"focuslayout.md","title":"FocusLayout"},{"filename":"focuslayoutcontainer.md","title":"FocusLayoutContainer"},{"filename":"focustoggle.md","title":"FocusToggle"},{"filename":"gridlayout.md","title":"GridLayout"},{"filename":"layoutcontextprovider.md","title":"LayoutContextProvider"},{"filename":"livekitroom.md","title":"LiveKitRoom"},{"filename":"mediadevicemenu.md","title":"MediaDeviceMenu"},{"filename":"mediadeviceselect.md","title":"MediaDeviceSelect"},{"filename":"participantaudiotile.md","title":"ParticipantAudioTile"},{"filename":"participantcontextifneeded.md","title":"ParticipantContextIfNeeded"},{"filename":"participantloop.md","title":"ParticipantLoop"},{"filename":"participantname.md","title":"ParticipantName"},{"filename":"participanttile.md","title":"ParticipantTile"},{"filename":"prejoin.md","title":"PreJoin"},{"filename":"roomaudiorenderer.md","title":"RoomAudioRenderer"},{"filename":"roomname.md","title":"RoomName"},{"filename":"startaudio.md","title":"StartAudio"},{"filename":"toast.md","title":"Toast"},{"filename":"trackloop.md","title":"TrackLoop"},{"filename":"trackmutedindicator.md","title":"TrackMutedIndicator"},{"filename":"tracktoggle.md","title":"TrackToggle"},{"filename":"videoconference.md","title":"VideoConference"},{"filename":"videotrack.md","title":"VideoTrack"}],"hooks":[{"filename":"useaudioplayback.md","title":"useAudioPlayback"},{"filename":"usechat.md","title":"useChat"},{"filename":"usechattoggle.md","title":"useChatToggle"},{"filename":"useclearpinbutton.md","title":"useClearPinButton"},{"filename":"useconnectionqualityindicator.md","title":"useConnectionQualityIndicator"},{"filename":"useconnectionstate.md","title":"useConnectionState"},{"filename":"usecreatelayoutcontext.md","title":"useCreateLayoutContext"},{"filename":"usedatachannel.md","title":"useDataChannel"},{"filename":"usedatachannel_1.md","title":"useDataChannel"},{"filename":"usedisconnectbutton.md","title":"useDisconnectButton"},{"filename":"useensurecreatelayoutcontext.md","title":"useEnsureCreateLayoutContext"},{"filename":"useensurelayoutcontext.md","title":"useEnsureLayoutContext"},{"filename":"useensureparticipant.md","title":"useEnsureParticipant"},{"filename":"useensureroom.md","title":"useEnsureRoom"},{"filename":"useensuretrackref.md","title":"useEnsureTrackRef"},{"filename":"useensuretrackreference.md","title":"useEnsureTrackReference"},{"filename":"usefacingmode.md","title":"useFacingMode"},{"filename":"usefocustoggle.md","title":"useFocusToggle"},{"filename":"usegridlayout.md","title":"useGridLayout"},{"filename":"useisencrypted.md","title":"useIsEncrypted"},{"filename":"useismuted.md","title":"useIsMuted"},{"filename":"useismuted_1.md","title":"useIsMuted"},{"filename":"useisspeaking.md","title":"useIsSpeaking"},{"filename":"uselayoutcontext.md","title":"useLayoutContext"},{"filename":"uselivekitroom.md","title":"useLiveKitRoom"},{"filename":"uselocalparticipant.md","title":"useLocalParticipant"},{"filename":"uselocalparticipantpermissions.md","title":"useLocalParticipantPermissions"},{"filename":"usemaybelayoutcontext.md","title":"useMaybeLayoutContext"},{"filename":"usemaybeparticipantcontext.md","title":"useMaybeParticipantContext"},{"filename":"usemayberoomcontext.md","title":"useMaybeRoomContext"},{"filename":"usemaybetrackcontext.md","title":"useMaybeTrackContext"},{"filename":"usemaybetrackrefcontext.md","title":"useMaybeTrackRefContext"},{"filename":"usemediadevices.md","title":"useMediaDevices"},{"filename":"usemediadeviceselect.md","title":"useMediaDeviceSelect"},{"filename":"usemediatrack.md","title":"useMediaTrack"},{"filename":"usemediatrackbyname.md","title":"useMediaTrackByName"},{"filename":"usepagination.md","title":"usePagination"},{"filename":"useparticipantcontext.md","title":"useParticipantContext"},{"filename":"useparticipantinfo.md","title":"useParticipantInfo"},{"filename":"useparticipantpermissions.md","title":"useParticipantPermissions"},{"filename":"useparticipants.md","title":"useParticipants"},{"filename":"useparticipanttile.md","title":"useParticipantTile"},{"filename":"usepersistentuserchoices.md","title":"usePersistentUserChoices"},{"filename":"usepinnedtracks.md","title":"usePinnedTracks"},{"filename":"usepreviewdevice.md","title":"usePreviewDevice"},{"filename":"usepreviewtracks.md","title":"usePreviewTracks"},{"filename":"useremoteparticipant.md","title":"useRemoteParticipant"},{"filename":"useremoteparticipants.md","title":"useRemoteParticipants"},{"filename":"useroomcontext.md","title":"useRoomContext"},{"filename":"useroominfo.md","title":"useRoomInfo"},{"filename":"usesortedparticipants.md","title":"useSortedParticipants"},{"filename":"usespeakingparticipants.md","title":"useSpeakingParticipants"},{"filename":"usestartaudio.md","title":"useStartAudio"},{"filename":"usestartvideo.md","title":"useStartVideo"},{"filename":"useswipe.md","title":"useSwipe"},{"filename":"usetoken.md","title":"useToken"},{"filename":"usetrack.md","title":"useTrack"},{"filename":"usetrackbyname.md","title":"useTrackByName"},{"filename":"usetrackcontext.md","title":"useTrackContext"},{"filename":"usetrackmutedindicator.md","title":"useTrackMutedIndicator"},{"filename":"usetrackmutedindicator_1.md","title":"useTrackMutedIndicator"},{"filename":"usetrackrefcontext.md","title":"useTrackRefContext"},{"filename":"usetracks.md","title":"useTracks"},{"filename":"usetracktoggle.md","title":"useTrackToggle"},{"filename":"usevisualstableupdate.md","title":"useVisualStableUpdate"}]}
|
|
@@ -21,11 +21,11 @@ export interface ParticipantTileProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
21
21
|
|
|
22
22
|
## Properties
|
|
23
23
|
|
|
24
|
-
| Property | Type
|
|
25
|
-
| ------------------------------------------------------------------------------------- |
|
|
26
|
-
| [disableSpeakingIndicator?](./react/participanttileprops.disablespeakingindicator.md) | boolean
|
|
27
|
-
| [onParticipantClick?](./react/participanttileprops.onparticipantclick.md) | (event:
|
|
28
|
-
| [participant?](./react/participanttileprops.participant.md) | Participant
|
|
29
|
-
| [publication?](./react/participanttileprops.publication.md) | TrackPublication
|
|
30
|
-
| [source?](./react/participanttileprops.source.md) | Track.Source
|
|
31
|
-
| [trackRef?](./react/participanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------- |
|
|
26
|
+
| [disableSpeakingIndicator?](./react/participanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
|
|
27
|
+
| [onParticipantClick?](./react/participanttileprops.onparticipantclick.md) | (event: ParticipantClickEvent) => void | _(Optional)_ |
|
|
28
|
+
| [participant?](./react/participanttileprops.participant.md) | Participant | _(Optional)_ |
|
|
29
|
+
| [publication?](./react/participanttileprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
30
|
+
| [source?](./react/participanttileprops.source.md) | Track.Source | _(Optional)_ |
|
|
31
|
+
| [trackRef?](./react/participanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "PinState type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/types.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# PinState type
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type PinState = TrackReferenceOrPlaceholder[];
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**References:** [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md)
|
|
19
|
+
|
|
20
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -23,16 +23,16 @@ export interface PreJoinProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
23
23
|
|
|
24
24
|
## Properties
|
|
25
25
|
|
|
26
|
-
| Property | Type
|
|
27
|
-
| ----------------------------------------------------------------- |
|
|
28
|
-
| [camLabel?](./react/prejoinprops.camlabel.md) | string
|
|
29
|
-
| [debug?](./react/prejoinprops.debug.md) | boolean
|
|
30
|
-
| [defaults?](./react/prejoinprops.defaults.md) | Partial<[LocalUserChoices](./
|
|
31
|
-
| [joinLabel?](./react/prejoinprops.joinlabel.md) | string
|
|
32
|
-
| [micLabel?](./react/prejoinprops.miclabel.md) | string
|
|
33
|
-
| [onError?](./react/prejoinprops.onerror.md) | (error: Error) => void
|
|
34
|
-
| [onSubmit?](./react/prejoinprops.onsubmit.md) | (values: [LocalUserChoices](./
|
|
35
|
-
| [onValidate?](./react/prejoinprops.onvalidate.md) | (values: [LocalUserChoices](./
|
|
36
|
-
| [persistUserChoices?](./react/prejoinprops.persistuserchoices.md) | boolean
|
|
37
|
-
| [showE2EEOptions?](./react/prejoinprops.showe2eeoptions.md) | boolean
|
|
38
|
-
| [userLabel?](./react/prejoinprops.userlabel.md) | string
|
|
26
|
+
| Property | Type | Description |
|
|
27
|
+
| ----------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
28
|
+
| [camLabel?](./react/prejoinprops.camlabel.md) | string | _(Optional)_ |
|
|
29
|
+
| [debug?](./react/prejoinprops.debug.md) | boolean | _(Optional)_ Display a debug window for your convenience. |
|
|
30
|
+
| [defaults?](./react/prejoinprops.defaults.md) | Partial<[LocalUserChoices](./react/localuserchoices.md)<!-- -->> | _(Optional)_ Prefill the input form with initial values. |
|
|
31
|
+
| [joinLabel?](./react/prejoinprops.joinlabel.md) | string | _(Optional)_ |
|
|
32
|
+
| [micLabel?](./react/prejoinprops.miclabel.md) | string | _(Optional)_ |
|
|
33
|
+
| [onError?](./react/prejoinprops.onerror.md) | (error: Error) => void | _(Optional)_ |
|
|
34
|
+
| [onSubmit?](./react/prejoinprops.onsubmit.md) | (values: [LocalUserChoices](./react/localuserchoices.md)<!-- -->) => void | _(Optional)_ This function is called with the <code>LocalUserChoices</code> if validation is passed. |
|
|
35
|
+
| [onValidate?](./react/prejoinprops.onvalidate.md) | (values: [LocalUserChoices](./react/localuserchoices.md)<!-- -->) => boolean | _(Optional)_ Provide your custom validation function. Only if validation is successful the user choices are past to the onSubmit callback. |
|
|
36
|
+
| [persistUserChoices?](./react/prejoinprops.persistuserchoices.md) | boolean | _(Optional)_ If true, user choices are persisted across sessions. |
|
|
37
|
+
| [showE2EEOptions?](./react/prejoinprops.showe2eeoptions.md) | boolean | _(Optional)_ |
|
|
38
|
+
| [userLabel?](./react/prejoinprops.userlabel.md) | string | _(Optional)_ |
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
{ "title": "
|
|
2
|
+
{ "title": "ReceivedChatMessage.from property" }
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# ReceivedChatMessage.from property
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
|
|
12
|
+
from?: Participant;
|
|
13
13
|
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "ReceivedChatMessage interface",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/components/chat.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# ReceivedChatMessage interface
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface ReceivedChatMessage extends ChatMessage
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**Extends:** [ChatMessage](./react/chatmessage.md)
|
|
19
|
+
|
|
20
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
21
|
+
|
|
22
|
+
## Properties
|
|
23
|
+
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| -------------------------------------------- | ----------- | ------------ |
|
|
26
|
+
| [from?](./react/receivedchatmessage.from.md) | Participant | _(Optional)_ |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "setLogLevel",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/logger.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# setLogLevel
|
|
11
|
+
|
|
12
|
+
Set the log level for both the `@livekit/components-react` package and the `@livekit-client` package. To set the `@livekit-client` log independently, use the `liveKitClientLogLevel` prop on the `options` object.
|
|
13
|
+
|
|
14
|
+
**Signature:**
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
export declare function setLogLevel(level: LogLevel, options?: SetLogLevelOptions): void;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -19,7 +19,7 @@ export interface TrackLoopProps
|
|
|
19
19
|
|
|
20
20
|
## Properties
|
|
21
21
|
|
|
22
|
-
| Property | Type
|
|
23
|
-
| ---------------------------------------------- |
|
|
24
|
-
| [children](./react/trackloopprops.children.md) | React.ReactNode
|
|
25
|
-
| [tracks](./react/trackloopprops.tracks.md) | [TrackReference](./
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
24
|
+
| [children](./react/trackloopprops.children.md) | React.ReactNode | The template component to be used in the loop. |
|
|
25
|
+
| [tracks](./react/trackloopprops.tracks.md) | [TrackReference](./react/trackreference.md)<!-- -->\[\] \| [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md)<!-- -->\[\] | Track references to loop over. You can the use <code>useTracks()</code> hook to get TrackReferences. |
|
|
@@ -21,9 +21,9 @@ export interface TrackMutedIndicatorProps extends React.HTMLAttributes<HTMLDivEl
|
|
|
21
21
|
|
|
22
22
|
## Properties
|
|
23
23
|
|
|
24
|
-
| Property | Type
|
|
25
|
-
| --------------------------------------------------------------- |
|
|
26
|
-
| [participant?](./react/trackmutedindicatorprops.participant.md) | Participant
|
|
27
|
-
| [show?](./react/trackmutedindicatorprops.show.md) | 'always' \| 'muted' \| 'unmuted'
|
|
28
|
-
| [source?](./react/trackmutedindicatorprops.source.md) | Track.Source
|
|
29
|
-
| [trackRef?](./react/trackmutedindicatorprops.trackref.md) | [TrackReferenceOrPlaceholder](./
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| --------------------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
|
|
26
|
+
| [participant?](./react/trackmutedindicatorprops.participant.md) | Participant | _(Optional)_ |
|
|
27
|
+
| [show?](./react/trackmutedindicatorprops.show.md) | 'always' \| 'muted' \| 'unmuted' | _(Optional)_ |
|
|
28
|
+
| [source?](./react/trackmutedindicatorprops.source.md) | Track.Source | _(Optional)_ |
|
|
29
|
+
| [trackRef?](./react/trackmutedindicatorprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "TrackReference type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/track-reference/track-reference.types.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# TrackReference type
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type TrackReference = {
|
|
16
|
+
participant: Participant;
|
|
17
|
+
publication: TrackPublication;
|
|
18
|
+
source: Track.Source;
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "TrackReferenceOrPlaceholder type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/track-reference/track-reference.types.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# TrackReferenceOrPlaceholder type
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type TrackReferenceOrPlaceholder = TrackReference | TrackReferencePlaceholder;
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**References:** [TrackReference](./react/trackreference.md)
|
|
19
|
+
|
|
20
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -21,10 +21,10 @@ export interface TrackToggleProps<T extends ToggleSource> extends Omit<React.But
|
|
|
21
21
|
|
|
22
22
|
## Properties
|
|
23
23
|
|
|
24
|
-
| Property | Type
|
|
25
|
-
| ------------------------------------------------------------- |
|
|
26
|
-
| [captureOptions?](./react/tracktoggleprops.captureoptions.md) |
|
|
27
|
-
| [initialState?](./react/tracktoggleprops.initialstate.md) | boolean
|
|
28
|
-
| [onChange?](./react/tracktoggleprops.onchange.md) | (enabled: boolean) => void
|
|
29
|
-
| [showIcon?](./react/tracktoggleprops.showicon.md) | boolean
|
|
30
|
-
| [source](./react/tracktoggleprops.source.md) | T
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| ------------------------------------------------------------- | ------------------------------- | ------------ |
|
|
26
|
+
| [captureOptions?](./react/tracktoggleprops.captureoptions.md) | CaptureOptionsBySource<T> | _(Optional)_ |
|
|
27
|
+
| [initialState?](./react/tracktoggleprops.initialstate.md) | boolean | _(Optional)_ |
|
|
28
|
+
| [onChange?](./react/tracktoggleprops.onchange.md) | (enabled: boolean) => void | _(Optional)_ |
|
|
29
|
+
| [showIcon?](./react/tracktoggleprops.showicon.md) | boolean | _(Optional)_ |
|
|
30
|
+
| [source](./react/tracktoggleprops.source.md) | T | |
|
|
@@ -19,9 +19,9 @@ export interface UseFocusToggleProps
|
|
|
19
19
|
|
|
20
20
|
## Properties
|
|
21
21
|
|
|
22
|
-
| Property | Type
|
|
23
|
-
| ---------------------------------------------------------- |
|
|
24
|
-
| [participant?](./react/usefocustoggleprops.participant.md) | Participant
|
|
25
|
-
| [props](./react/usefocustoggleprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
26
|
-
| [trackRef?](./react/usefocustoggleprops.trackref.md) | [TrackReferenceOrPlaceholder](./
|
|
27
|
-
| [trackSource?](./react/usefocustoggleprops.tracksource.md) | Track.Source
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| ---------------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
|
|
24
|
+
| [participant?](./react/usefocustoggleprops.participant.md) | Participant | _(Optional)_ |
|
|
25
|
+
| [props](./react/usefocustoggleprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement> | |
|
|
26
|
+
| [trackRef?](./react/usefocustoggleprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
|
|
27
|
+
| [trackSource?](./react/usefocustoggleprops.tracksource.md) | Track.Source | _(Optional)_ |
|
|
@@ -22,6 +22,7 @@ export interface UseMediaDeviceSelectProps
|
|
|
22
22
|
| Property | Type | Description |
|
|
23
23
|
| ------------------------------------------------------------------------------ | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
24
|
| [kind](./react/usemediadeviceselectprops.kind.md) | MediaDeviceKind | |
|
|
25
|
+
| [onError?](./react/usemediadeviceselectprops.onerror.md) | (e: Error) => void | _(Optional)_ this callback gets called if an error is thrown when failing to select a device and also if a user denied permissions, eventhough the <code>requestPermissions</code> option is set to <code>true</code>. Most commonly this will emit a MediaDeviceError |
|
|
25
26
|
| [requestPermissions?](./react/usemediadeviceselectprops.requestpermissions.md) | boolean | _(Optional)_ this will call getUserMedia if the permissions are not yet given to enumerate the devices with device labels. in some browsers multiple calls to getUserMedia result in multiple permission prompts. It's generally advised only flip this to true, once a (preview) track has been acquired successfully with the appropriate permissions. |
|
|
26
27
|
| [room?](./react/usemediadeviceselectprops.room.md) | Room | _(Optional)_ |
|
|
27
28
|
| [track?](./react/usemediadeviceselectprops.track.md) | LocalAudioTrack \| LocalVideoTrack | _(Optional)_ |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "UseMediaDeviceSelectProps.onError property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# UseMediaDeviceSelectProps.onError property
|
|
8
|
+
|
|
9
|
+
this callback gets called if an error is thrown when failing to select a device and also if a user denied permissions, eventhough the `requestPermissions` option is set to `true`<!-- -->. Most commonly this will emit a MediaDeviceError
|
|
10
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
onError?: (e: Error) => void;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -21,12 +21,12 @@ export interface UseParticipantTileProps<T extends HTMLElement> extends React.HT
|
|
|
21
21
|
|
|
22
22
|
## Properties
|
|
23
23
|
|
|
24
|
-
| Property | Type
|
|
25
|
-
| ---------------------------------------------------------------------------------------- |
|
|
26
|
-
| [disableSpeakingIndicator?](./react/useparticipanttileprops.disablespeakingindicator.md) | boolean
|
|
27
|
-
| [htmlProps](./react/useparticipanttileprops.htmlprops.md) | React.HTMLAttributes<T>
|
|
28
|
-
| [onParticipantClick?](./react/useparticipanttileprops.onparticipantclick.md) | (event:
|
|
29
|
-
| [participant?](./react/useparticipanttileprops.participant.md) | Participant
|
|
30
|
-
| [publication?](./react/useparticipanttileprops.publication.md) | TrackPublication
|
|
31
|
-
| [source?](./react/useparticipanttileprops.source.md) | Track.Source
|
|
32
|
-
| [trackRef?](./react/useparticipanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------- |
|
|
26
|
+
| [disableSpeakingIndicator?](./react/useparticipanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
|
|
27
|
+
| [htmlProps](./react/useparticipanttileprops.htmlprops.md) | React.HTMLAttributes<T> | |
|
|
28
|
+
| [onParticipantClick?](./react/useparticipanttileprops.onparticipantclick.md) | (event: ParticipantClickEvent) => void | _(Optional)_ |
|
|
29
|
+
| [participant?](./react/useparticipanttileprops.participant.md) | Participant | _(Optional)_ |
|
|
30
|
+
| [publication?](./react/useparticipanttileprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
31
|
+
| [source?](./react/useparticipanttileprops.source.md) | Track.Source | _(Optional)_ |
|
|
32
|
+
| [trackRef?](./react/useparticipanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
|
|
@@ -21,8 +21,8 @@ export interface UsePersistentUserChoicesOptions
|
|
|
21
21
|
|
|
22
22
|
## Properties
|
|
23
23
|
|
|
24
|
-
| Property | Type
|
|
25
|
-
| ---------------------------------------------------------------------- |
|
|
26
|
-
| [defaults?](./react/usepersistentuserchoicesoptions.defaults.md) | Partial<[LocalUserChoices](./
|
|
27
|
-
| [preventLoad?](./react/usepersistentuserchoicesoptions.preventload.md) | boolean
|
|
28
|
-
| [preventSave?](./react/usepersistentuserchoicesoptions.preventsave.md) | boolean
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
26
|
+
| [defaults?](./react/usepersistentuserchoicesoptions.defaults.md) | Partial<[LocalUserChoices](./react/localuserchoices.md)<!-- -->> | _(Optional)_ The default value to use if reading from local storage returns no results or fails. |
|
|
27
|
+
| [preventLoad?](./react/usepersistentuserchoicesoptions.preventload.md) | boolean | _(Optional)_ Whether to prevent loading user choices from persistent storage and use <code>defaults</code> instead. |
|
|
28
|
+
| [preventSave?](./react/usepersistentuserchoicesoptions.preventsave.md) | boolean | _(Optional)_ Whether to prevent saving to persistent storage. |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "UseStartVideoProps interface",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useStartVideo.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# UseStartVideoProps interface
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface UseStartVideoProps
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
19
|
+
|
|
20
|
+
## Properties
|
|
21
|
+
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| -------------------------------------------- | --------------------------------------------------- | ------------ |
|
|
24
|
+
| [props](./react/usestartvideoprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement> | |
|
|
25
|
+
| [room?](./react/usestartvideoprops.room.md) | Room | _(Optional)_ |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "UseStartVideoProps.props property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# UseStartVideoProps.props property
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
props: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
13
|
+
```
|