@livekit/components-js-docs 0.1.8 → 0.1.9
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/captureoptionsbysource.md +4 -4
- package/generated-docs/core/createmediadeviceobserver.md +1 -1
- package/generated-docs/core/defaultuserchoices.md +16 -0
- package/generated-docs/core/index.md +5 -4
- package/generated-docs/core/localuserchoices.md +0 -2
- package/generated-docs/core/participanttrackevents.md +16 -0
- package/generated-docs/core/participanttrackidentifier.md +23 -0
- package/generated-docs/core/participanttracksobservable.md +19 -0
- package/generated-docs/core/sendmessage.md +1 -2
- package/generated-docs/core/setupdatamessagehandler.md +1 -1
- package/generated-docs/react/audiotrackprops.md +0 -4
- package/generated-docs/react/audiovisualizerprops.md +3 -4
- package/generated-docs/react/component/audiotrack.md +0 -36
- package/generated-docs/react/component/audiovisualizer.md +0 -9
- package/generated-docs/react/component/focuslayout.md +0 -9
- package/generated-docs/react/component/focuslayoutcontainer.md +0 -20
- package/generated-docs/react/component/focustoggle.md +0 -18
- package/generated-docs/react/component/participantaudiotile.md +0 -27
- package/generated-docs/react/component/participanttile.md +0 -27
- package/generated-docs/react/component/prejoin.md +0 -9
- package/generated-docs/react/component/trackmutedindicator.md +2 -22
- package/generated-docs/react/component/videotrack.md +0 -36
- package/generated-docs/react/focuslayoutcontainerprops.md +0 -7
- package/generated-docs/react/focuslayoutprops.md +0 -1
- package/generated-docs/react/focustoggleprops.md +3 -5
- package/generated-docs/react/hook/usefocustoggle.md +0 -14
- package/generated-docs/react/hook/usemediadevices.md +2 -1
- package/generated-docs/react/hook/useparticipanttile.md +0 -21
- package/generated-docs/react/hook/useparticipanttracks.md +34 -0
- package/generated-docs/react/hook/usepreviewtracks.md +1 -1
- package/generated-docs/react/hook/usetrackbyname.md +5 -9
- package/generated-docs/react/index.md +76 -88
- package/generated-docs/react/localuserchoices.md +0 -2
- package/generated-docs/react/meta-data.json +1 -1
- package/generated-docs/react/participanttileprops.md +0 -3
- package/generated-docs/react/prejoinprops.md +0 -1
- package/generated-docs/react/trackmutedindicatorprops.md +4 -6
- package/generated-docs/react/trackmutedindicatorprops.trackref.md +1 -1
- package/generated-docs/react/usefocustoggleprops.md +4 -6
- package/generated-docs/react/useparticipanttileprops.md +0 -3
- package/generated-docs/react/usetrackshookreturntype.md +2 -2
- package/generated-docs/react/videotrackprops.md +0 -4
- package/package.json +2 -2
- package/generated-docs/core/datasendoptions.md +0 -19
- package/generated-docs/core/isparticipantsourcepinned.md +0 -32
- package/generated-docs/core/trackidentifier.md +0 -24
- package/generated-docs/react/audiotrackprops.name.md +0 -23
- package/generated-docs/react/audiotrackprops.participant.md +0 -23
- package/generated-docs/react/audiotrackprops.publication.md +0 -23
- package/generated-docs/react/audiotrackprops.source.md +0 -23
- package/generated-docs/react/audiovisualizerprops.participant.md +0 -23
- package/generated-docs/react/carouselview.md +0 -26
- package/generated-docs/react/focuslayoutcontainerprops.focustrack.md +0 -23
- package/generated-docs/react/focuslayoutcontainerprops.participants.md +0 -23
- package/generated-docs/react/focuslayoutprops.track.md +0 -23
- package/generated-docs/react/focustoggleprops.participant.md +0 -23
- package/generated-docs/react/focustoggleprops.tracksource.md +0 -23
- package/generated-docs/react/hook/useensuretrackreference.md +0 -39
- package/generated-docs/react/hook/useismuted_1.md +0 -40
- package/generated-docs/react/hook/usemaybetrackcontext.md +0 -34
- package/generated-docs/react/hook/usemediatrack.md +0 -49
- package/generated-docs/react/hook/usemediatrackbyname.md +0 -49
- package/generated-docs/react/hook/usetrack.md +0 -38
- package/generated-docs/react/hook/usetrackcontext.md +0 -34
- package/generated-docs/react/hook/usetrackmutedindicator_1.md +0 -40
- package/generated-docs/react/participanttileprops.participant.md +0 -23
- package/generated-docs/react/participanttileprops.publication.md +0 -23
- package/generated-docs/react/participanttileprops.source.md +0 -23
- package/generated-docs/react/prejoinprops.showe2eeoptions.md +0 -23
- package/generated-docs/react/trackcontext.md +0 -26
- package/generated-docs/react/trackmutedindicatorprops.participant.md +0 -23
- package/generated-docs/react/trackmutedindicatorprops.source.md +0 -23
- package/generated-docs/react/usefocustoggleprops.participant.md +0 -23
- package/generated-docs/react/usefocustoggleprops.tracksource.md +0 -23
- package/generated-docs/react/usemediatrackoptions.element.md +0 -13
- package/generated-docs/react/usemediatrackoptions.md +0 -25
- package/generated-docs/react/usemediatrackoptions.props.md +0 -13
- package/generated-docs/react/useparticipanttileprops.participant.md +0 -23
- package/generated-docs/react/useparticipanttileprops.publication.md +0 -23
- package/generated-docs/react/useparticipanttileprops.source.md +0 -23
- package/generated-docs/react/usetrackmutedindicatoroptions.md +0 -24
- package/generated-docs/react/usetrackmutedindicatoroptions.participant.md +0 -23
- package/generated-docs/react/usetrackoptions.element.md +0 -13
- package/generated-docs/react/usetrackoptions.md +0 -25
- package/generated-docs/react/usetrackoptions.props.md +0 -13
- package/generated-docs/react/videotrackprops.name.md +0 -23
- package/generated-docs/react/videotrackprops.participant.md +0 -23
- package/generated-docs/react/videotrackprops.publication.md +0 -23
- package/generated-docs/react/videotrackprops.source.md +0 -23
|
@@ -25,7 +25,4 @@ export interface ParticipantTileProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
25
25
|
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------- |
|
|
26
26
|
| [disableSpeakingIndicator?](./react/participanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
|
|
27
27
|
| [onParticipantClick?](./react/participanttileprops.onparticipantclick.md) | (event: ParticipantClickEvent) => void | _(Optional)_ |
|
|
28
|
-
| [participant?](./react/participanttileprops.participant.md) | Participant | _(Optional)_ |
|
|
29
|
-
| [publication?](./react/participanttileprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
30
|
-
| [source?](./react/participanttileprops.source.md) | Track.Source | _(Optional)_ |
|
|
31
28
|
| [trackRef?](./react/participanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
|
|
@@ -34,5 +34,4 @@ export interface PreJoinProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
34
34
|
| [onSubmit?](./react/prejoinprops.onsubmit.md) | (values: [LocalUserChoices](./react/localuserchoices.md)<!-- -->) => void | _(Optional)_ This function is called with the <code>LocalUserChoices</code> if validation is passed. |
|
|
35
35
|
| [onValidate?](./react/prejoinprops.onvalidate.md) | (values: [LocalUserChoices](./react/localuserchoices.md)<!-- -->) => boolean | _(Optional)_ Provide your custom validation function. Only if validation is successful the user choices are past to the onSubmit callback. |
|
|
36
36
|
| [persistUserChoices?](./react/prejoinprops.persistuserchoices.md) | boolean | _(Optional)_ If true, user choices are persisted across sessions. |
|
|
37
|
-
| [showE2EEOptions?](./react/prejoinprops.showe2eeoptions.md) | boolean | _(Optional)_ |
|
|
38
37
|
| [userLabel?](./react/prejoinprops.userlabel.md) | string | _(Optional)_ |
|
|
@@ -21,9 +21,7 @@ export interface TrackMutedIndicatorProps extends React.HTMLAttributes<HTMLDivEl
|
|
|
21
21
|
|
|
22
22
|
## Properties
|
|
23
23
|
|
|
24
|
-
| Property
|
|
25
|
-
|
|
|
26
|
-
| [
|
|
27
|
-
| [
|
|
28
|
-
| [source?](./react/trackmutedindicatorprops.source.md) | Track.Source | _(Optional)_ |
|
|
29
|
-
| [trackRef?](./react/trackmutedindicatorprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| -------------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
|
|
26
|
+
| [show?](./react/trackmutedindicatorprops.show.md) | 'always' \| 'muted' \| 'unmuted' | _(Optional)_ |
|
|
27
|
+
| [trackRef](./react/trackmutedindicatorprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | |
|
|
@@ -19,9 +19,7 @@ export interface UseFocusToggleProps
|
|
|
19
19
|
|
|
20
20
|
## Properties
|
|
21
21
|
|
|
22
|
-
| Property
|
|
23
|
-
|
|
|
24
|
-
| [
|
|
25
|
-
| [
|
|
26
|
-
| [trackRef?](./react/usefocustoggleprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
|
|
27
|
-
| [trackSource?](./react/usefocustoggleprops.tracksource.md) | Track.Source | _(Optional)_ |
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| ---------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
|
|
24
|
+
| [props](./react/usefocustoggleprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement> | |
|
|
25
|
+
| [trackRef?](./react/usefocustoggleprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
|
|
@@ -26,7 +26,4 @@ export interface UseParticipantTileProps<T extends HTMLElement> extends React.HT
|
|
|
26
26
|
| [disableSpeakingIndicator?](./react/useparticipanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
|
|
27
27
|
| [htmlProps](./react/useparticipanttileprops.htmlprops.md) | React.HTMLAttributes<T> | |
|
|
28
28
|
| [onParticipantClick?](./react/useparticipanttileprops.onparticipantclick.md) | (event: ParticipantClickEvent) => void | _(Optional)_ |
|
|
29
|
-
| [participant?](./react/useparticipanttileprops.participant.md) | Participant | _(Optional)_ |
|
|
30
|
-
| [publication?](./react/useparticipanttileprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
31
|
-
| [source?](./react/useparticipanttileprops.source.md) | Track.Source | _(Optional)_ |
|
|
32
29
|
| [trackRef?](./react/useparticipanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
export type UseTracksHookReturnType<T> = T extends Track.Source[]
|
|
16
16
|
? TrackReference[]
|
|
17
17
|
: T extends TrackSourceWithOptions[]
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
? TrackReferenceOrPlaceholder[]
|
|
19
|
+
: never;
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
**References:** [TrackReference](./react/trackreference.md)<!-- -->, [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md)
|
|
@@ -24,10 +24,6 @@ export interface VideoTrackProps extends React.VideoHTMLAttributes<HTMLVideoElem
|
|
|
24
24
|
| Property | Type | Description |
|
|
25
25
|
| -------------------------------------------------------------------------------------- | ------------------------------------------- | -------------------------------------------------------- |
|
|
26
26
|
| [manageSubscription?](./react/videotrackprops.managesubscription.md) | boolean | _(Optional)_ |
|
|
27
|
-
| [name?](./react/videotrackprops.name.md) | string | _(Optional)_ |
|
|
28
27
|
| [onSubscriptionStatusChanged?](./react/videotrackprops.onsubscriptionstatuschanged.md) | (subscribed: boolean) => void | _(Optional)_ |
|
|
29
28
|
| [onTrackClick?](./react/videotrackprops.ontrackclick.md) | (evt: ParticipantClickEvent) => void | _(Optional)_ |
|
|
30
|
-
| [participant?](./react/videotrackprops.participant.md) | Participant | _(Optional)_ |
|
|
31
|
-
| [publication?](./react/videotrackprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
32
|
-
| [source?](./react/videotrackprops.source.md) | Track.Source | _(Optional)_ |
|
|
33
29
|
| [trackRef?](./react/videotrackprops.trackref.md) | [TrackReference](./react/trackreference.md) | _(Optional)_ The track reference of the track to render. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/components-js-docs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Automatically generated documentation pages for LiveKit Components JS. Intended to be consumed by the documentation page.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"directory": "/docs/beta-docs"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@livekit/components-react": "
|
|
11
|
+
"@livekit/components-react": "2.0.0"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "Apache-2.0",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "DataSendOptions type",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/core/src/observables/dataChannel.ts"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# DataSendOptions type
|
|
11
|
-
|
|
12
|
-
**Signature:**
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
export type DataSendOptions = {
|
|
16
|
-
kind?: DataPacket_Kind;
|
|
17
|
-
destination?: string[];
|
|
18
|
-
};
|
|
19
|
-
```
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "isParticipantSourcePinned",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/core/src/utils.ts"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# isParticipantSourcePinned
|
|
11
|
-
|
|
12
|
-
{% callout type="caution" variation="normal" %}
|
|
13
|
-
|
|
14
|
-
This API is deprecated:
|
|
15
|
-
|
|
16
|
-
Use [isParticipantTrackReferencePinned()](./core/isparticipanttrackreferencepinned.md) instead.
|
|
17
|
-
|
|
18
|
-
{% /callout %}
|
|
19
|
-
|
|
20
|
-
Check if the participant track source is pinned.
|
|
21
|
-
|
|
22
|
-
**Signature:**
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
export declare function isParticipantSourcePinned(
|
|
26
|
-
participant: Participant,
|
|
27
|
-
source: Track.Source,
|
|
28
|
-
pinState: PinState | undefined
|
|
29
|
-
): boolean;
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "TrackIdentifier type",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/core/src/types.ts"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# TrackIdentifier type
|
|
11
|
-
|
|
12
|
-
The TrackIdentifier type is used to select Tracks either based on - Track.Source and/or name of the track, e.g. `{source: Track.Source.Camera}` or `{name: "my-track"}` - TrackReference (participant and publication)
|
|
13
|
-
|
|
14
|
-
**Signature:**
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
export type TrackIdentifier<T extends Track.Source = Track.Source> =
|
|
18
|
-
| TrackSource<T>
|
|
19
|
-
| TrackReference;
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
**References:** [TrackSource](./core/tracksource.md)<!-- -->, [TrackReference](./core/trackreference.md)
|
|
23
|
-
|
|
24
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "AudioTrackProps.name property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# AudioTrackProps.name property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
This property will be removed in a future version use `trackRef` instead.
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
name?: string;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "AudioTrackProps.participant property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# AudioTrackProps.participant property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
This property will be removed in a future version use `trackRef` instead.
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
participant?: Participant;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "AudioTrackProps.publication property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# AudioTrackProps.publication property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
This property will be removed in a future version use `trackRef` instead.
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
publication?: TrackPublication;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "AudioTrackProps.source property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# AudioTrackProps.source property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
This property will be removed in a future version use `trackRef` instead.
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
source?: Track.Source;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "AudioVisualizerProps.participant property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# AudioVisualizerProps.participant property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
this property will be removed in a future version, use `trackRef` instead
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
participant?: Participant;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "CarouselView variable",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/layout/CarouselLayout.tsx"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# CarouselView variable
|
|
11
|
-
|
|
12
|
-
{% callout type="caution" variation="normal" %}
|
|
13
|
-
|
|
14
|
-
This API is deprecated:
|
|
15
|
-
|
|
16
|
-
Renamed to \[\[CarouselLayout\]\]
|
|
17
|
-
|
|
18
|
-
{% /callout %}
|
|
19
|
-
|
|
20
|
-
**Signature:**
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
CarouselView: typeof CarouselLayout;
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "FocusLayoutContainerProps.focusTrack property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# FocusLayoutContainerProps.focusTrack property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
This property has no effect and will be removed in a future version.
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
focusTrack?: TrackReference;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "FocusLayoutContainerProps.participants property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# FocusLayoutContainerProps.participants property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
This property has no effect and will be removed in a future version.
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
participants?: Array<Participant>;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "FocusLayoutProps.track property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# FocusLayoutProps.track property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
This property will be removed in a future version use `trackRef` instead.
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
track?: TrackReferenceOrPlaceholder;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "FocusToggleProps.participant property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# FocusToggleProps.participant property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
This parameter will be removed in a future version use `trackRef` instead.
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
participant?: Participant;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "FocusToggleProps.trackSource property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# FocusToggleProps.trackSource property
|
|
8
|
-
|
|
9
|
-
{% callout type="caution" variation="normal" %}
|
|
10
|
-
|
|
11
|
-
This API is deprecated:
|
|
12
|
-
|
|
13
|
-
This parameter will be removed in a future version use `trackRef` instead.
|
|
14
|
-
|
|
15
|
-
{% /callout %}
|
|
16
|
-
|
|
17
|
-
**Signature:**
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
trackSource?: Track.Source;
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "useEnsureTrackReference",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/context/track-reference-context.ts"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# useEnsureTrackReference
|
|
11
|
-
|
|
12
|
-
{% callout type="caution" variation="normal" %}
|
|
13
|
-
|
|
14
|
-
This API is deprecated:
|
|
15
|
-
|
|
16
|
-
`useEnsureTrackReference` has been renamed to `useEnsureTrackRef`<!-- -->, use this as a drop in replacement.
|
|
17
|
-
|
|
18
|
-
{% /callout %}
|
|
19
|
-
|
|
20
|
-
Ensures that a track reference is provided, either via context or explicitly as a parameter. If not inside a `TrackContext` and no track reference is provided, an error is thrown.
|
|
21
|
-
|
|
22
|
-
## Import
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
import { useEnsureTrackReference } from "@livekit/components-react";
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
29
|
-
|
|
30
|
-
## Properties
|
|
31
|
-
|
|
32
|
-
{% parameter name="track" type="TrackReferenceOrPlaceholder" optional=true %}
|
|
33
|
-
{% /parameter %}
|
|
34
|
-
|
|
35
|
-
## Returns
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
TrackReferenceOrPlaceholder;
|
|
39
|
-
```
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "useIsMuted",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useIsMuted.ts"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# useIsMuted
|
|
11
|
-
|
|
12
|
-
{% callout type="caution" variation="normal" %}
|
|
13
|
-
|
|
14
|
-
This API is deprecated:
|
|
15
|
-
|
|
16
|
-
This overload will be removed in a future version, pass in trackRef instead.
|
|
17
|
-
|
|
18
|
-
{% /callout %}
|
|
19
|
-
|
|
20
|
-
## Import
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import { useIsMuted } from "@livekit/components-react";
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
27
|
-
|
|
28
|
-
## Properties
|
|
29
|
-
|
|
30
|
-
{% parameter name="source" type="Track.Source" optional=false %}
|
|
31
|
-
{% /parameter %}
|
|
32
|
-
|
|
33
|
-
{% parameter name="options" type="UseIsMutedOptions" optional=true %}
|
|
34
|
-
{% /parameter %}
|
|
35
|
-
|
|
36
|
-
## Returns
|
|
37
|
-
|
|
38
|
-
```typescript
|
|
39
|
-
boolean;
|
|
40
|
-
```
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "useMaybeTrackContext",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/context/track-reference-context.ts"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# useMaybeTrackContext
|
|
11
|
-
|
|
12
|
-
{% callout type="caution" variation="normal" %}
|
|
13
|
-
|
|
14
|
-
This API is deprecated:
|
|
15
|
-
|
|
16
|
-
`useMaybeTrackContext` has been renamed to `useMaybeTrackRefContext`<!-- -->, use this as a drop in replacement.
|
|
17
|
-
|
|
18
|
-
{% /callout %}
|
|
19
|
-
|
|
20
|
-
Returns a track reference from the `TrackContext` if it exists, otherwise `undefined`<!-- -->.
|
|
21
|
-
|
|
22
|
-
## Import
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
import { useMaybeTrackContext } from "@livekit/components-react";
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
29
|
-
|
|
30
|
-
## Returns
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
TrackReferenceOrPlaceholder | undefined;
|
|
34
|
-
```
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "useMediaTrack",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useMediaTrack.ts"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# useMediaTrack
|
|
11
|
-
|
|
12
|
-
{% callout type="caution" variation="normal" %}
|
|
13
|
-
|
|
14
|
-
This API is deprecated:
|
|
15
|
-
|
|
16
|
-
use `useTrack` instead
|
|
17
|
-
|
|
18
|
-
{% /callout %}
|
|
19
|
-
|
|
20
|
-
## Import
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import { useMediaTrack } from "@livekit/components-react";
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
27
|
-
|
|
28
|
-
## Properties
|
|
29
|
-
|
|
30
|
-
{% parameter name="source" type="VideoSource | AudioSource" optional=false %}
|
|
31
|
-
{% /parameter %}
|
|
32
|
-
|
|
33
|
-
{% parameter name="options" type="UseMediaTrackOptions" optional=true %}
|
|
34
|
-
{% /parameter %}
|
|
35
|
-
|
|
36
|
-
{% parameter name="participant" type="Participant" optional=true %}
|
|
37
|
-
{% /parameter %}
|
|
38
|
-
|
|
39
|
-
## Returns
|
|
40
|
-
|
|
41
|
-
```typescript
|
|
42
|
-
{
|
|
43
|
-
publication: import("livekit-client").TrackPublication | undefined;
|
|
44
|
-
isMuted: boolean | undefined;
|
|
45
|
-
isSubscribed: boolean | undefined;
|
|
46
|
-
track: import("livekit-client").Track | undefined;
|
|
47
|
-
elementProps: React.HTMLAttributes<HTMLElement>;
|
|
48
|
-
}
|
|
49
|
-
```
|