@livekit/components-js-docs 0.1.18 → 0.1.20

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 (29) hide show
  1. package/generated-docs/react/audiotrack.md +30 -0
  2. package/generated-docs/react/{component/audiovisualizer.md → audiovisualizer.md} +6 -11
  3. package/generated-docs/react/chatentry.md +28 -0
  4. package/generated-docs/react/{component/chattoggle.md → chattoggle.md} +6 -4
  5. package/generated-docs/react/{component/clearpinbutton.md → clearpinbutton.md} +6 -4
  6. package/generated-docs/react/{component/connectionqualityindicator.md → connectionqualityindicator.md} +6 -4
  7. package/generated-docs/react/{component/connectionstate.md → connectionstate.md} +6 -11
  8. package/generated-docs/react/{component/disconnectbutton.md → disconnectbutton.md} +6 -11
  9. package/generated-docs/react/{component/focustoggle.md → focustoggle.md} +6 -11
  10. package/generated-docs/react/hook/useclearpinbutton.md +1 -1
  11. package/generated-docs/react/index.md +98 -98
  12. package/generated-docs/react/livekitroom.md +32 -0
  13. package/generated-docs/react/mediadeviceselect.md +30 -0
  14. package/generated-docs/react/meta-data.json +1 -1
  15. package/generated-docs/react/{component/participantaudiotile.md → participantaudiotile.md} +6 -21
  16. package/generated-docs/react/{component/participantname.md → participantname.md} +6 -4
  17. package/generated-docs/react/{component/participanttile.md → participanttile.md} +6 -21
  18. package/generated-docs/react/{component/roomname.md → roomname.md} +4 -11
  19. package/generated-docs/react/{component/startaudio.md → startaudio.md} +6 -9
  20. package/generated-docs/react/{component/trackmutedindicator.md → trackmutedindicator.md} +7 -16
  21. package/generated-docs/react/tracktoggle.md +31 -0
  22. package/generated-docs/react/videotrack.md +28 -0
  23. package/package.json +2 -2
  24. package/generated-docs/react/component/audiotrack.md +0 -50
  25. package/generated-docs/react/component/chatentry.md +0 -50
  26. package/generated-docs/react/component/livekitroom.md +0 -105
  27. package/generated-docs/react/component/mediadeviceselect.md +0 -73
  28. package/generated-docs/react/component/tracktoggle.md +0 -54
  29. package/generated-docs/react/component/videotrack.md +0 -48
@@ -1,20 +1,22 @@
1
1
  ---
2
2
  {
3
- "title": "ParticipantTile",
3
+ "title": "ParticipantTile variable",
4
4
  "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/participant/ParticipantTile.tsx"
5
5
  }
6
6
  ---
7
7
 
8
8
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
9
 
10
- # ParticipantTile
10
+ # ParticipantTile variable
11
11
 
12
12
  The `ParticipantTile` component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the `TrackLoop` component or by passing a track reference as property.
13
13
 
14
- ## Import
14
+ **Signature:**
15
15
 
16
16
  ```typescript
17
- import { ParticipantTile } from "@livekit/components-react";
17
+ ParticipantTile: React.ForwardRefExoticComponent<
18
+ ParticipantTileProps & React.RefAttributes<HTMLDivElement>
19
+ >;
18
20
  ```
19
21
 
20
22
  ## Usage Example 1
@@ -36,20 +38,3 @@ Using the `ParticipantTile` component as a child of the `TrackLoop` component:
36
38
  ```
37
39
 
38
40
  {% partial file="p_usage.md" variables={exampleCount: 2} /%}
39
-
40
- ## Properties
41
-
42
- {% parameter name="disableSpeakingIndicator" type="boolean" optional=true %}
43
- _(Optional)_
44
-
45
- {% /parameter %}
46
-
47
- {% parameter name="onParticipantClick" type="(event: ParticipantClickEvent) => void" optional=true %}
48
- _(Optional)_
49
-
50
- {% /parameter %}
51
-
52
- {% parameter name="trackRef" type="TrackReferenceOrPlaceholder" optional=true %}
53
- _(Optional)_ The track reference to display.
54
-
55
- {% /parameter %}
@@ -1,20 +1,20 @@
1
1
  ---
2
2
  {
3
- "title": "RoomName",
3
+ "title": "RoomName variable",
4
4
  "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/RoomName.tsx"
5
5
  }
6
6
  ---
7
7
 
8
8
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
9
 
10
- # RoomName
10
+ # RoomName variable
11
11
 
12
12
  The `RoomName` component renders the name of the connected LiveKit room inside a span tag.
13
13
 
14
- ## Import
14
+ **Signature:**
15
15
 
16
16
  ```typescript
17
- import { RoomName } from "@livekit/components-react";
17
+ RoomName: React.ForwardRefExoticComponent<RoomNameProps & React.RefAttributes<HTMLSpanElement>>;
18
18
  ```
19
19
 
20
20
  ## Usage
@@ -26,10 +26,3 @@ import { RoomName } from "@livekit/components-react";
26
26
  ```
27
27
 
28
28
  {% partial file="p_usage.md" variables={exampleCount: 1} /%}
29
-
30
- ## Properties
31
-
32
- {% parameter name="childrenPosition" type="'before' | 'after'" optional=true %}
33
- _(Optional)_
34
-
35
- {% /parameter %}
@@ -1,20 +1,22 @@
1
1
  ---
2
2
  {
3
- "title": "StartAudio",
3
+ "title": "StartAudio variable",
4
4
  "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/controls/StartAudio.tsx"
5
5
  }
6
6
  ---
7
7
 
8
8
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
9
 
10
- # StartAudio
10
+ # StartAudio variable
11
11
 
12
12
  The `StartAudio` 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.
13
13
 
14
- ## Import
14
+ **Signature:**
15
15
 
16
16
  ```typescript
17
- import { StartAudio } from "@livekit/components-react";
17
+ StartAudio: React.ForwardRefExoticComponent<
18
+ AllowAudioPlaybackProps & React.RefAttributes<HTMLButtonElement>
19
+ >;
18
20
  ```
19
21
 
20
22
  ## Usage
@@ -26,8 +28,3 @@ import { StartAudio } from "@livekit/components-react";
26
28
  ```
27
29
 
28
30
  {% partial file="p_usage.md" variables={exampleCount: 1} /%}
29
-
30
- ## Properties
31
-
32
- {% parameter name="label" type="string" optional=false %}
33
- {% /parameter %}
@@ -1,37 +1,28 @@
1
1
  ---
2
2
  {
3
- "title": "TrackMutedIndicator",
3
+ "title": "TrackMutedIndicator variable",
4
4
  "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/participant/TrackMutedIndicator.tsx"
5
5
  }
6
6
  ---
7
7
 
8
8
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
9
 
10
- # TrackMutedIndicator
10
+ # TrackMutedIndicator variable
11
11
 
12
12
  The `TrackMutedIndicator` 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.
13
13
 
14
- ## Import
14
+ **Signature:**
15
15
 
16
16
  ```typescript
17
- import { TrackMutedIndicator } from "@livekit/components-react";
17
+ TrackMutedIndicator: React.ForwardRefExoticComponent<
18
+ TrackMutedIndicatorProps & React.RefAttributes<HTMLDivElement>
19
+ >;
18
20
  ```
19
21
 
20
22
  ## Usage
21
23
 
22
24
  ```tsx
23
- <TrackMutedIndicator source={Track.Source.Camera} />
24
- <TrackMutedIndicator source={Track.Source.Microphone} />
25
+ <TrackMutedIndicator trackRef={trackRef} />
25
26
  ```
26
27
 
27
28
  {% partial file="p_usage.md" variables={exampleCount: 1} /%}
28
-
29
- ## Properties
30
-
31
- {% parameter name="trackRef" type="TrackReferenceOrPlaceholder" optional=false %}
32
- {% /parameter %}
33
-
34
- {% parameter name="show" type="'always' | 'muted' | 'unmuted'" optional=true %}
35
- _(Optional)_
36
-
37
- {% /parameter %}
@@ -0,0 +1,31 @@
1
+ ---
2
+ {
3
+ "title": "TrackToggle variable",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/controls/TrackToggle.tsx"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # TrackToggle variable
11
+
12
+ With the `TrackToggle` 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.
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ TrackToggle: React.ForwardRefExoticComponent<
18
+ TrackToggleProps<ToggleSource> & React.RefAttributes<HTMLButtonElement>
19
+ >;
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ ```tsx
25
+ <LiveKitRoom>
26
+ <TrackToggle source={Track.Source.Microphone} />
27
+ <TrackToggle source={Track.Source.Camera} />
28
+ </LiveKitRoom>
29
+ ```
30
+
31
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
@@ -0,0 +1,28 @@
1
+ ---
2
+ {
3
+ "title": "VideoTrack variable",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/participant/VideoTrack.tsx"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # VideoTrack variable
11
+
12
+ The `VideoTrack` component is responsible for rendering participant video tracks like `camera` and `screen_share`<!-- -->. This component must have access to the participant's context, or alternatively pass it a `Participant` as a property.
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ VideoTrack: React.ForwardRefExoticComponent<
18
+ VideoTrackProps & React.RefAttributes<HTMLVideoElement>
19
+ >;
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ ```tsx
25
+ <VideoTrack trackRef={trackRef} />
26
+ ```
27
+
28
+ {% partial file="p_usage.md" variables={exampleCount: 1} /%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/components-js-docs",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
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": "2.1.2"
11
+ "@livekit/components-react": "2.2.0"
12
12
  },
13
13
  "author": "",
14
14
  "license": "Apache-2.0",
@@ -1,50 +0,0 @@
1
- ---
2
- {
3
- "title": "AudioTrack",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/participant/AudioTrack.tsx"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # AudioTrack
11
-
12
- 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 `Participant` as a property.
13
-
14
- ## Import
15
-
16
- ```typescript
17
- import { AudioTrack } from "@livekit/components-react";
18
- ```
19
-
20
- ## Usage
21
-
22
- ```tsx
23
- <ParticipantTile>
24
- <AudioTrack trackRef={trackRef} />
25
- </ParticipantTile>
26
- ```
27
-
28
- {% partial file="p_usage.md" variables={exampleCount: 1} /%}
29
-
30
- ## Properties
31
-
32
- {% parameter name="muted" type="boolean" optional=true %}
33
- _(Optional)_ Mutes the audio track if set to `true`<!-- -->.
34
-
35
- {% /parameter %}
36
-
37
- {% parameter name="onSubscriptionStatusChanged" type="(subscribed: boolean) => void" optional=true %}
38
- _(Optional)_
39
-
40
- {% /parameter %}
41
-
42
- {% parameter name="trackRef" type="TrackReference" optional=true %}
43
- _(Optional)_ The track reference of the track from which the audio is to be rendered.
44
-
45
- {% /parameter %}
46
-
47
- {% parameter name="volume" type="number" optional=true %}
48
- _(Optional)_ Sets the volume of the audio track. By default, the range is between `0.0` and `1.0`<!-- -->.
49
-
50
- {% /parameter %}
@@ -1,50 +0,0 @@
1
- ---
2
- {
3
- "title": "ChatEntry",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/ChatEntry.tsx"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # ChatEntry
11
-
12
- The `ChatEntry` component holds and displays one chat message.
13
-
14
- ## Import
15
-
16
- ```typescript
17
- import { ChatEntry } from "@livekit/components-react";
18
- ```
19
-
20
- ## Usage
21
-
22
- ```tsx
23
- <Chat>
24
- <ChatEntry />
25
- </Chat>
26
- ```
27
-
28
- {% partial file="p_usage.md" variables={exampleCount: 1} /%}
29
-
30
- ## Properties
31
-
32
- {% parameter name="entry" type="ReceivedChatMessage" optional=false %}
33
- The chat massage object to display.
34
-
35
- {% /parameter %}
36
-
37
- {% parameter name="hideName" type="boolean" optional=true %}
38
- _(Optional)_ Hide sender name. Useful when displaying multiple consecutive chat messages from the same person.
39
-
40
- {% /parameter %}
41
-
42
- {% parameter name="hideTimestamp" type="boolean" optional=true %}
43
- _(Optional)_ Hide message timestamp.
44
-
45
- {% /parameter %}
46
-
47
- {% parameter name="messageFormatter" type="MessageFormatter" optional=true %}
48
- _(Optional)_ An optional formatter for the message body.
49
-
50
- {% /parameter %}
@@ -1,105 +0,0 @@
1
- ---
2
- {
3
- "title": "LiveKitRoom",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/LiveKitRoom.tsx"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # LiveKitRoom
11
-
12
- The `LiveKitRoom` component provides the room context to all its child components. It is generally the starting point of your LiveKit app and the root of the LiveKit component tree. It provides the room state as a React context to all child components, so you don't have to pass it yourself.
13
-
14
- ## Import
15
-
16
- ```typescript
17
- import { LiveKitRoom } from "@livekit/components-react";
18
- ```
19
-
20
- ## Usage
21
-
22
- ```tsx
23
- <LiveKitRoom token="<livekit-token>" serverUrl="<url-to-livekit-server>" connect={true}>
24
- ...
25
- </LiveKitRoom>
26
- ```
27
-
28
- {% partial file="p_usage.md" variables={exampleCount: 1} /%}
29
-
30
- ## Properties
31
-
32
- {% parameter name="serverUrl" type="string | undefined" optional=false %}
33
- URL to the LiveKit server. For example: `wss://<domain>.livekit.cloud` To simplify the implementation, `undefined` is also accepted as an intermediate value, but only with a valid string url can the connection be established.
34
-
35
- {% /parameter %}
36
-
37
- {% parameter name="token" type="string | undefined" optional=false %}
38
- A user specific access token for a client to authenticate to the room. This token is necessary to establish a connection to the room. To simplify the implementation, `undefined` is also accepted as an intermediate value, but only with a valid string token can the connection be established.
39
-
40
- {% /parameter %}
41
-
42
- {% parameter name="audio" type="AudioCaptureOptions | boolean" optional=true %}
43
- _(Optional)_ Publish audio immediately after connecting to your LiveKit room.
44
-
45
- {% /parameter %}
46
-
47
- {% parameter name="connect" type="boolean" optional=true %}
48
- _(Optional)_ If set to true a connection to LiveKit room is initiated.
49
-
50
- {% /parameter %}
51
-
52
- {% parameter name="connectOptions" type="RoomConnectOptions" optional=true %}
53
- _(Optional)_ Define options how to connect to the LiveKit server.
54
-
55
- {% /parameter %}
56
-
57
- {% parameter name="onConnected" type="() => void" optional=true %}
58
- _(Optional)_
59
-
60
- {% /parameter %}
61
-
62
- {% parameter name="onDisconnected" type="() => void" optional=true %}
63
- _(Optional)_
64
-
65
- {% /parameter %}
66
-
67
- {% parameter name="onEncryptionError" type="(error: Error) => void" optional=true %}
68
- _(Optional)_
69
-
70
- {% /parameter %}
71
-
72
- {% parameter name="onError" type="(error: Error) => void" optional=true %}
73
- _(Optional)_
74
-
75
- {% /parameter %}
76
-
77
- {% parameter name="onMediaDeviceFailure" type="(failure?: MediaDeviceFailure) => void" optional=true %}
78
- _(Optional)_
79
-
80
- {% /parameter %}
81
-
82
- {% parameter name="options" type="RoomOptions" optional=true %}
83
- _(Optional)_ Options for when creating a new room. When you pass your own room instance to this component, these options have no effect. Instead, set the options directly in the room instance.
84
-
85
- {% /parameter %}
86
-
87
- {% parameter name="room" type="Room" optional=true %}
88
- _(Optional)_ Optional room instance. By passing your own room instance you overwrite the `options` parameter, make sure to set the options directly on the room instance itself.
89
-
90
- {% /parameter %}
91
-
92
- {% parameter name="screen" type="ScreenShareCaptureOptions | boolean" optional=true %}
93
- _(Optional)_ Publish screen share immediately after connecting to your LiveKit room.
94
-
95
- {% /parameter %}
96
-
97
- {% parameter name="simulateParticipants" type="number | undefined" optional=true %}
98
- _(Optional)_
99
-
100
- {% /parameter %}
101
-
102
- {% parameter name="video" type="VideoCaptureOptions | boolean" optional=true %}
103
- _(Optional)_ Publish video immediately after connecting to your LiveKit room.
104
-
105
- {% /parameter %}
@@ -1,73 +0,0 @@
1
- ---
2
- {
3
- "title": "MediaDeviceSelect",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/controls/MediaDeviceSelect.tsx"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # MediaDeviceSelect
11
-
12
- The `MediaDeviceSelect` list all media devices of one kind. Clicking on one of the listed devices make it the active media device.
13
-
14
- ## Import
15
-
16
- ```typescript
17
- import { MediaDeviceSelect } from "@livekit/components-react";
18
- ```
19
-
20
- ## Usage
21
-
22
- ```tsx
23
- <LiveKitRoom>
24
- <MediaDeviceSelect kind="audioinput" />
25
- </LiveKitRoom>
26
- ```
27
-
28
- {% partial file="p_usage.md" variables={exampleCount: 1} /%}
29
-
30
- ## Properties
31
-
32
- {% parameter name="kind" type="MediaDeviceKind" optional=false %}
33
- {% /parameter %}
34
-
35
- {% parameter name="exactMatch" type="boolean" optional=true %}
36
- _(Optional)_ will force the browser to only return the specified device will call `onDeviceSelectError` with the error in case this fails
37
-
38
- {% /parameter %}
39
-
40
- {% parameter name="initialSelection" type="string" optional=true %}
41
- _(Optional)_
42
-
43
- {% /parameter %}
44
-
45
- {% parameter name="onActiveDeviceChange" type="(deviceId: string) => void" optional=true %}
46
- _(Optional)_
47
-
48
- {% /parameter %}
49
-
50
- {% parameter name="onDeviceListChange" type="(devices: MediaDeviceInfo[]) => void" optional=true %}
51
- _(Optional)_
52
-
53
- {% /parameter %}
54
-
55
- {% parameter name="onDeviceSelectError" type="(e: Error) => void" optional=true %}
56
- _(Optional)_
57
-
58
- {% /parameter %}
59
-
60
- {% parameter name="onError" type="(e: Error) => void" optional=true %}
61
- _(Optional)_
62
-
63
- {% /parameter %}
64
-
65
- {% parameter name="requestPermissions" type="boolean" optional=true %}
66
- _(Optional)_ this will call getUserMedia if the permissions are not yet given to enumerate the devices with device labels. in some browsers multiple calls to getUserMedia result in multiple permission prompts. It's generally advised only flip this to true, once a (preview) track has been acquired successfully with the appropriate permissions.
67
-
68
- {% /parameter %}
69
-
70
- {% parameter name="track" type="LocalAudioTrack | LocalVideoTrack" optional=true %}
71
- _(Optional)_
72
-
73
- {% /parameter %}
@@ -1,54 +0,0 @@
1
- ---
2
- {
3
- "title": "TrackToggle",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/controls/TrackToggle.tsx"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # TrackToggle
11
-
12
- With the `TrackToggle` 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.
13
-
14
- ## Import
15
-
16
- ```typescript
17
- import { TrackToggle } from "@livekit/components-react";
18
- ```
19
-
20
- ## Usage
21
-
22
- ```tsx
23
- <LiveKitRoom>
24
- <TrackToggle source={Track.Source.Microphone} />
25
- <TrackToggle source={Track.Source.Camera} />
26
- </LiveKitRoom>
27
- ```
28
-
29
- {% partial file="p_usage.md" variables={exampleCount: 1} /%}
30
-
31
- ## Properties
32
-
33
- {% parameter name="source" type="T" optional=false %}
34
- {% /parameter %}
35
-
36
- {% parameter name="captureOptions" type="CaptureOptionsBySource<T>" optional=true %}
37
- _(Optional)_
38
-
39
- {% /parameter %}
40
-
41
- {% parameter name="initialState" type="boolean" optional=true %}
42
- _(Optional)_
43
-
44
- {% /parameter %}
45
-
46
- {% parameter name="onChange" type="(enabled: boolean, isUserInitiated: boolean) => void" optional=true %}
47
- _(Optional)_ Function that is called when the enabled state of the toggle changes. The second function argument `isUserInitiated` is `true` if the change was initiated by a user interaction, such as a click.
48
-
49
- {% /parameter %}
50
-
51
- {% parameter name="showIcon" type="boolean" optional=true %}
52
- _(Optional)_
53
-
54
- {% /parameter %}
@@ -1,48 +0,0 @@
1
- ---
2
- {
3
- "title": "VideoTrack",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/participant/VideoTrack.tsx"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # VideoTrack
11
-
12
- The `VideoTrack` component is responsible for rendering participant video tracks like `camera` and `screen_share`<!-- -->. This component must have access to the participant's context, or alternatively pass it a `Participant` as a property.
13
-
14
- ## Import
15
-
16
- ```typescript
17
- import { VideoTrack } from "@livekit/components-react";
18
- ```
19
-
20
- ## Usage
21
-
22
- ```tsx
23
- <VideoTrack trackRef={trackRef} />
24
- ```
25
-
26
- {% partial file="p_usage.md" variables={exampleCount: 1} /%}
27
-
28
- ## Properties
29
-
30
- {% parameter name="manageSubscription" type="boolean" optional=true %}
31
- _(Optional)_
32
-
33
- {% /parameter %}
34
-
35
- {% parameter name="onSubscriptionStatusChanged" type="(subscribed: boolean) => void" optional=true %}
36
- _(Optional)_
37
-
38
- {% /parameter %}
39
-
40
- {% parameter name="onTrackClick" type="(evt: ParticipantClickEvent) => void" optional=true %}
41
- _(Optional)_
42
-
43
- {% /parameter %}
44
-
45
- {% parameter name="trackRef" type="TrackReference" optional=true %}
46
- _(Optional)_ The track reference of the track to render.
47
-
48
- {% /parameter %}