@livekit/components-js-docs 0.1.2 → 0.1.3

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.
Files changed (71) hide show
  1. package/generated-docs/core/chatmessage.md +2 -0
  2. package/generated-docs/core/chatoptions.md +24 -0
  3. package/generated-docs/core/createmediadeviceobserver.md +2 -1
  4. package/generated-docs/core/index.md +4 -3
  5. package/generated-docs/core/pinstate.md +2 -0
  6. package/generated-docs/core/receivedchatmessage.md +2 -0
  7. package/generated-docs/core/roomvideoplaybackallowedobservable.md +18 -0
  8. package/generated-docs/core/setupchat.md +1 -5
  9. package/generated-docs/core/setupstartvideo.md +20 -0
  10. package/generated-docs/core/trackreference.md +2 -0
  11. package/generated-docs/core/trackreferenceorplaceholder.md +2 -0
  12. package/generated-docs/core/trackreferenceplaceholder.md +2 -0
  13. package/generated-docs/core/widgetstate.md +2 -0
  14. package/generated-docs/react/audiotrackprops.md +10 -10
  15. package/generated-docs/react/audiovisualizerprops.md +4 -4
  16. package/generated-docs/react/carousellayoutprops.md +5 -5
  17. package/generated-docs/react/chatentryprops.md +6 -6
  18. package/generated-docs/react/chatmessage.md +25 -0
  19. package/generated-docs/{core/participantclickevent.track.md → react/chatmessage.message.md} +3 -3
  20. package/generated-docs/react/{chatprops.messageencoder.md → chatmessage.timestamp.md} +3 -3
  21. package/generated-docs/react/chatprops.md +2 -4
  22. package/generated-docs/react/component/chat.md +0 -10
  23. package/generated-docs/react/component/livekitroom.md +5 -0
  24. package/generated-docs/react/component/mediadeviceselect.md +5 -0
  25. package/generated-docs/react/focuslayoutcontainerprops.md +4 -4
  26. package/generated-docs/react/focuslayoutprops.md +5 -5
  27. package/generated-docs/react/focustoggleprops.md +5 -5
  28. package/generated-docs/react/gridlayoutprops.md +4 -4
  29. package/generated-docs/react/hook/usechat.md +1 -4
  30. package/generated-docs/react/hook/useisencrypted.md +29 -0
  31. package/generated-docs/react/hook/uselivekitroom.md +3 -0
  32. package/generated-docs/react/hook/usemediadeviceselect.md +5 -0
  33. package/generated-docs/react/hook/usestartvideo.md +43 -0
  34. package/generated-docs/react/index.md +181 -168
  35. package/generated-docs/react/layoutcontextproviderprops.md +5 -5
  36. package/generated-docs/react/livekitroomprops.md +1 -0
  37. package/generated-docs/react/livekitroomprops.onencryptionerror.md +13 -0
  38. package/generated-docs/react/localuserchoices.md +28 -0
  39. package/generated-docs/react/mediadeviceselectprops.md +3 -2
  40. package/generated-docs/react/mediadeviceselectprops.onerror.md +13 -0
  41. package/generated-docs/react/messagedecoder.md +20 -0
  42. package/generated-docs/react/messageencoder.md +20 -0
  43. package/generated-docs/react/meta-data.json +1 -1
  44. package/generated-docs/react/participanttileprops.md +8 -8
  45. package/generated-docs/react/pinstate.md +20 -0
  46. package/generated-docs/react/prejoinprops.md +13 -13
  47. package/generated-docs/react/{chatprops.messagedecoder.md → receivedchatmessage.from.md} +3 -3
  48. package/generated-docs/react/receivedchatmessage.md +26 -0
  49. package/generated-docs/react/setloglevel.md +20 -0
  50. package/generated-docs/react/trackloopprops.md +4 -4
  51. package/generated-docs/react/trackmutedindicatorprops.md +6 -6
  52. package/generated-docs/react/trackreference.md +22 -0
  53. package/generated-docs/react/trackreferenceorplaceholder.md +20 -0
  54. package/generated-docs/react/tracktoggleprops.md +7 -7
  55. package/generated-docs/react/usefocustoggleprops.md +6 -6
  56. package/generated-docs/react/usemediadeviceselectprops.md +1 -0
  57. package/generated-docs/react/usemediadeviceselectprops.onerror.md +17 -0
  58. package/generated-docs/react/useparticipanttileprops.md +9 -9
  59. package/generated-docs/react/usepersistentuserchoicesoptions.md +5 -5
  60. package/generated-docs/react/usestartvideoprops.md +25 -0
  61. package/generated-docs/react/usestartvideoprops.props.md +13 -0
  62. package/generated-docs/react/usestartvideoprops.room.md +13 -0
  63. package/generated-docs/react/usetrackshookreturntype.md +1 -1
  64. package/generated-docs/react/usevisualstableupdateoptions.md +3 -3
  65. package/generated-docs/react/videoconferenceprops.md +2 -2
  66. package/generated-docs/react/videotrackprops.md +10 -10
  67. package/generated-docs/react/widgetstate.md +21 -0
  68. package/package.json +2 -2
  69. package/generated-docs/core/istrackreference.md +0 -16
  70. package/generated-docs/core/participantclickevent.md +0 -23
  71. package/generated-docs/core/participantclickevent.participant.md +0 -13
@@ -8,45 +8,45 @@
8
8
 
9
9
  ## Components
10
10
 
11
- | Component | Description |
12
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
- | [AudioTrack({ trackRef, onSubscriptionStatusChanged, volume, source, name, publication, participant: p, ...props })](./react/component/audiotrack.md) | The AudioTrack component is responsible for rendering participant audio tracks. This component must have access to the participant's context, or alternatively pass it a <code>Participant</code> as a property. |
14
- | [AudioVisualizer({ participant, trackRef, ...props })](./react/component/audiovisualizer.md) | The AudioVisualizer component is used to visualize the audio volume of a given audio track. |
15
- | [CarouselLayout({ tracks, orientation, ...props })](./react/component/carousellayout.md) | The <code>CarouselLayout</code> component displays a list of tracks in a scroll container. It will display as many tiles as possible and overflow the rest. |
16
- | [ChatEntry({ entry, hideName, hideTimestamp, messageFormatter, ...props })](./react/component/chatentry.md) | The <code>ChatEntry</code> component holds and displays one chat message. |
17
- | [ChatToggle(props)](./react/component/chattoggle.md) | The <code>ChatToggle</code> component is a button that toggles the visibility of the <code>Chat</code> component. |
18
- | [ClearPinButton(props)](./react/component/clearpinbutton.md) | The <code>ClearPinButton</code> is a basic html button with the added ability to signal the <code>LayoutContext</code> that it should display the grid view again. |
19
- | [ConnectionQualityIndicator(props)](./react/component/connectionqualityindicator.md) | The <code>ConnectionQualityIndicator</code> shows the individual connection quality of a participant. |
20
- | [ConnectionState({ room, ...props })](./react/component/connectionstate.md) | The <code>ConnectionState</code> component displays the connection status of the room as strings (<code>&quot;connected&quot; &#124; &quot;connecting&quot; &#124; &quot;disconnected&quot; &#124; &quot;reconnecting&quot;</code>). |
21
- | [ConnectionStateToast(props)](./react/component/connectionstatetoast.md) | The <code>ConnectionStateToast</code> component displays a toast notification indicating the current connection state of the room. |
22
- | [DisconnectButton(props)](./react/component/disconnectbutton.md) | The <code>DisconnectButton</code> 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. |
23
- | [FocusLayout({ trackRef, track, ...htmlProps })](./react/component/focuslayout.md) | The <code>FocusLayout</code> component is just a light wrapper around the <code>ParticipantTile</code> to display a single participant. |
24
- | [FocusLayoutContainer(props)](./react/component/focuslayoutcontainer.md) | The <code>FocusLayoutContainer</code> 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 <code>FocusLayout</code> component. |
25
- | [FocusToggle({ trackRef, trackSource, participant, ...props })](./react/component/focustoggle.md) | The <code>FocusToggle</code> puts the <code>ParticipantTile</code> in focus or removes it from focus. |
26
- | [GridLayout({ tracks, ...props })](./react/component/gridlayout.md) | The <code>GridLayout</code> 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. |
27
- | [LayoutContextProvider({ value, onPinChange, onWidgetChange, children, })](./react/component/layoutcontextprovider.md) | |
28
- | [LiveKitRoom(props)](./react/component/livekitroom.md) | The <code>LiveKitRoom</code> 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. |
29
- | [MediaDeviceSelect({ kind, initialSelection, onActiveDeviceChange, onDeviceListChange, onDeviceSelectError, exactMatch, track, requestPermissions, ...props })](./react/component/mediadeviceselect.md) | The <code>MediaDeviceSelect</code> list all media devices of one kind. Clicking on one of the listed devices make it the active media device. |
30
- | [ParticipantAudioTile({ participant, children, source, publication, disableSpeakingIndicator, onParticipantClick, ...htmlProps })](./react/component/participantaudiotile.md) | The <code>ParticipantAudioTile</code> component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the <code>TileLoop</code> or independently if a participant is passed as a property. |
31
- | [ParticipantContextIfNeeded(props)](./react/component/participantcontextifneeded.md) | The <code>ParticipantContextIfNeeded</code> component only creates a <code>ParticipantContext</code> if there is no <code>ParticipantContext</code> already. |
32
- | [ParticipantLoop({ participants, ...props })](./react/component/participantloop.md) | The <code>ParticipantLoop</code> 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. |
33
- | [ParticipantName({ participant, ...props })](./react/component/participantname.md) | The <code>ParticipantName</code> 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. |
34
- | [ParticipantTile({ trackRef, participant, children, source, onParticipantClick, publication, disableSpeakingIndicator, ...htmlProps })](./react/component/participanttile.md) | The <code>ParticipantTile</code> component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the <code>TrackLoop</code> component or by passing a track reference as property. |
35
- | [RoomAudioRenderer({ volume, muted })](./react/component/roomaudiorenderer.md) | The <code>RoomAudioRenderer</code> component is a drop-in solution for adding audio to your LiveKit app. It takes care of handling remote participants’ audio tracks and makes sure that microphones and screen share are audible. |
36
- | [RoomName({ childrenPosition, children, ...htmlAttributes })](./react/component/roomname.md) | The <code>RoomName</code> component renders the name of the connected LiveKit room inside a span tag. |
37
- | [StartAudio({ label, ...props })](./react/component/startaudio.md) | The <code>StartAudio</code> component is only visible when the browser blocks audio playback. This is due to some browser implemented autoplay policies. To start audio playback, the user must perform a user-initiated event such as clicking this button. As soon as audio playback starts, the button hides itself again. |
38
- | [Toast(props)](./react/component/toast.md) | The <code>Toast</code> component is a rudimentary way to display a message to the user. This message should be short lived and not require user interaction. For example, displaying the current connection state like <code>ConnectionStateToast</code> does. |
39
- | [TrackLoop({ tracks, ...props })](./react/component/trackloop.md) | The <code>TrackLoop</code> component loops over tracks. It is for example a easy way to loop over all participant camera and screen share tracks. <code>TrackLoop</code> creates a <code>TrackRefContext</code> for each track that you can use to e.g. render the track. |
40
- | [TrackMutedIndicator({ source, participant, trackRef, show, ...props })](./react/component/trackmutedindicator.md) | The <code>TrackMutedIndicator</code> shows whether the participant's camera or microphone is muted or not. By default, a muted/unmuted icon is displayed for a camera, microphone, and screen sharing track. |
41
- | [TrackToggle({ showIcon, ...props })](./react/component/tracktoggle.md) | With the <code>TrackToggle</code> component it is possible to mute and unmute your camera and microphone. The component uses an html button element under the hood so you can treat it like a button. |
42
- | [VideoTrack({ onTrackClick, onClick, onSubscriptionStatusChanged, trackRef, name, publication, source, participant: p, manageSubscription, ...props })](./react/component/videotrack.md) | The <code>VideoTrack</code> component is responsible for rendering participant video tracks like <code>camera</code> and <code>screen_share</code>. This component must have access to the participant's context, or alternatively pass it a <code>Participant</code> as a property. |
11
+ | Component | Description |
12
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
+ | [AudioTrack({ trackRef, onSubscriptionStatusChanged, volume, source, name, publication, participant: p, ...props })](./react/component/audiotrack.md) | The AudioTrack component is responsible for rendering participant audio tracks. This component must have access to the participant's context, or alternatively pass it a <code>Participant</code> as a property. |
14
+ | [AudioVisualizer({ participant, trackRef, ...props })](./react/component/audiovisualizer.md) | The AudioVisualizer component is used to visualize the audio volume of a given audio track. |
15
+ | [CarouselLayout({ tracks, orientation, ...props })](./react/component/carousellayout.md) | The <code>CarouselLayout</code> component displays a list of tracks in a scroll container. It will display as many tiles as possible and overflow the rest. |
16
+ | [ChatEntry({ entry, hideName, hideTimestamp, messageFormatter, ...props })](./react/component/chatentry.md) | The <code>ChatEntry</code> component holds and displays one chat message. |
17
+ | [ChatToggle(props)](./react/component/chattoggle.md) | The <code>ChatToggle</code> component is a button that toggles the visibility of the <code>Chat</code> component. |
18
+ | [ClearPinButton(props)](./react/component/clearpinbutton.md) | The <code>ClearPinButton</code> is a basic html button with the added ability to signal the <code>LayoutContext</code> that it should display the grid view again. |
19
+ | [ConnectionQualityIndicator(props)](./react/component/connectionqualityindicator.md) | The <code>ConnectionQualityIndicator</code> shows the individual connection quality of a participant. |
20
+ | [ConnectionState({ room, ...props })](./react/component/connectionstate.md) | The <code>ConnectionState</code> component displays the connection status of the room as strings (<code>&quot;connected&quot; &#124; &quot;connecting&quot; &#124; &quot;disconnected&quot; &#124; &quot;reconnecting&quot;</code>). |
21
+ | [ConnectionStateToast(props)](./react/component/connectionstatetoast.md) | The <code>ConnectionStateToast</code> component displays a toast notification indicating the current connection state of the room. |
22
+ | [DisconnectButton(props)](./react/component/disconnectbutton.md) | The <code>DisconnectButton</code> 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. |
23
+ | [FocusLayout({ trackRef, track, ...htmlProps })](./react/component/focuslayout.md) | The <code>FocusLayout</code> component is just a light wrapper around the <code>ParticipantTile</code> to display a single participant. |
24
+ | [FocusLayoutContainer(props)](./react/component/focuslayoutcontainer.md) | The <code>FocusLayoutContainer</code> 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 <code>FocusLayout</code> component. |
25
+ | [FocusToggle({ trackRef, trackSource, participant, ...props })](./react/component/focustoggle.md) | The <code>FocusToggle</code> puts the <code>ParticipantTile</code> in focus or removes it from focus. |
26
+ | [GridLayout({ tracks, ...props })](./react/component/gridlayout.md) | The <code>GridLayout</code> 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. |
27
+ | [LayoutContextProvider({ value, onPinChange, onWidgetChange, children, })](./react/component/layoutcontextprovider.md) | |
28
+ | [LiveKitRoom(props)](./react/component/livekitroom.md) | The <code>LiveKitRoom</code> 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. |
29
+ | [MediaDeviceSelect({ kind, initialSelection, onActiveDeviceChange, onDeviceListChange, onDeviceSelectError, exactMatch, track, requestPermissions, onError, ...props })](./react/component/mediadeviceselect.md) | The <code>MediaDeviceSelect</code> list all media devices of one kind. Clicking on one of the listed devices make it the active media device. |
30
+ | [ParticipantAudioTile({ participant, children, source, publication, disableSpeakingIndicator, onParticipantClick, ...htmlProps })](./react/component/participantaudiotile.md) | The <code>ParticipantAudioTile</code> component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the <code>TileLoop</code> or independently if a participant is passed as a property. |
31
+ | [ParticipantContextIfNeeded(props)](./react/component/participantcontextifneeded.md) | The <code>ParticipantContextIfNeeded</code> component only creates a <code>ParticipantContext</code> if there is no <code>ParticipantContext</code> already. |
32
+ | [ParticipantLoop({ participants, ...props })](./react/component/participantloop.md) | The <code>ParticipantLoop</code> 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. |
33
+ | [ParticipantName({ participant, ...props })](./react/component/participantname.md) | The <code>ParticipantName</code> 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. |
34
+ | [ParticipantTile({ trackRef, participant, children, source, onParticipantClick, publication, disableSpeakingIndicator, ...htmlProps })](./react/component/participanttile.md) | The <code>ParticipantTile</code> component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the <code>TrackLoop</code> component or by passing a track reference as property. |
35
+ | [RoomAudioRenderer({ volume, muted })](./react/component/roomaudiorenderer.md) | The <code>RoomAudioRenderer</code> component is a drop-in solution for adding audio to your LiveKit app. It takes care of handling remote participants’ audio tracks and makes sure that microphones and screen share are audible. |
36
+ | [RoomName({ childrenPosition, children, ...htmlAttributes })](./react/component/roomname.md) | The <code>RoomName</code> component renders the name of the connected LiveKit room inside a span tag. |
37
+ | [StartAudio({ label, ...props })](./react/component/startaudio.md) | The <code>StartAudio</code> component is only visible when the browser blocks audio playback. This is due to some browser implemented autoplay policies. To start audio playback, the user must perform a user-initiated event such as clicking this button. As soon as audio playback starts, the button hides itself again. |
38
+ | [Toast(props)](./react/component/toast.md) | The <code>Toast</code> component is a rudimentary way to display a message to the user. This message should be short lived and not require user interaction. For example, displaying the current connection state like <code>ConnectionStateToast</code> does. |
39
+ | [TrackLoop({ tracks, ...props })](./react/component/trackloop.md) | The <code>TrackLoop</code> component loops over tracks. It is for example a easy way to loop over all participant camera and screen share tracks. <code>TrackLoop</code> creates a <code>TrackRefContext</code> for each track that you can use to e.g. render the track. |
40
+ | [TrackMutedIndicator({ source, participant, trackRef, show, ...props })](./react/component/trackmutedindicator.md) | The <code>TrackMutedIndicator</code> shows whether the participant's camera or microphone is muted or not. By default, a muted/unmuted icon is displayed for a camera, microphone, and screen sharing track. |
41
+ | [TrackToggle({ showIcon, ...props })](./react/component/tracktoggle.md) | With the <code>TrackToggle</code> component it is possible to mute and unmute your camera and microphone. The component uses an html button element under the hood so you can treat it like a button. |
42
+ | [VideoTrack({ onTrackClick, onClick, onSubscriptionStatusChanged, trackRef, name, publication, source, participant: p, manageSubscription, ...props })](./react/component/videotrack.md) | The <code>VideoTrack</code> component is responsible for rendering participant video tracks like <code>camera</code> and <code>screen_share</code>. This component must have access to the participant's context, or alternatively pass it a <code>Participant</code> as a property. |
43
43
 
44
44
  ## Prefabs
45
45
 
46
46
  | Prefab | Description |
47
47
  | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
48
48
  | [AudioConference({ ...props })](./react/component/audioconference.md) | This component is the default setup of a classic LiveKit audio conferencing app. It provides functionality like switching between participant grid view and focus view. |
49
- | [Chat({ messageFormatter, messageDecoder, messageEncoder, ...props })](./react/component/chat.md) | The Chat component adds a basis chat functionality to the LiveKit room. The messages are distributed to all participants in the room. Only users who are in the room at the time of dispatch will receive the message. |
49
+ | [Chat({ messageFormatter, messageDecoder, messageEncoder, channelTopic, ...props })](./react/component/chat.md) | The Chat component adds a basis chat functionality to the LiveKit room. The messages are distributed to all participants in the room. Only users who are in the room at the time of dispatch will receive the message. |
50
50
  | [ControlBar({ variation, controls, saveUserChoices, ...props })](./react/component/controlbar.md) | The <code>ControlBar</code> prefab gives the user the basic user interface to control their media devices (camera, microphone and screen share), open the <code>Chat</code> and leave the room. |
51
51
  | [MediaDeviceMenu({ kind, initialSelection, onActiveDeviceChange, tracks, requestPermissions, ...props })](./react/component/mediadevicemenu.md) | The <code>MediaDeviceMenu</code> component is a button that opens a menu that lists all media devices and allows the user to select them. |
52
52
  | [PreJoin({ defaults, onValidate, onSubmit, onError, debug, joinLabel, micLabel, camLabel, userLabel, showE2EEOptions, persistUserChoices, ...htmlProps })](./react/component/prejoin.md) | The <code>PreJoin</code> prefab component is normally presented to the user before he enters a room. This component allows the user to check and select the preferred media device (camera und microphone). On submit the user decisions are returned, which can then be passed on to the <code>LiveKitRoom</code> so that the user enters the room with the correct media devices. |
@@ -54,141 +54,154 @@
54
54
 
55
55
  ## Hooks
56
56
 
57
- | Hook | Description |
58
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
59
- | [useAudioPlayback(room)](./react/hook/useaudioplayback.md) | In many browsers to start audio playback, the user must perform a user-initiated event such as clicking a button. The <code>useAudioPlayback</code> hook returns an object with a boolean <code>canPlayAudio</code> flag that indicates whether audio playback is allowed in the current context, as well as a <code>startAudio</code> function that can be called in a button <code>onClick</code> callback to start audio playback in the current context. |
60
- | [useChat(options)](./react/hook/usechat.md) | The <code>useChat</code> hook provides chat functionality for a LiveKit room. It returns a simple <code>send</code> function to send chat messages and an array of <code>chatMessages</code> to hold received messages. |
61
- | [useChatToggle({ props })](./react/hook/usechattoggle.md) | The <code>useChatToggle</code> hook provides state and functions for toggling the chat window. |
62
- | [useClearPinButton(props)](./react/hook/useclearpinbutton.md) | The <code>useClearPinButton</code> hook provides props for the [ClearPinButton()](./react/component/clearpinbutton.md) or your custom implementation of it component. It adds the <code>onClick</code> handler to signal the <code>LayoutContext</code> that the tile in focus should be cleared. |
63
- | [useConnectionQualityIndicator(options)](./react/hook/useconnectionqualityindicator.md) | The <code>useConnectionQualityIndicator</code> hook provides props for the <code>ConnectionQualityIndicator</code> or your custom implementation of it component. |
64
- | [useConnectionState(room)](./react/hook/useconnectionstate.md) | The <code>useConnectionState</code> hook allows you to simply implement your own <code>ConnectionState</code> component. |
65
- | [useCreateLayoutContext()](./react/hook/usecreatelayoutcontext.md) | |
66
- | [useDataChannel(topic, onMessage)](./react/hook/usedatachannel.md) | The <code>useDataChannel</code> hook returns the ability to send and receive messages. By optionally passing a <code>topic</code>, you can narrow down which messages are returned in the messages array. |
67
- | [useDataChannel(onMessage)](./react/hook/usedatachannel_1.md) | The <code>useDataChannel</code> hook returns the ability to send and receive messages. |
68
- | [useDisconnectButton(props)](./react/hook/usedisconnectbutton.md) | The <code>useDisconnectButton</code> hook is used to implement the <code>DisconnectButton</code> or your custom implementation of it. It adds onClick handler to the button to disconnect from the room. |
69
- | [useEnsureCreateLayoutContext(layoutContext)](./react/hook/useensurecreatelayoutcontext.md) | |
70
- | [useEnsureLayoutContext(layoutContext)](./react/hook/useensurelayoutcontext.md) | Ensures that a layout context is provided, either via context or explicitly as a parameter. If not inside a <code>LayoutContext</code> and no layout context is provided, an error is thrown. |
71
- | [useEnsureParticipant(participant)](./react/hook/useensureparticipant.md) | Ensures that a participant is provided, either via context or explicitly as a parameter. If not inside a <code>ParticipantContext</code> and no participant is provided, an error is thrown. |
72
- | [useEnsureRoom(room)](./react/hook/useensureroom.md) | Ensures that a room is provided, either via context or explicitly as a parameter. If no room is provided, an error is thrown. |
73
- | [useEnsureTrackRef(trackRef)](./react/hook/useensuretrackref.md) | Ensures that a track reference is provided, either via context or explicitly as a parameter. If not inside a <code>TrackRefContext</code> and no track reference is provided, an error is thrown. |
74
- | [useEnsureTrackReference(track)](./react/hook/useensuretrackreference.md) | Ensures that a track reference is provided, either via context or explicitly as a parameter. If not inside a <code>TrackContext</code> and no track reference is provided, an error is thrown. |
75
- | [useFacingMode(trackReference)](./react/hook/usefacingmode.md) | Try to determine the <code>facingMode</code> of a local participant video track. |
76
- | [useFocusToggle({ trackRef, trackSource, participant, props })](./react/hook/usefocustoggle.md) | The <code>useFocusToggle</code> hook is used to implement the <code>FocusToggle</code> or your custom implementation of it. The <code>TrackReferenceOrPlaceholder</code> is used to register a onClick handler and to identify the track to focus on. |
77
- | [useGridLayout(gridElement, trackCount)](./react/hook/usegridlayout.md) | The <code>useGridLayout</code> hook tries to select the best layout to fit all tiles. If the available screen space is not enough, it will reduce the number of maximum visible tiles and select a layout that still works visually within the given limitations. As the order of tiles changes over time, the hook tries to keep visual updates to a minimum while trying to display important tiles such as speaking participants or screen shares. |
78
- | [useIsMuted(trackRef)](./react/hook/useismuted.md) | The <code>useIsMuted</code> hook is used to implement the <code>TrackMutedIndicator</code> or your custom implementation of it. It returns a <code>boolean</code> that indicates if the track is muted or not. |
79
- | [useIsMuted(source, options)](./react/hook/useismuted_1.md) | |
80
- | [useIsSpeaking(participant)](./react/hook/useisspeaking.md) | The <code>useIsSpeaking</code> hook returns a <code>boolean</code> that indicates if the participant is speaking or not. |
81
- | [useLayoutContext()](./react/hook/uselayoutcontext.md) | Ensures that a layout context is provided via context. If no layout context is provided, an error is thrown. |
82
- | [useLiveKitRoom(props)](./react/hook/uselivekitroom.md) | The <code>useLiveKitRoom</code> hook is used to implement the <code>LiveKitRoom</code> or your custom implementation of it. It returns a <code>Room</code> instance and HTML props that should be applied to the root element of the component. |
83
- | [useLocalParticipant(options)](./react/hook/uselocalparticipant.md) | The <code>useLocalParticipant</code> hook returns the local participant and the associated state around the participant. |
84
- | [useLocalParticipantPermissions()](./react/hook/uselocalparticipantpermissions.md) | The <code>useLocalParticipantPermissions</code> hook returns the local participant's permissions. |
85
- | [useMaybeLayoutContext()](./react/hook/usemaybelayoutcontext.md) | Returns a layout context from the <code>LayoutContext</code> if it exists, otherwise <code>undefined</code>. |
86
- | [useMaybeParticipantContext()](./react/hook/usemaybeparticipantcontext.md) | Returns a participant from the <code>ParticipantContext</code> if it exists, otherwise <code>undefined</code>. |
87
- | [useMaybeRoomContext()](./react/hook/usemayberoomcontext.md) | Returns the room context if it exists, otherwise undefined. |
88
- | [useMaybeTrackContext()](./react/hook/usemaybetrackcontext.md) | Returns a track reference from the <code>TrackContext</code> if it exists, otherwise <code>undefined</code>. |
89
- | [useMaybeTrackRefContext()](./react/hook/usemaybetrackrefcontext.md) | Returns a track reference from the <code>TrackRefContext</code> if it exists, otherwise <code>undefined</code>. |
90
- | [useMediaDevices({ kind })](./react/hook/usemediadevices.md) | The <code>useMediaDevices</code> hook returns the list of media devices of a given kind. |
91
- | [useMediaDeviceSelect({ kind, room, track, requestPermissions, })](./react/hook/usemediadeviceselect.md) | The <code>useMediaDeviceSelect</code> hook is used to implement the <code>MediaDeviceSelect</code> component and returns o.a. the list of devices of a given kind (audioinput or videoinput), the currently active device and a function to set the the active device. |
92
- | [useMediaTrack(source, participant, options)](./react/hook/usemediatrack.md) | |
93
- | [useMediaTrackByName(name, participant, options)](./react/hook/usemediatrackbyname.md) | |
94
- | [usePagination(itemPerPage, trackReferences)](./react/hook/usepagination.md) | The <code>usePagination</code> hook implements simple pagination logic for use with arrays. |
95
- | [useParticipantContext()](./react/hook/useparticipantcontext.md) | Ensures that a participant is provided via context. If not inside a <code>ParticipantContext</code>, an error is thrown. |
96
- | [useParticipantInfo(props)](./react/hook/useparticipantinfo.md) | |
97
- | [useParticipantPermissions(options)](./react/hook/useparticipantpermissions.md) | |
98
- | [useParticipants(options)](./react/hook/useparticipants.md) | The <code>useParticipants</code> hook returns all participants (local and remote) of the current room. |
99
- | [useParticipantTile({ trackRef, participant, source, publication, onParticipantClick, disableSpeakingIndicator, htmlProps, })](./react/hook/useparticipanttile.md) | The <code>useParticipantTile</code> hook is used to implement the <code>ParticipantTile</code> and returns the props needed to render the tile. |
100
- | [usePersistentUserChoices(options)](./react/hook/usepersistentuserchoices.md) | A hook that provides access to user choices stored in local storage, such as selected media devices and their current state (on or off), as well as the user name. |
101
- | [usePinnedTracks(layoutContext)](./react/hook/usepinnedtracks.md) | The <code>usePinnedTracks</code> hook returns a array of the pinned tracks of the current room. |
102
- | [usePreviewDevice(enabled, deviceId, kind)](./react/hook/usepreviewdevice.md) | |
103
- | [usePreviewTracks(options, onError)](./react/hook/usepreviewtracks.md) | |
104
- | [useRemoteParticipant(identity, options)](./react/hook/useremoteparticipant.md) | The <code>useRemoteParticipant</code> hook returns the RemoteParticipant with the given <code>identity</code>. |
105
- | [useRemoteParticipants(options)](./react/hook/useremoteparticipants.md) | The <code>useRemoteParticipants</code> hook returns all remote participants (without the local) of the current room. |
106
- | [useRoomContext()](./react/hook/useroomcontext.md) | Ensures that a room is provided via context. If no room is provided, an error is thrown. |
107
- | [useRoomInfo(options)](./react/hook/useroominfo.md) | |
108
- | [useSortedParticipants(participants)](./react/hook/usesortedparticipants.md) | The <code>useSortedParticipants</code> hook returns the participants sorted by importance. |
109
- | [useSpeakingParticipants()](./react/hook/usespeakingparticipants.md) | The <code>useSpeakingParticipants</code> hook returns the only the active speakers of all participants. |
110
- | [useStartAudio({ room, props })](./react/hook/usestartaudio.md) | In many browsers to start audio playback, the user must perform a user-initiated event such as clicking a button. The <code>useStatAudio</code> hook returns an object with a boolean <code>canPlayAudio</code> flag that indicates whether audio playback is allowed in the current context, as well as a <code>startAudio</code> function that can be called in a button <code>onClick</code> callback to start audio playback in the current context. |
111
- | [useSwipe(element, options)](./react/hook/useswipe.md) | Simple implementation to detect horizontal swipe actions. Accepts callbacks for on right and left swipes. |
112
- | [useToken(tokenEndpoint, roomName, options)](./react/hook/usetoken.md) | The <code>useToken</code> hook fetches a token from the given token endpoint with the given user info. |
113
- | [useTrack(trackRef, options)](./react/hook/usetrack.md) | |
114
- | [useTrackByName(trackRef, options)](./react/hook/usetrackbyname.md) | |
115
- | [useTrackContext()](./react/hook/usetrackcontext.md) | Ensures that a track reference is provided via context. If not inside a <code>TrackRefContext</code>, an error is thrown. |
116
- | [useTrackMutedIndicator(trackRef)](./react/hook/usetrackmutedindicator.md) | The <code>useTrackMutedIndicator</code> hook is used to implement the <code>TrackMutedIndicator</code> component and returns the muted state of the given track. |
117
- | [useTrackMutedIndicator(source, options)](./react/hook/usetrackmutedindicator_1.md) | |
118
- | [useTrackRefContext()](./react/hook/usetrackrefcontext.md) | Ensures that a track reference is provided via context. If not inside a <code>TrackRefContext</code>, an error is thrown. |
119
- | [useTracks(sources, options)](./react/hook/usetracks.md) | The <code>useTracks</code> hook returns an array of <code>TrackReference</code> or <code>TrackReferenceOrPlaceholder</code> depending on the provided <code>sources</code> property. If only subscribed tracks are desired, set the <code>onlySubscribed</code> property to <code>true</code>. |
120
- | [useTrackToggle({ source, onChange, initialState, captureOptions, ...rest })](./react/hook/usetracktoggle.md) | The <code>useTrackToggle</code> hook is used to implement the <code>TrackToggle</code> component and returns state and functionality of the given track. |
121
- | [useVisualStableUpdate(trackReferences, maxItemsOnPage, options)](./react/hook/usevisualstableupdate.md) | The <code>useVisualStableUpdate</code> hook is used to prevent visually jarring jumps and shifts of elements in an array. The algorithm only starts to update when there are more items than visually fit on a page. If this is the case, it will make sure that speaking participants move to the first page and are always visible. |
57
+ | Hook | Description |
58
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
59
+ | [useAudioPlayback(room)](./react/hook/useaudioplayback.md) | In many browsers to start audio playback, the user must perform a user-initiated event such as clicking a button. The <code>useAudioPlayback</code> hook returns an object with a boolean <code>canPlayAudio</code> flag that indicates whether audio playback is allowed in the current context, as well as a <code>startAudio</code> function that can be called in a button <code>onClick</code> callback to start audio playback in the current context. |
60
+ | [useChat(options)](./react/hook/usechat.md) | The <code>useChat</code> hook provides chat functionality for a LiveKit room. It returns a simple <code>send</code> function to send chat messages and an array of <code>chatMessages</code> to hold received messages. |
61
+ | [useChatToggle({ props })](./react/hook/usechattoggle.md) | The <code>useChatToggle</code> hook provides state and functions for toggling the chat window. |
62
+ | [useClearPinButton(props)](./react/hook/useclearpinbutton.md) | The <code>useClearPinButton</code> hook provides props for the [ClearPinButton()](./react/component/clearpinbutton.md) or your custom implementation of it component. It adds the <code>onClick</code> handler to signal the <code>LayoutContext</code> that the tile in focus should be cleared. |
63
+ | [useConnectionQualityIndicator(options)](./react/hook/useconnectionqualityindicator.md) | The <code>useConnectionQualityIndicator</code> hook provides props for the <code>ConnectionQualityIndicator</code> or your custom implementation of it component. |
64
+ | [useConnectionState(room)](./react/hook/useconnectionstate.md) | The <code>useConnectionState</code> hook allows you to simply implement your own <code>ConnectionState</code> component. |
65
+ | [useCreateLayoutContext()](./react/hook/usecreatelayoutcontext.md) | |
66
+ | [useDataChannel(topic, onMessage)](./react/hook/usedatachannel.md) | The <code>useDataChannel</code> hook returns the ability to send and receive messages. By optionally passing a <code>topic</code>, you can narrow down which messages are returned in the messages array. |
67
+ | [useDataChannel(onMessage)](./react/hook/usedatachannel_1.md) | The <code>useDataChannel</code> hook returns the ability to send and receive messages. |
68
+ | [useDisconnectButton(props)](./react/hook/usedisconnectbutton.md) | The <code>useDisconnectButton</code> hook is used to implement the <code>DisconnectButton</code> or your custom implementation of it. It adds onClick handler to the button to disconnect from the room. |
69
+ | [useEnsureCreateLayoutContext(layoutContext)](./react/hook/useensurecreatelayoutcontext.md) | |
70
+ | [useEnsureLayoutContext(layoutContext)](./react/hook/useensurelayoutcontext.md) | Ensures that a layout context is provided, either via context or explicitly as a parameter. If not inside a <code>LayoutContext</code> and no layout context is provided, an error is thrown. |
71
+ | [useEnsureParticipant(participant)](./react/hook/useensureparticipant.md) | Ensures that a participant is provided, either via context or explicitly as a parameter. If not inside a <code>ParticipantContext</code> and no participant is provided, an error is thrown. |
72
+ | [useEnsureRoom(room)](./react/hook/useensureroom.md) | Ensures that a room is provided, either via context or explicitly as a parameter. If no room is provided, an error is thrown. |
73
+ | [useEnsureTrackRef(trackRef)](./react/hook/useensuretrackref.md) | Ensures that a track reference is provided, either via context or explicitly as a parameter. If not inside a <code>TrackRefContext</code> and no track reference is provided, an error is thrown. |
74
+ | [useEnsureTrackReference(track)](./react/hook/useensuretrackreference.md) | Ensures that a track reference is provided, either via context or explicitly as a parameter. If not inside a <code>TrackContext</code> and no track reference is provided, an error is thrown. |
75
+ | [useFacingMode(trackReference)](./react/hook/usefacingmode.md) | Try to determine the <code>facingMode</code> of a local participant video track. |
76
+ | [useFocusToggle({ trackRef, trackSource, participant, props })](./react/hook/usefocustoggle.md) | The <code>useFocusToggle</code> hook is used to implement the <code>FocusToggle</code> or your custom implementation of it. The <code>TrackReferenceOrPlaceholder</code> is used to register a onClick handler and to identify the track to focus on. |
77
+ | [useGridLayout(gridElement, trackCount)](./react/hook/usegridlayout.md) | The <code>useGridLayout</code> hook tries to select the best layout to fit all tiles. If the available screen space is not enough, it will reduce the number of maximum visible tiles and select a layout that still works visually within the given limitations. As the order of tiles changes over time, the hook tries to keep visual updates to a minimum while trying to display important tiles such as speaking participants or screen shares. |
78
+ | [useIsEncrypted(participant)](./react/hook/useisencrypted.md) | |
79
+ | [useIsMuted(trackRef)](./react/hook/useismuted.md) | The <code>useIsMuted</code> hook is used to implement the <code>TrackMutedIndicator</code> or your custom implementation of it. It returns a <code>boolean</code> that indicates if the track is muted or not. |
80
+ | [useIsMuted(source, options)](./react/hook/useismuted_1.md) | |
81
+ | [useIsSpeaking(participant)](./react/hook/useisspeaking.md) | The <code>useIsSpeaking</code> hook returns a <code>boolean</code> that indicates if the participant is speaking or not. |
82
+ | [useLayoutContext()](./react/hook/uselayoutcontext.md) | Ensures that a layout context is provided via context. If no layout context is provided, an error is thrown. |
83
+ | [useLiveKitRoom(props)](./react/hook/uselivekitroom.md) | The <code>useLiveKitRoom</code> hook is used to implement the <code>LiveKitRoom</code> or your custom implementation of it. It returns a <code>Room</code> instance and HTML props that should be applied to the root element of the component. |
84
+ | [useLocalParticipant(options)](./react/hook/uselocalparticipant.md) | The <code>useLocalParticipant</code> hook returns the local participant and the associated state around the participant. |
85
+ | [useLocalParticipantPermissions()](./react/hook/uselocalparticipantpermissions.md) | The <code>useLocalParticipantPermissions</code> hook returns the local participant's permissions. |
86
+ | [useMaybeLayoutContext()](./react/hook/usemaybelayoutcontext.md) | Returns a layout context from the <code>LayoutContext</code> if it exists, otherwise <code>undefined</code>. |
87
+ | [useMaybeParticipantContext()](./react/hook/usemaybeparticipantcontext.md) | Returns a participant from the <code>ParticipantContext</code> if it exists, otherwise <code>undefined</code>. |
88
+ | [useMaybeRoomContext()](./react/hook/usemayberoomcontext.md) | Returns the room context if it exists, otherwise undefined. |
89
+ | [useMaybeTrackContext()](./react/hook/usemaybetrackcontext.md) | Returns a track reference from the <code>TrackContext</code> if it exists, otherwise <code>undefined</code>. |
90
+ | [useMaybeTrackRefContext()](./react/hook/usemaybetrackrefcontext.md) | Returns a track reference from the <code>TrackRefContext</code> if it exists, otherwise <code>undefined</code>. |
91
+ | [useMediaDevices({ kind })](./react/hook/usemediadevices.md) | The <code>useMediaDevices</code> hook returns the list of media devices of a given kind. |
92
+ | [useMediaDeviceSelect({ kind, room, track, requestPermissions, onError, })](./react/hook/usemediadeviceselect.md) | The <code>useMediaDeviceSelect</code> hook is used to implement the <code>MediaDeviceSelect</code> component and returns o.a. the list of devices of a given kind (audioinput or videoinput), the currently active device and a function to set the the active device. |
93
+ | [useMediaTrack(source, participant, options)](./react/hook/usemediatrack.md) | |
94
+ | [useMediaTrackByName(name, participant, options)](./react/hook/usemediatrackbyname.md) | |
95
+ | [usePagination(itemPerPage, trackReferences)](./react/hook/usepagination.md) | The <code>usePagination</code> hook implements simple pagination logic for use with arrays. |
96
+ | [useParticipantContext()](./react/hook/useparticipantcontext.md) | Ensures that a participant is provided via context. If not inside a <code>ParticipantContext</code>, an error is thrown. |
97
+ | [useParticipantInfo(props)](./react/hook/useparticipantinfo.md) | |
98
+ | [useParticipantPermissions(options)](./react/hook/useparticipantpermissions.md) | |
99
+ | [useParticipants(options)](./react/hook/useparticipants.md) | The <code>useParticipants</code> hook returns all participants (local and remote) of the current room. |
100
+ | [useParticipantTile({ trackRef, participant, source, publication, onParticipantClick, disableSpeakingIndicator, htmlProps, })](./react/hook/useparticipanttile.md) | The <code>useParticipantTile</code> hook is used to implement the <code>ParticipantTile</code> and returns the props needed to render the tile. |
101
+ | [usePersistentUserChoices(options)](./react/hook/usepersistentuserchoices.md) | A hook that provides access to user choices stored in local storage, such as selected media devices and their current state (on or off), as well as the user name. |
102
+ | [usePinnedTracks(layoutContext)](./react/hook/usepinnedtracks.md) | The <code>usePinnedTracks</code> hook returns a array of the pinned tracks of the current room. |
103
+ | [usePreviewDevice(enabled, deviceId, kind)](./react/hook/usepreviewdevice.md) | |
104
+ | [usePreviewTracks(options, onError)](./react/hook/usepreviewtracks.md) | |
105
+ | [useRemoteParticipant(identity, options)](./react/hook/useremoteparticipant.md) | The <code>useRemoteParticipant</code> hook returns the RemoteParticipant with the given <code>identity</code>. |
106
+ | [useRemoteParticipants(options)](./react/hook/useremoteparticipants.md) | The <code>useRemoteParticipants</code> hook returns all remote participants (without the local) of the current room. |
107
+ | [useRoomContext()](./react/hook/useroomcontext.md) | Ensures that a room is provided via context. If no room is provided, an error is thrown. |
108
+ | [useRoomInfo(options)](./react/hook/useroominfo.md) | |
109
+ | [useSortedParticipants(participants)](./react/hook/usesortedparticipants.md) | The <code>useSortedParticipants</code> hook returns the participants sorted by importance. |
110
+ | [useSpeakingParticipants()](./react/hook/usespeakingparticipants.md) | The <code>useSpeakingParticipants</code> hook returns the only the active speakers of all participants. |
111
+ | [useStartAudio({ room, props })](./react/hook/usestartaudio.md) | In many browsers to start audio playback, the user must perform a user-initiated event such as clicking a button. The <code>useStatAudio</code> hook returns an object with a boolean <code>canPlayAudio</code> flag that indicates whether audio playback is allowed in the current context, as well as a <code>startAudio</code> function that can be called in a button <code>onClick</code> callback to start audio playback in the current context. |
112
+ | [useStartVideo({ room, props })](./react/hook/usestartvideo.md) | In some browsers to start video playback in low power mode, the user must perform a user-initiated event such as clicking a button. The <code>useStartVideo</code> hook returns an object with a boolean <code>canPlayVideo</code> flag that indicates whether video playback is allowed in the current context, as well as a <code>startVideo</code> function that can be called in a button <code>onClick</code> callback to start video playback in the current context. |
113
+ | [useSwipe(element, options)](./react/hook/useswipe.md) | Simple implementation to detect horizontal swipe actions. Accepts callbacks for on right and left swipes. |
114
+ | [useToken(tokenEndpoint, roomName, options)](./react/hook/usetoken.md) | The <code>useToken</code> hook fetches a token from the given token endpoint with the given user info. |
115
+ | [useTrack(trackRef, options)](./react/hook/usetrack.md) | |
116
+ | [useTrackByName(trackRef, options)](./react/hook/usetrackbyname.md) | |
117
+ | [useTrackContext()](./react/hook/usetrackcontext.md) | Ensures that a track reference is provided via context. If not inside a <code>TrackRefContext</code>, an error is thrown. |
118
+ | [useTrackMutedIndicator(trackRef)](./react/hook/usetrackmutedindicator.md) | The <code>useTrackMutedIndicator</code> hook is used to implement the <code>TrackMutedIndicator</code> component and returns the muted state of the given track. |
119
+ | [useTrackMutedIndicator(source, options)](./react/hook/usetrackmutedindicator_1.md) | |
120
+ | [useTrackRefContext()](./react/hook/usetrackrefcontext.md) | Ensures that a track reference is provided via context. If not inside a <code>TrackRefContext</code>, an error is thrown. |
121
+ | [useTracks(sources, options)](./react/hook/usetracks.md) | The <code>useTracks</code> hook returns an array of <code>TrackReference</code> or <code>TrackReferenceOrPlaceholder</code> depending on the provided <code>sources</code> property. If only subscribed tracks are desired, set the <code>onlySubscribed</code> property to <code>true</code>. |
122
+ | [useTrackToggle({ source, onChange, initialState, captureOptions, ...rest })](./react/hook/usetracktoggle.md) | The <code>useTrackToggle</code> hook is used to implement the <code>TrackToggle</code> component and returns state and functionality of the given track. |
123
+ | [useVisualStableUpdate(trackReferences, maxItemsOnPage, options)](./react/hook/usevisualstableupdate.md) | The <code>useVisualStableUpdate</code> hook is used to prevent visually jarring jumps and shifts of elements in an array. The algorithm only starts to update when there are more items than visually fit on a page. If this is the case, it will make sure that speaking participants move to the first page and are always visible. |
122
124
 
123
125
  ## Others
124
126
 
125
- | Other | Description |
126
- | --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
127
- | [AllowAudioPlaybackProps](./react/allowaudioplaybackprops.md) | |
128
- | [AudioConferenceProps](./react/audioconferenceprops.md) | |
129
- | [AudioTrackProps](./react/audiotrackprops.md) | |
130
- | [AudioVisualizerProps](./react/audiovisualizerprops.md) | |
131
- | [CarouselLayoutProps](./react/carousellayoutprops.md) | |
132
- | [CarouselView](./react/carouselview.md) | |
133
- | [ChatEntryProps](./react/chatentryprops.md) | ChatEntry composes the HTML div element under the hood, so you can pass all its props. These are the props specific to the ChatEntry component: |
134
- | [ChatProps](./react/chatprops.md) | |
135
- | [ChatToggleProps](./react/chattoggleprops.md) | |
136
- | [ClearPinButtonProps](./react/clearpinbuttonprops.md) | |
137
- | [ConnectionQualityIndicatorOptions](./react/connectionqualityindicatoroptions.md) | |
138
- | [ConnectionQualityIndicatorProps](./react/connectionqualityindicatorprops.md) | |
139
- | [ConnectionStateToastProps](./react/connectionstatetoastprops.md) | |
140
- | [ConnectionStatusProps](./react/connectionstatusprops.md) | |
141
- | [ControlBarControls](./react/controlbarcontrols.md) | |
142
- | [ControlBarProps](./react/controlbarprops.md) | |
143
- | [DisconnectButtonProps](./react/disconnectbuttonprops.md) | |
144
- | [FocusLayoutContainerProps](./react/focuslayoutcontainerprops.md) | |
145
- | [FocusLayoutProps](./react/focuslayoutprops.md) | |
146
- | [FocusToggleProps](./react/focustoggleprops.md) | |
147
- | [formatChatMessageLinks(message)](./react/formatchatmessagelinks.md) | |
148
- | [GridLayoutProps](./react/gridlayoutprops.md) | |
149
- | [LayoutContext](./react/layoutcontext.md) | |
150
- | [LayoutContextProviderProps](./react/layoutcontextproviderprops.md) | |
151
- | [LayoutContextType](./react/layoutcontexttype.md) | |
152
- | [LiveKitRoomProps](./react/livekitroomprops.md) | |
153
- | [MediaDeviceMenuProps](./react/mediadevicemenuprops.md) | |
154
- | [MediaDeviceSelectProps](./react/mediadeviceselectprops.md) | |
155
- | [MessageFormatter](./react/messageformatter.md) | |
156
- | [ParticipantContext](./react/participantcontext.md) | |
157
- | [ParticipantLoopProps](./react/participantloopprops.md) | |
158
- | [ParticipantNameProps](./react/participantnameprops.md) | |
159
- | [ParticipantTileProps](./react/participanttileprops.md) | |
160
- | [PreJoinProps](./react/prejoinprops.md) | Props for the PreJoin component. |
161
- | [RoomAudioRendererProps](./react/roomaudiorendererprops.md) | |
162
- | [RoomContext](./react/roomcontext.md) | |
163
- | [RoomNameProps](./react/roomnameprops.md) | |
164
- | [TrackContext](./react/trackcontext.md) | |
165
- | [TrackLoopProps](./react/trackloopprops.md) | |
166
- | [TrackMutedIndicatorProps](./react/trackmutedindicatorprops.md) | |
167
- | [TrackRefContext](./react/trackrefcontext.md) | This context provides a <code>TrackReferenceOrPlaceholder</code> to all child components. |
168
- | [TrackToggleProps](./react/tracktoggleprops.md) | |
169
- | [UseChatToggleProps](./react/usechattoggleprops.md) | |
170
- | [UseFocusToggleProps](./react/usefocustoggleprops.md) | |
171
- | [UseIsMutedOptions](./react/useismutedoptions.md) | |
172
- | [UseLocalParticipantOptions](./react/uselocalparticipantoptions.md) | |
173
- | [UseMediaDeviceSelectProps](./react/usemediadeviceselectprops.md) | |
174
- | [UseMediaTrackOptions](./react/usemediatrackoptions.md) | |
175
- | [UseParticipantInfoOptions](./react/useparticipantinfooptions.md) | The <code>useParticipantInfo</code> hook returns the identity, name, and metadata of a given participant. It requires a <code>Participant</code> object passed as property or via the <code>ParticipantContext</code>. |
176
- | [UseParticipantPermissionsOptions](./react/useparticipantpermissionsoptions.md) | The <code>useParticipantPermissions</code> hook returns the permissions of a given participant. |
177
- | [UseParticipantsOptions](./react/useparticipantsoptions.md) | |
178
- | [UseParticipantTileProps](./react/useparticipanttileprops.md) | |
179
- | [UsePersistentUserChoicesOptions](./react/usepersistentuserchoicesoptions.md) | Options for the <code>usePersistentDeviceSettings</code> hook. |
180
- | [UseRemoteParticipantOptions](./react/useremoteparticipantoptions.md) | |
181
- | [UseRemoteParticipantsOptions](./react/useremoteparticipantsoptions.md) | |
182
- | [UserInfo](./react/userinfo.md) | |
183
- | [UseRoomInfoOptions](./react/useroominfooptions.md) | The <code>useRoomInfo</code> hook returns the name and metadata of the given <code>Room</code>. |
184
- | [UseStartAudioProps](./react/usestartaudioprops.md) | |
185
- | [UseSwipeOptions](./react/useswipeoptions.md) | |
186
- | [UseTokenOptions](./react/usetokenoptions.md) | |
187
- | [UseTrackMutedIndicatorOptions](./react/usetrackmutedindicatoroptions.md) | |
188
- | [UseTrackOptions](./react/usetrackoptions.md) | |
189
- | [UseTracksHookReturnType](./react/usetrackshookreturntype.md) | |
190
- | [UseTracksOptions](./react/usetracksoptions.md) | |
191
- | [UseTrackToggleProps](./react/usetracktoggleprops.md) | |
192
- | [UseVisualStableUpdateOptions](./react/usevisualstableupdateoptions.md) | |
193
- | [VideoConferenceProps](./react/videoconferenceprops.md) | |
194
- | [VideoTrackProps](./react/videotrackprops.md) | |
127
+ | Other | Description |
128
+ | --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
129
+ | [AllowAudioPlaybackProps](./react/allowaudioplaybackprops.md) | |
130
+ | [AudioConferenceProps](./react/audioconferenceprops.md) | |
131
+ | [AudioTrackProps](./react/audiotrackprops.md) | |
132
+ | [AudioVisualizerProps](./react/audiovisualizerprops.md) | |
133
+ | [CarouselLayoutProps](./react/carousellayoutprops.md) | |
134
+ | [CarouselView](./react/carouselview.md) | |
135
+ | [ChatEntryProps](./react/chatentryprops.md) | ChatEntry composes the HTML div element under the hood, so you can pass all its props. These are the props specific to the ChatEntry component: |
136
+ | [ChatMessage](./react/chatmessage.md) | |
137
+ | [ChatProps](./react/chatprops.md) | |
138
+ | [ChatToggleProps](./react/chattoggleprops.md) | |
139
+ | [ClearPinButtonProps](./react/clearpinbuttonprops.md) | |
140
+ | [ConnectionQualityIndicatorOptions](./react/connectionqualityindicatoroptions.md) | |
141
+ | [ConnectionQualityIndicatorProps](./react/connectionqualityindicatorprops.md) | |
142
+ | [ConnectionStateToastProps](./react/connectionstatetoastprops.md) | |
143
+ | [ConnectionStatusProps](./react/connectionstatusprops.md) | |
144
+ | [ControlBarControls](./react/controlbarcontrols.md) | |
145
+ | [ControlBarProps](./react/controlbarprops.md) | |
146
+ | [DisconnectButtonProps](./react/disconnectbuttonprops.md) | |
147
+ | [FocusLayoutContainerProps](./react/focuslayoutcontainerprops.md) | |
148
+ | [FocusLayoutProps](./react/focuslayoutprops.md) | |
149
+ | [FocusToggleProps](./react/focustoggleprops.md) | |
150
+ | [formatChatMessageLinks(message)](./react/formatchatmessagelinks.md) | |
151
+ | [GridLayoutProps](./react/gridlayoutprops.md) | |
152
+ | [LayoutContext](./react/layoutcontext.md) | |
153
+ | [LayoutContextProviderProps](./react/layoutcontextproviderprops.md) | |
154
+ | [LayoutContextType](./react/layoutcontexttype.md) | |
155
+ | [LiveKitRoomProps](./react/livekitroomprops.md) | |
156
+ | [LocalUserChoices](./react/localuserchoices.md) | Represents the user's choices for video and audio input devices, as well as their username. |
157
+ | [MediaDeviceMenuProps](./react/mediadevicemenuprops.md) | |
158
+ | [MediaDeviceSelectProps](./react/mediadeviceselectprops.md) | |
159
+ | [MessageDecoder](./react/messagedecoder.md) | |
160
+ | [MessageEncoder](./react/messageencoder.md) | |
161
+ | [MessageFormatter](./react/messageformatter.md) | |
162
+ | [ParticipantContext](./react/participantcontext.md) | |
163
+ | [ParticipantLoopProps](./react/participantloopprops.md) | |
164
+ | [ParticipantNameProps](./react/participantnameprops.md) | |
165
+ | [ParticipantTileProps](./react/participanttileprops.md) | |
166
+ | [PinState](./react/pinstate.md) | |
167
+ | [PreJoinProps](./react/prejoinprops.md) | Props for the PreJoin component. |
168
+ | [ReceivedChatMessage](./react/receivedchatmessage.md) | |
169
+ | [RoomAudioRendererProps](./react/roomaudiorendererprops.md) | |
170
+ | [RoomContext](./react/roomcontext.md) | |
171
+ | [RoomNameProps](./react/roomnameprops.md) | |
172
+ | [setLogLevel(level, options)](./react/setloglevel.md) | Set the log level for both the <code>@livekit/components-react</code> package and the <code>@livekit-client</code> package. To set the <code>@livekit-client</code> log independently, use the <code>liveKitClientLogLevel</code> prop on the <code>options</code> object. |
173
+ | [TrackContext](./react/trackcontext.md) | |
174
+ | [TrackLoopProps](./react/trackloopprops.md) | |
175
+ | [TrackMutedIndicatorProps](./react/trackmutedindicatorprops.md) | |
176
+ | [TrackRefContext](./react/trackrefcontext.md) | This context provides a <code>TrackReferenceOrPlaceholder</code> to all child components. |
177
+ | [TrackReference](./react/trackreference.md) | |
178
+ | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | |
179
+ | [TrackToggleProps](./react/tracktoggleprops.md) | |
180
+ | [UseChatToggleProps](./react/usechattoggleprops.md) | |
181
+ | [UseFocusToggleProps](./react/usefocustoggleprops.md) | |
182
+ | [UseIsMutedOptions](./react/useismutedoptions.md) | |
183
+ | [UseLocalParticipantOptions](./react/uselocalparticipantoptions.md) | |
184
+ | [UseMediaDeviceSelectProps](./react/usemediadeviceselectprops.md) | |
185
+ | [UseMediaTrackOptions](./react/usemediatrackoptions.md) | |
186
+ | [UseParticipantInfoOptions](./react/useparticipantinfooptions.md) | The <code>useParticipantInfo</code> hook returns the identity, name, and metadata of a given participant. It requires a <code>Participant</code> object passed as property or via the <code>ParticipantContext</code>. |
187
+ | [UseParticipantPermissionsOptions](./react/useparticipantpermissionsoptions.md) | The <code>useParticipantPermissions</code> hook returns the permissions of a given participant. |
188
+ | [UseParticipantsOptions](./react/useparticipantsoptions.md) | |
189
+ | [UseParticipantTileProps](./react/useparticipanttileprops.md) | |
190
+ | [UsePersistentUserChoicesOptions](./react/usepersistentuserchoicesoptions.md) | Options for the <code>usePersistentDeviceSettings</code> hook. |
191
+ | [UseRemoteParticipantOptions](./react/useremoteparticipantoptions.md) | |
192
+ | [UseRemoteParticipantsOptions](./react/useremoteparticipantsoptions.md) | |
193
+ | [UserInfo](./react/userinfo.md) | |
194
+ | [UseRoomInfoOptions](./react/useroominfooptions.md) | The <code>useRoomInfo</code> hook returns the name and metadata of the given <code>Room</code>. |
195
+ | [UseStartAudioProps](./react/usestartaudioprops.md) | |
196
+ | [UseStartVideoProps](./react/usestartvideoprops.md) | |
197
+ | [UseSwipeOptions](./react/useswipeoptions.md) | |
198
+ | [UseTokenOptions](./react/usetokenoptions.md) | |
199
+ | [UseTrackMutedIndicatorOptions](./react/usetrackmutedindicatoroptions.md) | |
200
+ | [UseTrackOptions](./react/usetrackoptions.md) | |
201
+ | [UseTracksHookReturnType](./react/usetrackshookreturntype.md) | |
202
+ | [UseTracksOptions](./react/usetracksoptions.md) | |
203
+ | [UseTrackToggleProps](./react/usetracktoggleprops.md) | |
204
+ | [UseVisualStableUpdateOptions](./react/usevisualstableupdateoptions.md) | |
205
+ | [VideoConferenceProps](./react/videoconferenceprops.md) | |
206
+ | [VideoTrackProps](./react/videotrackprops.md) | |
207
+ | [WidgetState](./react/widgetstate.md) | |