@livekit/components-js-docs 0.0.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated-docs/core/encryptionstatusobservable.md +12 -0
- package/generated-docs/core/gettrackreferenceid.md +5 -1
- package/generated-docs/core/index.md +114 -109
- package/generated-docs/core/isparticipantsourcepinned.md +4 -0
- package/generated-docs/core/isparticipanttrackreferencepinned.md +16 -0
- package/generated-docs/core/mutedobserver.md +1 -4
- package/generated-docs/core/setupconnectionqualityindicator.md +1 -59
- package/generated-docs/core/setuptrackmutedindicator.md +1 -4
- package/generated-docs/core/trackreferenceid.md +9 -0
- package/generated-docs/react/audiotrackprops.md +9 -8
- package/generated-docs/react/audiotrackprops.name.md +6 -0
- package/generated-docs/react/audiotrackprops.participant.md +6 -0
- package/generated-docs/react/audiotrackprops.publication.md +6 -0
- package/generated-docs/react/audiotrackprops.source.md +7 -1
- package/generated-docs/react/audiotrackprops.trackref.md +13 -0
- package/generated-docs/react/audiovisualizerprops.md +4 -3
- package/generated-docs/react/audiovisualizerprops.participant.md +6 -0
- package/generated-docs/react/audiovisualizerprops.trackref.md +9 -0
- package/generated-docs/react/{carouselviewprops.children.md → carousellayoutprops.children.md} +1 -1
- package/generated-docs/react/carousellayoutprops.md +21 -0
- package/generated-docs/react/{carouselviewprops.orientation.md → carousellayoutprops.orientation.md} +1 -1
- package/generated-docs/react/{carouselviewprops.tracks.md → carousellayoutprops.tracks.md} +1 -1
- package/generated-docs/react/carouselview.md +15 -0
- package/generated-docs/react/chatprops.md +2 -2
- package/generated-docs/react/component/audiotrack.md +11 -4
- package/generated-docs/react/component/audiovisualizer.md +18 -1
- package/generated-docs/react/component/{carouselview.md → carousellayout.md} +8 -4
- package/generated-docs/react/component/chattoggle.md +5 -1
- package/generated-docs/react/component/clearpinbutton.md +3 -3
- package/generated-docs/react/component/connectionqualityindicator.md +1 -1
- package/generated-docs/react/component/connectionstate.md +1 -1
- package/generated-docs/react/component/connectionstatetoast.md +2 -0
- package/generated-docs/react/component/controlbar.md +1 -1
- package/generated-docs/react/component/disconnectbutton.md +1 -1
- package/generated-docs/react/component/focuslayout.md +7 -0
- package/generated-docs/react/component/focuslayoutcontainer.md +2 -0
- package/generated-docs/react/component/focustoggle.md +14 -3
- package/generated-docs/react/component/gridlayout.md +5 -1
- package/generated-docs/react/component/livekitroom.md +1 -1
- package/generated-docs/react/component/mediadevicemenu.md +1 -1
- package/generated-docs/react/component/mediadeviceselect.md +1 -1
- package/generated-docs/react/component/participantaudiotile.md +6 -1
- package/generated-docs/react/component/participantcontextifneeded.md +11 -1
- package/generated-docs/react/component/participantloop.md +1 -1
- package/generated-docs/react/component/participantname.md +1 -1
- package/generated-docs/react/component/participanttile.md +20 -5
- package/generated-docs/react/component/prejoin.md +7 -2
- package/generated-docs/react/component/roomaudiorenderer.md +1 -1
- package/generated-docs/react/component/roomname.md +1 -1
- package/generated-docs/react/component/startaudio.md +1 -1
- package/generated-docs/react/component/toast.md +9 -1
- package/generated-docs/react/component/trackloop.md +6 -6
- package/generated-docs/react/component/trackmutedindicator.md +11 -4
- package/generated-docs/react/component/tracktoggle.md +1 -1
- package/generated-docs/react/component/videoconference.md +2 -2
- package/generated-docs/react/component/videotrack.md +12 -5
- package/generated-docs/react/focuslayoutcontainerprops.focustrack.md +6 -0
- package/generated-docs/react/focuslayoutcontainerprops.participants.md +6 -0
- package/generated-docs/react/focuslayoutprops.md +5 -4
- package/generated-docs/react/focuslayoutprops.track.md +6 -0
- package/generated-docs/react/focuslayoutprops.trackref.md +13 -0
- package/generated-docs/react/focustoggleprops.md +5 -4
- package/generated-docs/react/focustoggleprops.participant.md +6 -0
- package/generated-docs/react/focustoggleprops.trackref.md +9 -0
- package/generated-docs/react/focustoggleprops.tracksource.md +7 -1
- package/generated-docs/react/hook/usechat.md +13 -1
- package/generated-docs/react/hook/usechattoggle.md +16 -1
- package/generated-docs/react/hook/useclearpinbutton.md +11 -1
- package/generated-docs/react/hook/useconnectionqualityindicator.md +17 -2
- package/generated-docs/react/hook/useconnectionstate.md +3 -1
- package/generated-docs/react/hook/usecreatelayoutcontext.md +3 -1
- package/generated-docs/react/hook/usedatachannel.md +17 -2
- package/generated-docs/react/hook/usedatachannel_1.md +17 -2
- package/generated-docs/react/hook/usedisconnectbutton.md +19 -2
- package/generated-docs/react/hook/useensurecreatelayoutcontext.md +3 -1
- package/generated-docs/react/hook/useensurelayoutcontext.md +3 -1
- package/generated-docs/react/hook/useensureparticipant.md +3 -1
- package/generated-docs/react/hook/useensureroom.md +3 -1
- package/generated-docs/react/hook/useensuretrackref.md +24 -0
- package/generated-docs/react/hook/useensuretrackreference.md +7 -1
- package/generated-docs/react/hook/usefocustoggle.md +20 -3
- package/generated-docs/react/hook/usegridlayout.md +13 -3
- package/generated-docs/react/hook/useismuted.md +13 -6
- package/generated-docs/react/hook/useismuted_1.md +29 -0
- package/generated-docs/react/hook/useisspeaking.md +12 -2
- package/generated-docs/react/hook/uselayoutcontext.md +3 -1
- package/generated-docs/react/hook/uselivekitroom.md +16 -2
- package/generated-docs/react/hook/uselocalparticipant.md +20 -3
- package/generated-docs/react/hook/uselocalparticipantpermissions.md +12 -2
- package/generated-docs/react/hook/usemaybelayoutcontext.md +3 -1
- package/generated-docs/react/hook/usemaybeparticipantcontext.md +3 -1
- package/generated-docs/react/hook/usemayberoomcontext.md +3 -1
- package/generated-docs/react/hook/usemaybetrackcontext.md +7 -1
- package/generated-docs/react/hook/usemaybetrackrefcontext.md +19 -0
- package/generated-docs/react/hook/usemediadevices.md +13 -2
- package/generated-docs/react/hook/usemediadeviceselect.md +19 -2
- package/generated-docs/react/hook/usemediatrack.md +13 -1
- package/generated-docs/react/hook/usemediatrackbyname.md +13 -1
- package/generated-docs/react/hook/useparticipantcontext.md +3 -1
- package/generated-docs/react/hook/useparticipantinfo.md +7 -1
- package/generated-docs/react/hook/useparticipantpermissions.md +3 -1
- package/generated-docs/react/hook/useparticipants.md +18 -3
- package/generated-docs/react/hook/useparticipanttile.md +12 -2
- package/generated-docs/react/hook/usepinnedtracks.md +16 -2
- package/generated-docs/react/hook/usepreviewdevice.md +7 -1
- package/generated-docs/react/hook/useremoteparticipant.md +16 -2
- package/generated-docs/react/hook/useremoteparticipants.md +18 -3
- package/generated-docs/react/hook/useroomcontext.md +3 -1
- package/generated-docs/react/hook/useroominfo.md +6 -1
- package/generated-docs/react/hook/usesortedparticipants.md +4 -2
- package/generated-docs/react/hook/usespeakingparticipants.md +11 -3
- package/generated-docs/react/hook/usetoken.md +12 -2
- package/generated-docs/react/hook/usetrack.md +31 -0
- package/generated-docs/react/hook/usetrackbyname.md +31 -0
- package/generated-docs/react/hook/usetrackcontext.md +8 -2
- package/generated-docs/react/hook/usetrackmutedindicator.md +13 -6
- package/generated-docs/react/hook/usetrackmutedindicator_1.md +29 -0
- package/generated-docs/react/hook/usetrackrefcontext.md +19 -0
- package/generated-docs/react/hook/usetracks.md +3 -1
- package/generated-docs/react/hook/usetracktoggle.md +19 -2
- package/generated-docs/react/hook/usevisualstableupdate.md +16 -7
- package/generated-docs/react/index.md +163 -155
- package/generated-docs/react/localuserchoices.md +2 -0
- package/generated-docs/react/meta-data.json +1 -1
- package/generated-docs/react/participanttileprops.md +8 -7
- package/generated-docs/react/participanttileprops.participant.md +6 -0
- package/generated-docs/react/participanttileprops.publication.md +6 -0
- package/generated-docs/react/participanttileprops.source.md +6 -0
- package/generated-docs/react/participanttileprops.trackref.md +13 -0
- package/generated-docs/react/prejoinprops.md +12 -11
- package/generated-docs/react/prejoinprops.showe2eeoptions.md +9 -0
- package/generated-docs/react/trackcontext.md +4 -0
- package/generated-docs/react/trackmutedindicatorprops.md +6 -5
- package/generated-docs/react/trackmutedindicatorprops.participant.md +6 -0
- package/generated-docs/react/trackmutedindicatorprops.source.md +7 -1
- package/generated-docs/react/trackmutedindicatorprops.trackref.md +9 -0
- package/generated-docs/react/trackrefcontext.md +13 -0
- package/generated-docs/react/usefocustoggleprops.md +6 -5
- package/generated-docs/react/usefocustoggleprops.participant.md +6 -0
- package/generated-docs/react/usefocustoggleprops.trackref.md +9 -0
- package/generated-docs/react/usefocustoggleprops.tracksource.md +7 -1
- package/generated-docs/react/useparticipantinfooptions.md +9 -1
- package/generated-docs/react/useparticipantpermissionsoptions.md +9 -1
- package/generated-docs/react/useparticipanttileprops.md +9 -8
- package/generated-docs/react/useparticipanttileprops.participant.md +7 -1
- package/generated-docs/react/useparticipanttileprops.publication.md +6 -0
- package/generated-docs/react/useparticipanttileprops.source.md +7 -1
- package/generated-docs/react/useparticipanttileprops.trackref.md +13 -0
- package/generated-docs/react/useremoteparticipantoptions.md +3 -3
- package/generated-docs/react/useremoteparticipantoptions.updateonlyon.md +4 -0
- package/generated-docs/react/useroominfooptions.md +13 -1
- package/generated-docs/react/usetrackmutedindicatoroptions.participant.md +6 -0
- package/generated-docs/react/usetrackoptions.element.md +9 -0
- package/generated-docs/react/usetrackoptions.md +18 -0
- package/generated-docs/react/usetrackoptions.props.md +9 -0
- package/generated-docs/react/videoconferenceprops.md +2 -2
- package/generated-docs/react/videotrackprops.md +10 -9
- package/generated-docs/react/videotrackprops.name.md +6 -0
- package/generated-docs/react/videotrackprops.participant.md +6 -0
- package/generated-docs/react/videotrackprops.publication.md +6 -0
- package/generated-docs/react/videotrackprops.source.md +7 -1
- package/generated-docs/react/videotrackprops.trackref.md +13 -0
- package/package.json +1 -1
- package/generated-docs/react/carouselviewprops.md +0 -21
- /package/generated-docs/{react → core}/messagedecoder.md +0 -0
- /package/generated-docs/{react → core}/messageencoder.md +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"components":[{"filename":"audioconference.md","title":"AudioConference"},{"filename":"audiotrack.md","title":"AudioTrack"},{"filename":"audiovisualizer.md","title":"AudioVisualizer"},{"filename":"
|
|
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":"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":"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":"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":"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":"usepinnedtracks.md","title":"usePinnedTracks"},{"filename":"usepreviewdevice.md","title":"usePreviewDevice"},{"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":"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"}]}
|
|
@@ -14,10 +14,11 @@ export interface ParticipantTileProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Type | Description
|
|
18
|
-
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
|
|
19
|
-
| [disableSpeakingIndicator?](./react/participanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_
|
|
20
|
-
| [onParticipantClick?](./react/participanttileprops.onparticipantclick.md) | (event: [ParticipantClickEvent](./core/participantclickevent.md)<!-- -->) => void | _(Optional)_
|
|
21
|
-
| [participant?](./react/participanttileprops.participant.md) | Participant | _(Optional)_
|
|
22
|
-
| [publication?](./react/participanttileprops.publication.md) | TrackPublication | _(Optional)_
|
|
23
|
-
| [source?](./react/participanttileprops.source.md) | Track.Source | _(Optional)_
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -------------------------------------------- |
|
|
19
|
+
| [disableSpeakingIndicator?](./react/participanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
|
|
20
|
+
| [onParticipantClick?](./react/participanttileprops.onparticipantclick.md) | (event: [ParticipantClickEvent](./core/participantclickevent.md)<!-- -->) => void | _(Optional)_ |
|
|
21
|
+
| [participant?](./react/participanttileprops.participant.md) | Participant | _(Optional)_ |
|
|
22
|
+
| [publication?](./react/participanttileprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
23
|
+
| [source?](./react/participanttileprops.source.md) | Track.Source | _(Optional)_ |
|
|
24
|
+
| [trackRef?](./react/participanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## ParticipantTileProps.participant property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
participant?: Participant;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## ParticipantTileProps.publication property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
publication?: TrackPublication;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## ParticipantTileProps.source property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
source?: Track.Source;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
## ParticipantTileProps.trackRef property
|
|
4
|
+
|
|
5
|
+
The track reference to display.
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
trackRef?: TrackReferenceOrPlaceholder;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -14,14 +14,15 @@ export interface PreJoinProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property
|
|
18
|
-
|
|
|
19
|
-
| [camLabel?](./react/prejoinprops.camlabel.md)
|
|
20
|
-
| [debug?](./react/prejoinprops.debug.md)
|
|
21
|
-
| [defaults?](./react/prejoinprops.defaults.md)
|
|
22
|
-
| [joinLabel?](./react/prejoinprops.joinlabel.md)
|
|
23
|
-
| [micLabel?](./react/prejoinprops.miclabel.md)
|
|
24
|
-
| [onError?](./react/prejoinprops.onerror.md)
|
|
25
|
-
| [onSubmit?](./react/prejoinprops.onsubmit.md)
|
|
26
|
-
| [onValidate?](./react/prejoinprops.onvalidate.md)
|
|
27
|
-
| [
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| ----------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
19
|
+
| [camLabel?](./react/prejoinprops.camlabel.md) | string | _(Optional)_ |
|
|
20
|
+
| [debug?](./react/prejoinprops.debug.md) | boolean | _(Optional)_ Display a debug window for your convenience. |
|
|
21
|
+
| [defaults?](./react/prejoinprops.defaults.md) | Partial<[LocalUserChoices](./react/localuserchoices.md)<!-- -->> | _(Optional)_ Prefill the input form with initial values. |
|
|
22
|
+
| [joinLabel?](./react/prejoinprops.joinlabel.md) | string | _(Optional)_ |
|
|
23
|
+
| [micLabel?](./react/prejoinprops.miclabel.md) | string | _(Optional)_ |
|
|
24
|
+
| [onError?](./react/prejoinprops.onerror.md) | (error: Error) => void | _(Optional)_ |
|
|
25
|
+
| [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. |
|
|
26
|
+
| [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. |
|
|
27
|
+
| [showE2EEOptions?](./react/prejoinprops.showe2eeoptions.md) | boolean | _(Optional)_ |
|
|
28
|
+
| [userLabel?](./react/prejoinprops.userlabel.md) | string | _(Optional)_ |
|
|
@@ -14,8 +14,9 @@ export interface TrackMutedIndicatorProps extends React.HTMLAttributes<HTMLDivEl
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Type
|
|
18
|
-
| --------------------------------------------------------------- |
|
|
19
|
-
| [participant?](./react/trackmutedindicatorprops.participant.md) | Participant
|
|
20
|
-
| [show?](./react/trackmutedindicatorprops.show.md) | 'always' \| 'muted' \| 'unmuted'
|
|
21
|
-
| [source](./react/trackmutedindicatorprops.source.md)
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| --------------------------------------------------------------- | -------------------------------------------------------------------- | ------------ |
|
|
19
|
+
| [participant?](./react/trackmutedindicatorprops.participant.md) | Participant | _(Optional)_ |
|
|
20
|
+
| [show?](./react/trackmutedindicatorprops.show.md) | 'always' \| 'muted' \| 'unmuted' | _(Optional)_ |
|
|
21
|
+
| [source?](./react/trackmutedindicatorprops.source.md) | Track.Source | _(Optional)_ |
|
|
22
|
+
| [trackRef?](./react/trackmutedindicatorprops.trackref.md) | [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md) | _(Optional)_ |
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## TrackMutedIndicatorProps.participant property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
participant?: Participant;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## TrackMutedIndicatorProps.source property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
|
-
source
|
|
12
|
+
source?: Track.Source;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
## TrackRefContext variable
|
|
4
|
+
|
|
5
|
+
This context provides a `TrackReferenceOrPlaceholder` to all child components.
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
TrackRefContext: React.Context<TrackReferenceOrPlaceholder | undefined>;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -12,8 +12,9 @@ export interface UseFocusToggleProps
|
|
|
12
12
|
|
|
13
13
|
## Properties
|
|
14
14
|
|
|
15
|
-
| Property | Type
|
|
16
|
-
| ---------------------------------------------------------- |
|
|
17
|
-
| [participant?](./react/usefocustoggleprops.participant.md) | Participant
|
|
18
|
-
| [props](./react/usefocustoggleprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
19
|
-
| [
|
|
15
|
+
| Property | Type | Description |
|
|
16
|
+
| ---------------------------------------------------------- | -------------------------------------------------------------------- | ------------ |
|
|
17
|
+
| [participant?](./react/usefocustoggleprops.participant.md) | Participant | _(Optional)_ |
|
|
18
|
+
| [props](./react/usefocustoggleprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement> | |
|
|
19
|
+
| [trackRef?](./react/usefocustoggleprops.trackref.md) | [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md) | _(Optional)_ |
|
|
20
|
+
| [trackSource?](./react/usefocustoggleprops.tracksource.md) | Track.Source | _(Optional)_ |
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## UseFocusToggleProps.participant property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
participant?: Participant;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## UseFocusToggleProps.trackSource property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
|
-
trackSource
|
|
12
|
+
trackSource?: Track.Source;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,13 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## UseParticipantInfoOptions interface
|
|
4
4
|
|
|
5
|
+
The `useParticipantInfo` hook returns the identity, name, and metadata of a given participant. It requires a `Participant` object passed as property or via the `ParticipantContext`<!-- -->.
|
|
6
|
+
|
|
5
7
|
**Signature:**
|
|
6
8
|
|
|
7
9
|
```typescript
|
|
8
10
|
export interface UseParticipantInfoOptions
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
const { identity, name, metadata } = useParticipantInfo({ participant });
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
{% partial file="p_usage.md" variables={exampleCount: 1} /%}
|
|
12
20
|
|
|
13
21
|
## Properties
|
|
14
22
|
|
|
@@ -2,13 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## UseParticipantPermissionsOptions interface
|
|
4
4
|
|
|
5
|
+
The `useParticipantPermissions` hook returns the permissions of a given participant.
|
|
6
|
+
|
|
5
7
|
**Signature:**
|
|
6
8
|
|
|
7
9
|
```typescript
|
|
8
10
|
export interface UseParticipantPermissionsOptions
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
const permissions = useParticipantPermissions({ participant });
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
{% partial file="p_usage.md" variables={exampleCount: 1} /%}
|
|
12
20
|
|
|
13
21
|
## Properties
|
|
14
22
|
|
|
@@ -14,11 +14,12 @@ export interface UseParticipantTileProps<T extends HTMLElement> extends React.HT
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Type | Description
|
|
18
|
-
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
|
|
19
|
-
| [disableSpeakingIndicator?](./react/useparticipanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_
|
|
20
|
-
| [htmlProps](./react/useparticipanttileprops.htmlprops.md) | React.HTMLAttributes<T> |
|
|
21
|
-
| [onParticipantClick?](./react/useparticipanttileprops.onparticipantclick.md) | (event: [ParticipantClickEvent](./core/participantclickevent.md)<!-- -->) => void | _(Optional)_
|
|
22
|
-
| [participant](./react/useparticipanttileprops.participant.md)
|
|
23
|
-
| [publication?](./react/useparticipanttileprops.publication.md) | TrackPublication | _(Optional)_
|
|
24
|
-
| [source](./react/useparticipanttileprops.source.md)
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -------------------------------------------- |
|
|
19
|
+
| [disableSpeakingIndicator?](./react/useparticipanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
|
|
20
|
+
| [htmlProps](./react/useparticipanttileprops.htmlprops.md) | React.HTMLAttributes<T> | |
|
|
21
|
+
| [onParticipantClick?](./react/useparticipanttileprops.onparticipantclick.md) | (event: [ParticipantClickEvent](./core/participantclickevent.md)<!-- -->) => void | _(Optional)_ |
|
|
22
|
+
| [participant?](./react/useparticipanttileprops.participant.md) | Participant | _(Optional)_ |
|
|
23
|
+
| [publication?](./react/useparticipanttileprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
24
|
+
| [source?](./react/useparticipanttileprops.source.md) | Track.Source | _(Optional)_ |
|
|
25
|
+
| [trackRef?](./react/useparticipanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./core/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## UseParticipantTileProps.participant property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
|
-
participant
|
|
12
|
+
participant?: Participant;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## UseParticipantTileProps.publication property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
publication?: TrackPublication;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## UseParticipantTileProps.source property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
|
-
source
|
|
12
|
+
source?: Track.Source;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
## UseParticipantTileProps.trackRef property
|
|
4
|
+
|
|
5
|
+
The track reference to display.
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
trackRef?: TrackReferenceOrPlaceholder;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -12,6 +12,6 @@ export interface UseRemoteParticipantOptions
|
|
|
12
12
|
|
|
13
13
|
## Properties
|
|
14
14
|
|
|
15
|
-
| Property | Type | Description
|
|
16
|
-
| -------------------------------------------------------------------- | -------------------- |
|
|
17
|
-
| [updateOnlyOn?](./react/useremoteparticipantoptions.updateonlyon.md) | ParticipantEvent\[\] | _(Optional)_ |
|
|
15
|
+
| Property | Type | Description |
|
|
16
|
+
| -------------------------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| [updateOnlyOn?](./react/useremoteparticipantoptions.updateonlyon.md) | ParticipantEvent\[\] | _(Optional)_ To optimize performance, you can use the <code>updateOnlyOn</code> property to decide on what <code>ParticipantEvents</code> the hook updates. By default it updates on all relevant ParticipantEvents to keep the returned participant up to date. |
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## UseRemoteParticipantOptions.updateOnlyOn property
|
|
4
4
|
|
|
5
|
+
To optimize performance, you can use the `updateOnlyOn` property to decide on what `ParticipantEvents` the hook updates. By default it updates on all relevant ParticipantEvents to keep the returned participant up to date.
|
|
6
|
+
|
|
5
7
|
**Signature:**
|
|
6
8
|
|
|
7
9
|
```typescript
|
|
8
10
|
updateOnlyOn?: ParticipantEvent[];
|
|
9
11
|
```
|
|
12
|
+
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
## UseRoomInfoOptions interface
|
|
4
4
|
|
|
5
|
+
The `useRoomInfo` hook returns the name and metadata of the given `Room`<!-- -->.
|
|
6
|
+
|
|
5
7
|
**Signature:**
|
|
6
8
|
|
|
7
9
|
```typescript
|
|
8
10
|
export interface UseRoomInfoOptions
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
Needs to be called inside a `RoomContext` or by passing a `Room` instance.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
const { name, metadata } = useRoomInfo();
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
{% partial file="p_usage.md" variables={exampleCount: 1} /%}
|
|
12
24
|
|
|
13
25
|
## Properties
|
|
14
26
|
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## UseTrackMutedIndicatorOptions.participant property
|
|
4
4
|
|
|
5
|
+
> Warning: This API is now obsolete.
|
|
6
|
+
>
|
|
7
|
+
> This parameter will be removed in a future version use `trackRef` instead.
|
|
8
|
+
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
7
11
|
```typescript
|
|
8
12
|
participant?: Participant;
|
|
9
13
|
```
|
|
14
|
+
|
|
15
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
## UseTrackOptions interface
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
export interface UseTrackOptions
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
| Property | Type | Description |
|
|
16
|
+
| ---------------------------------------------- | ---------------------------------------------------------------- | ------------ |
|
|
17
|
+
| [element?](./react/usetrackoptions.element.md) | React.RefObject<HTMLMediaElement> | _(Optional)_ |
|
|
18
|
+
| [props?](./react/usetrackoptions.props.md) | React.HTMLAttributes<HTMLVideoElement \| HTMLAudioElement> | _(Optional)_ |
|
|
@@ -16,6 +16,6 @@ export interface VideoConferenceProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
16
16
|
|
|
17
17
|
| Property | Type | Description |
|
|
18
18
|
| ----------------------------------------------------------------------------- | ----------------------------------------------- | ------------ |
|
|
19
|
-
| [chatMessageDecoder?](./react/videoconferenceprops.chatmessagedecoder.md) | [MessageDecoder](./
|
|
20
|
-
| [chatMessageEncoder?](./react/videoconferenceprops.chatmessageencoder.md) | [MessageEncoder](./
|
|
19
|
+
| [chatMessageDecoder?](./react/videoconferenceprops.chatmessagedecoder.md) | [MessageDecoder](./core/messagedecoder.md) | _(Optional)_ |
|
|
20
|
+
| [chatMessageEncoder?](./react/videoconferenceprops.chatmessageencoder.md) | [MessageEncoder](./core/messageencoder.md) | _(Optional)_ |
|
|
21
21
|
| [chatMessageFormatter?](./react/videoconferenceprops.chatmessageformatter.md) | [MessageFormatter](./react/messageformatter.md) | _(Optional)_ |
|
|
@@ -14,12 +14,13 @@ export interface VideoTrackProps extends React.HTMLAttributes<HTMLVideoElement>
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Type | Description
|
|
18
|
-
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
19
|
-
| [manageSubscription?](./react/videotrackprops.managesubscription.md) | boolean | _(Optional)_
|
|
20
|
-
| [name?](./react/videotrackprops.name.md) | string | _(Optional)_
|
|
21
|
-
| [onSubscriptionStatusChanged?](./react/videotrackprops.onsubscriptionstatuschanged.md) | (subscribed: boolean) => void | _(Optional)_
|
|
22
|
-
| [onTrackClick?](./react/videotrackprops.ontrackclick.md) | (evt: [ParticipantClickEvent](./core/participantclickevent.md)<!-- -->) => void | _(Optional)_
|
|
23
|
-
| [participant?](./react/videotrackprops.participant.md) | Participant | _(Optional)_
|
|
24
|
-
| [publication?](./react/videotrackprops.publication.md) | TrackPublication | _(Optional)_
|
|
25
|
-
| [source](./react/videotrackprops.source.md)
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
19
|
+
| [manageSubscription?](./react/videotrackprops.managesubscription.md) | boolean | _(Optional)_ |
|
|
20
|
+
| [name?](./react/videotrackprops.name.md) | string | _(Optional)_ |
|
|
21
|
+
| [onSubscriptionStatusChanged?](./react/videotrackprops.onsubscriptionstatuschanged.md) | (subscribed: boolean) => void | _(Optional)_ |
|
|
22
|
+
| [onTrackClick?](./react/videotrackprops.ontrackclick.md) | (evt: [ParticipantClickEvent](./core/participantclickevent.md)<!-- -->) => void | _(Optional)_ |
|
|
23
|
+
| [participant?](./react/videotrackprops.participant.md) | Participant | _(Optional)_ |
|
|
24
|
+
| [publication?](./react/videotrackprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
25
|
+
| [source?](./react/videotrackprops.source.md) | Track.Source | _(Optional)_ |
|
|
26
|
+
| [trackRef?](./react/videotrackprops.trackref.md) | [TrackReference](./core/trackreference.md) | _(Optional)_ The track reference of the track to render. |
|