livekit-client 2.11.1 → 2.11.2
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/package.json
CHANGED
package/src/room/track/create.ts
CHANGED
@@ -161,7 +161,7 @@ export async function createLocalVideoTrack(
|
|
161
161
|
): Promise<LocalVideoTrack> {
|
162
162
|
const tracks = await createLocalTracks({
|
163
163
|
audio: false,
|
164
|
-
video: options,
|
164
|
+
video: options ?? true,
|
165
165
|
});
|
166
166
|
return <LocalVideoTrack>tracks[0];
|
167
167
|
}
|
@@ -170,7 +170,7 @@ export async function createLocalAudioTrack(
|
|
170
170
|
options?: AudioCaptureOptions,
|
171
171
|
): Promise<LocalAudioTrack> {
|
172
172
|
const tracks = await createLocalTracks({
|
173
|
-
audio: options,
|
173
|
+
audio: options ?? true,
|
174
174
|
video: false,
|
175
175
|
});
|
176
176
|
return <LocalAudioTrack>tracks[0];
|