livekit-client 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/livekit-client.esm.mjs +10 -5
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/room/Room.d.ts +1 -1
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/types.d.ts +1 -0
- package/dist/src/room/types.d.ts.map +1 -1
- package/dist/ts4.2/src/room/Room.d.ts +1 -1
- package/dist/ts4.2/src/room/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/room/Room.ts +15 -8
- package/src/room/types.ts +1 -0
package/dist/src/room/Room.d.ts
CHANGED
@@ -179,7 +179,7 @@ declare class Room extends Room_base {
|
|
179
179
|
* No actual connection to a server will be established, all state is
|
180
180
|
* @experimental
|
181
181
|
*/
|
182
|
-
simulateParticipants(options: SimulationOptions): void
|
182
|
+
simulateParticipants(options: SimulationOptions): Promise<void>;
|
183
183
|
emit<E extends keyof RoomEventCallbacks>(event: E, ...args: Parameters<RoomEventCallbacks[E]>): boolean;
|
184
184
|
}
|
185
185
|
export default Room;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,eAAe,EACf,gBAAgB,EAGhB,qBAAqB,EAQtB,MAAM,yBAAyB,CAAC;AAkBjC,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,SAAS,MAAM,aAAa,CAA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9B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/room/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC"}
|
@@ -179,7 +179,7 @@ declare class Room extends Room_base {
|
|
179
179
|
* No actual connection to a server will be established, all state is
|
180
180
|
* @experimental
|
181
181
|
*/
|
182
|
-
simulateParticipants(options: SimulationOptions): void
|
182
|
+
simulateParticipants(options: SimulationOptions): Promise<void>;
|
183
183
|
emit<E extends keyof RoomEventCallbacks>(event: E, ...args: Parameters<RoomEventCallbacks[E]>): boolean;
|
184
184
|
}
|
185
185
|
export default Room;
|
package/package.json
CHANGED
package/src/room/Room.ts
CHANGED
@@ -1281,10 +1281,11 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
|
|
1281
1281
|
* No actual connection to a server will be established, all state is
|
1282
1282
|
* @experimental
|
1283
1283
|
*/
|
1284
|
-
simulateParticipants(options: SimulationOptions) {
|
1284
|
+
async simulateParticipants(options: SimulationOptions) {
|
1285
1285
|
const publishOptions = {
|
1286
1286
|
audio: true,
|
1287
1287
|
video: true,
|
1288
|
+
useRealTracks: false,
|
1288
1289
|
...options.publish,
|
1289
1290
|
};
|
1290
1291
|
const participantOptions = {
|
@@ -1317,12 +1318,14 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
|
|
1317
1318
|
name: 'video-dummy',
|
1318
1319
|
}),
|
1319
1320
|
new LocalVideoTrack(
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1321
|
+
publishOptions.useRealTracks
|
1322
|
+
? (await navigator.mediaDevices.getUserMedia({ video: true })).getVideoTracks()[0]
|
1323
|
+
: createDummyVideoStreamTrack(
|
1324
|
+
160 * participantOptions.aspectRatios[0] ?? 1,
|
1325
|
+
160,
|
1326
|
+
true,
|
1327
|
+
true,
|
1328
|
+
),
|
1326
1329
|
),
|
1327
1330
|
);
|
1328
1331
|
// @ts-ignore
|
@@ -1337,7 +1340,11 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
|
|
1337
1340
|
sid: Math.floor(Math.random() * 10_000).toString(),
|
1338
1341
|
type: TrackType.AUDIO,
|
1339
1342
|
}),
|
1340
|
-
new LocalAudioTrack(
|
1343
|
+
new LocalAudioTrack(
|
1344
|
+
publishOptions.useRealTracks
|
1345
|
+
? (await navigator.mediaDevices.getUserMedia({ audio: true })).getAudioTracks()[0]
|
1346
|
+
: getEmptyAudioStreamTrack(),
|
1347
|
+
),
|
1341
1348
|
);
|
1342
1349
|
// @ts-ignore
|
1343
1350
|
this.localParticipant.addTrackPublication(audioPub);
|