You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,11 @@ import {
47
47
48
48
// creates a new room with options
49
49
const room =newRoom({
50
-
// automatically manage video quality
51
-
autoManageVideo: true,
50
+
// automatically manage subscribed video quality
51
+
adaptiveStream: true,
52
+
53
+
// optimize publishing bandwidth and CPU for simulcasted tracks
54
+
dynacast: true,
52
55
53
56
// default capture settings
54
57
videoCaptureDefaults: {
@@ -152,7 +155,21 @@ if (p) {
152
155
}
153
156
```
154
157
155
-
### Advanced track manipulation
158
+
### Creating a track prior to creating a room
159
+
160
+
In some cases, it may be useful to create a track before creating a room. For
161
+
example, when building a staging area so the user may check their own camera.
162
+
163
+
You can use our global track creation functions for this:
164
+
165
+
```typescript
166
+
const tracks =awaitcreateLocalTracks({
167
+
audio: true,
168
+
video: true,
169
+
});
170
+
```
171
+
172
+
### Publish tracks from any source
156
173
157
174
LiveKit lets you publish any track as long as it can be represented by a MediaStreamTrack. You can specify a name on the track in order to identify it later.
0 commit comments