livekit-client 2.9.4 → 2.9.6
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/dist/livekit-client.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +80 -17
- 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/api/SignalClient.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/errors.d.ts +4 -0
- package/dist/src/room/errors.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts +1 -0
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/track/utils.d.ts +2 -1
- package/dist/src/room/track/utils.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/ts4.2/src/room/errors.d.ts +4 -0
- package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +1 -0
- package/dist/ts4.2/src/room/track/utils.d.ts +2 -1
- package/package.json +2 -2
- package/src/api/SignalClient.ts +28 -12
- package/src/room/RTCEngine.ts +1 -1
- package/src/room/Room.ts +1 -2
- package/src/room/errors.ts +10 -0
- package/src/room/participant/LocalParticipant.ts +28 -0
- package/src/room/track/LocalTrack.ts +1 -1
- package/src/room/track/utils.ts +31 -2
- package/src/room/utils.ts +1 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SignalClient.d.ts","sourceRoot":"","sources":["../../../src/api/SignalClient.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,iBAAiB,EAEjB,uBAAuB,EAEvB,YAAY,EACZ,YAAY,EAGZ,eAAe,EAEf,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,kBAAkB,EAClB,aAAa,EAEb,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,iBAAi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IACxC,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACvE,mBAAmB,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvE,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,EAAE,iBAAiB,GAAG,gBAAgB,KAAK,IAAI,CAAC;IAChG,oBAAoB,EAAE,CAAC,WAAW,EAAE,qBAAqB,EAAE,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAClG,eAAe,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;CAC7E,CAAC"}
|
@@ -35,6 +35,10 @@ export declare class NegotiationError extends LivekitError {
|
|
35
35
|
export declare class PublishDataError extends LivekitError {
|
36
36
|
constructor(message?: string);
|
37
37
|
}
|
38
|
+
export declare class PublishTrackError extends LivekitError {
|
39
|
+
status: number;
|
40
|
+
constructor(message: string, status: number);
|
41
|
+
}
|
38
42
|
export type RequestErrorReason = Exclude<RequestResponse_Reason, RequestResponse_Reason.OK> | 'TimeoutError';
|
39
43
|
export declare class SignalRequestError extends LivekitError {
|
40
44
|
reason: RequestErrorReason;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/room/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE7E,qBAAa,YAAa,SAAQ,KAAK;IACrC,IAAI,EAAE,MAAM,CAAC;gBAED,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAK3C;AAED,oBAAY,qBAAqB;IAC/B,UAAU,IAAA;IACV,iBAAiB,IAAA;IACjB,aAAa,IAAA;IACb,SAAS,IAAA;IACT,YAAY,IAAA;CACb;AAED,qBAAa,eAAgB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MAAM;CAK5C;AAED,MAAM,MAAM,kBAAkB,GAC1B,OAAO,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,EAAE,CAAC,GAC1D,cAAc,CAAC;AAEnB,qBAAa,kBAAmB,SAAQ,YAAY;IAClD,MAAM,EAAE,kBAAkB,CAAC;IAE3B,UAAU,EAAE,MAAM,CAAC;gBAEP,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB;CAKxD;AAED,oBAAY,kBAAkB;IAE5B,gBAAgB,qBAAqB;IAErC,QAAQ,aAAa;IAErB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AAED,yBAAiB,kBAAkB,CAAC;IAClC,SAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,kBAAkB,GAAG,SAAS,CAarE;CACF"}
|
@@ -125,6 +125,7 @@ export default class LocalParticipant extends Participant {
|
|
125
125
|
*/
|
126
126
|
publishTrack(track: LocalTrack | MediaStreamTrack, options?: TrackPublishOptions): Promise<LocalTrackPublication>;
|
127
127
|
private publishOrRepublishTrack;
|
128
|
+
private hasPermissionsToPublish;
|
128
129
|
private publish;
|
129
130
|
get isLocal(): boolean;
|
130
131
|
/** @internal
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAUL,eAAe,EACf,qBAAqB,EAatB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAUL,eAAe,EACf,qBAAqB,EAatB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ublishedResponse } from '@livekit/protocol';
|
1
|
+
import { TrackPublishedResponse, TrackSource } from '@livekit/protocol';
|
2
2
|
import type { AudioProcessorOptions, TrackProcessor, VideoProcessorOptions } from '../..';
|
3
3
|
import { Track } from './Track';
|
4
4
|
import type { TrackPublication } from './TrackPublication';
|
@@ -41,4 +41,5 @@ export declare function extractProcessorsFromOptions(options: CreateLocalTracksO
|
|
41
41
|
video?: boolean | VideoCaptureOptions;
|
42
42
|
};
|
43
43
|
};
|
44
|
+
export declare function getTrackSourceFromProto(source: TrackSource): Track.Source;
|
44
45
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/room/track/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/room/track/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAG1F,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,wBAAgB,mBAAmB,CACjC,OAAO,CAAC,EAAE,wBAAwB,EAClC,aAAa,CAAC,EAAE,mBAAmB,EACnC,aAAa,CAAC,EAAE,mBAAmB,GAClC,wBAAwB,CAgC1B;AAYD,wBAAgB,qBAAqB,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G,CAAC,IAAI,gBAAgB,CAExE;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,WAAW,GAAG,CAAC,IAAI,iBAAiB,CAE1E;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,EAAE,CAuB5D"}
|
@@ -35,6 +35,10 @@ export declare class NegotiationError extends LivekitError {
|
|
35
35
|
export declare class PublishDataError extends LivekitError {
|
36
36
|
constructor(message?: string);
|
37
37
|
}
|
38
|
+
export declare class PublishTrackError extends LivekitError {
|
39
|
+
status: number;
|
40
|
+
constructor(message: string, status: number);
|
41
|
+
}
|
38
42
|
export type RequestErrorReason = Exclude<RequestResponse_Reason, RequestResponse_Reason.OK> | 'TimeoutError';
|
39
43
|
export declare class SignalRequestError extends LivekitError {
|
40
44
|
reason: RequestErrorReason;
|
@@ -125,6 +125,7 @@ export default class LocalParticipant extends Participant {
|
|
125
125
|
*/
|
126
126
|
publishTrack(track: LocalTrack | MediaStreamTrack, options?: TrackPublishOptions): Promise<LocalTrackPublication>;
|
127
127
|
private publishOrRepublishTrack;
|
128
|
+
private hasPermissionsToPublish;
|
128
129
|
private publish;
|
129
130
|
get isLocal(): boolean;
|
130
131
|
/** @internal
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TrackPublishedResponse } from '@livekit/protocol';
|
1
|
+
import { TrackPublishedResponse, TrackSource } from '@livekit/protocol';
|
2
2
|
import type { AudioProcessorOptions, TrackProcessor, VideoProcessorOptions } from '../..';
|
3
3
|
import { Track } from './Track';
|
4
4
|
import type { TrackPublication } from './TrackPublication';
|
@@ -41,4 +41,5 @@ export declare function extractProcessorsFromOptions(options: CreateLocalTracksO
|
|
41
41
|
video?: boolean | VideoCaptureOptions;
|
42
42
|
};
|
43
43
|
};
|
44
|
+
export declare function getTrackSourceFromProto(source: TrackSource): Track.Source;
|
44
45
|
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "livekit-client",
|
3
|
-
"version": "2.9.
|
3
|
+
"version": "2.9.6",
|
4
4
|
"description": "JavaScript/TypeScript client SDK for LiveKit",
|
5
5
|
"main": "./dist/livekit-client.umd.js",
|
6
6
|
"unpkg": "./dist/livekit-client.umd.js",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"license": "Apache-2.0",
|
38
38
|
"dependencies": {
|
39
39
|
"@livekit/mutex": "1.1.1",
|
40
|
-
"@livekit/protocol": "1.
|
40
|
+
"@livekit/protocol": "1.34.0",
|
41
41
|
"events": "^3.3.0",
|
42
42
|
"loglevel": "^1.9.2",
|
43
43
|
"sdp-transform": "^2.15.0",
|
package/src/api/SignalClient.ts
CHANGED
@@ -258,14 +258,18 @@ export class SignalClient {
|
|
258
258
|
abortSignal?: AbortSignal,
|
259
259
|
): Promise<JoinResponse | ReconnectResponse | undefined> {
|
260
260
|
this.connectOptions = opts;
|
261
|
-
|
261
|
+
const urlObj = new URL(toWebsocketUrl(url));
|
262
262
|
// strip trailing slash
|
263
|
-
|
264
|
-
|
263
|
+
urlObj.pathname = urlObj.pathname.replace(/\/$/, '');
|
264
|
+
urlObj.pathname += '/rtc';
|
265
265
|
|
266
266
|
const clientInfo = getClientInfo();
|
267
267
|
const params = createConnectionParams(token, clientInfo, opts);
|
268
268
|
|
269
|
+
for (const [key, value] of params) {
|
270
|
+
urlObj.searchParams.set(key, value);
|
271
|
+
}
|
272
|
+
|
269
273
|
return new Promise<JoinResponse | ReconnectResponse | undefined>(async (resolve, reject) => {
|
270
274
|
const unlock = await this.connectionLock.lock();
|
271
275
|
try {
|
@@ -294,14 +298,19 @@ export class SignalClient {
|
|
294
298
|
abortHandler();
|
295
299
|
}
|
296
300
|
abortSignal?.addEventListener('abort', abortHandler);
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
+
const redactedUrl = new URL(urlObj.toString());
|
302
|
+
if (redactedUrl.searchParams.has('access_token')) {
|
303
|
+
redactedUrl.searchParams.set('access_token', '<redacted>');
|
304
|
+
}
|
305
|
+
this.log.debug(`connecting to ${redactedUrl}`, {
|
306
|
+
reconnect: opts.reconnect,
|
307
|
+
reconnectReason: opts.reconnectReason,
|
308
|
+
...this.logContext,
|
309
|
+
});
|
301
310
|
if (this.ws) {
|
302
311
|
await this.close(false);
|
303
312
|
}
|
304
|
-
this.ws = new WebSocket(
|
313
|
+
this.ws = new WebSocket(urlObj);
|
305
314
|
this.ws.binaryType = 'arraybuffer';
|
306
315
|
|
307
316
|
this.ws.onopen = () => {
|
@@ -313,7 +322,10 @@ export class SignalClient {
|
|
313
322
|
this.state = SignalConnectionState.DISCONNECTED;
|
314
323
|
clearTimeout(wsTimeout);
|
315
324
|
try {
|
316
|
-
const
|
325
|
+
const validateURL = new URL(urlObj.toString());
|
326
|
+
validateURL.protocol = `http${validateURL.protocol.substring(2)}`;
|
327
|
+
validateURL.pathname += '/validate';
|
328
|
+
const resp = await fetch(validateURL);
|
317
329
|
if (resp.status.toFixed(0).startsWith('4')) {
|
318
330
|
const msg = await resp.text();
|
319
331
|
reject(new ConnectionError(msg, ConnectionErrorReason.NotAllowed, resp.status));
|
@@ -518,7 +530,7 @@ export class SignalClient {
|
|
518
530
|
}
|
519
531
|
|
520
532
|
sendIceCandidate(candidate: RTCIceCandidateInit, target: SignalTarget) {
|
521
|
-
this.log.
|
533
|
+
this.log.debug('sending ice candidate', { ...this.logContext, candidate });
|
522
534
|
return this.sendRequest({
|
523
535
|
case: 'trickle',
|
524
536
|
value: new TrickleRequest({
|
@@ -883,7 +895,11 @@ export function toProtoSessionDescription(
|
|
883
895
|
return sd;
|
884
896
|
}
|
885
897
|
|
886
|
-
function createConnectionParams(
|
898
|
+
function createConnectionParams(
|
899
|
+
token: string,
|
900
|
+
info: ClientInfo,
|
901
|
+
opts: ConnectOpts,
|
902
|
+
): URLSearchParams {
|
887
903
|
const params = new URLSearchParams();
|
888
904
|
params.set('access_token', token);
|
889
905
|
|
@@ -931,5 +947,5 @@ function createConnectionParams(token: string, info: ClientInfo, opts: ConnectOp
|
|
931
947
|
params.set('network', navigator.connection.type);
|
932
948
|
}
|
933
949
|
|
934
|
-
return
|
950
|
+
return params;
|
935
951
|
}
|
package/src/room/RTCEngine.ts
CHANGED
@@ -474,7 +474,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
474
474
|
if (!this.pcManager) {
|
475
475
|
return;
|
476
476
|
}
|
477
|
-
this.log.
|
477
|
+
this.log.debug('got ICE candidate from peer', { ...this.logContext, candidate, target });
|
478
478
|
this.pcManager.addIceCandidate(candidate, target);
|
479
479
|
};
|
480
480
|
|
package/src/room/Room.ts
CHANGED
@@ -1866,14 +1866,13 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
|
|
1866
1866
|
|
1867
1867
|
private handleStreamTrailer(trailer: DataStream_Trailer) {
|
1868
1868
|
const textBuffer = this.textStreamControllers.get(trailer.streamId);
|
1869
|
-
|
1870
1869
|
if (textBuffer) {
|
1871
1870
|
textBuffer.info.attributes = {
|
1872
1871
|
...textBuffer.info.attributes,
|
1873
1872
|
...trailer.attributes,
|
1874
1873
|
};
|
1875
1874
|
textBuffer.controller.close();
|
1876
|
-
this.
|
1875
|
+
this.textStreamControllers.delete(trailer.streamId);
|
1877
1876
|
}
|
1878
1877
|
|
1879
1878
|
const fileBuffer = this.byteStreamControllers.get(trailer.streamId);
|
package/src/room/errors.ts
CHANGED
@@ -84,6 +84,16 @@ export class PublishDataError extends LivekitError {
|
|
84
84
|
}
|
85
85
|
}
|
86
86
|
|
87
|
+
export class PublishTrackError extends LivekitError {
|
88
|
+
status: number;
|
89
|
+
|
90
|
+
constructor(message: string, status: number) {
|
91
|
+
super(15, message);
|
92
|
+
this.name = 'PublishTrackError';
|
93
|
+
this.status = status;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
87
97
|
export type RequestErrorReason =
|
88
98
|
| Exclude<RequestResponse_Reason, RequestResponse_Reason.OK>
|
89
99
|
| 'TimeoutError';
|
@@ -34,6 +34,7 @@ import { defaultVideoCodec } from '../defaults';
|
|
34
34
|
import {
|
35
35
|
DeviceUnsupportedError,
|
36
36
|
LivekitError,
|
37
|
+
PublishTrackError,
|
37
38
|
SignalRequestError,
|
38
39
|
TrackInvalidError,
|
39
40
|
UnexpectedConnectionState,
|
@@ -64,6 +65,7 @@ import {
|
|
64
65
|
constraintsForOptions,
|
65
66
|
extractProcessorsFromOptions,
|
66
67
|
getLogContextFromTrack,
|
68
|
+
getTrackSourceFromProto,
|
67
69
|
mergeDefaultOptions,
|
68
70
|
mimeTypeToVideoCodecString,
|
69
71
|
screenCaptureToDisplayMediaStreamOptions,
|
@@ -871,7 +873,33 @@ export default class LocalParticipant extends Participant {
|
|
871
873
|
}
|
872
874
|
}
|
873
875
|
|
876
|
+
private hasPermissionsToPublish(track: LocalTrack): boolean {
|
877
|
+
if (!this.permissions) {
|
878
|
+
this.log.warn('no permissions present for publishing track', {
|
879
|
+
...this.logContext,
|
880
|
+
...getLogContextFromTrack(track),
|
881
|
+
});
|
882
|
+
return false;
|
883
|
+
}
|
884
|
+
const { canPublish, canPublishSources } = this.permissions;
|
885
|
+
if (
|
886
|
+
canPublish &&
|
887
|
+
(canPublishSources.length === 0 ||
|
888
|
+
canPublishSources.map((source) => getTrackSourceFromProto(source)).includes(track.source))
|
889
|
+
) {
|
890
|
+
return true;
|
891
|
+
}
|
892
|
+
this.log.warn('insufficient permissions to publish', {
|
893
|
+
...this.logContext,
|
894
|
+
...getLogContextFromTrack(track),
|
895
|
+
});
|
896
|
+
return false;
|
897
|
+
}
|
898
|
+
|
874
899
|
private async publish(track: LocalTrack, opts: TrackPublishOptions, isStereo: boolean) {
|
900
|
+
if (!this.hasPermissionsToPublish(track)) {
|
901
|
+
throw new PublishTrackError('failed to publish track, insufficient permissions', 403);
|
902
|
+
}
|
875
903
|
const existingTrackOfSource = Array.from(this.trackPublications.values()).find(
|
876
904
|
(publishedTrack) => isLocalTrack(track) && publishedTrack.source === track.source,
|
877
905
|
);
|
@@ -314,7 +314,7 @@ export default abstract class LocalTrack<
|
|
314
314
|
if (!constraints) {
|
315
315
|
constraints = this._constraints;
|
316
316
|
}
|
317
|
-
const { deviceId, ...otherConstraints } =
|
317
|
+
const { deviceId, ...otherConstraints } = constraints;
|
318
318
|
this.log.debug('restarting track with constraints', { ...this.logContext, constraints });
|
319
319
|
|
320
320
|
const streamConstraints: MediaStreamConstraints = {
|
package/src/room/track/utils.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TrackPublishedResponse } from '@livekit/protocol';
|
1
|
+
import { TrackPublishedResponse, TrackSource } from '@livekit/protocol';
|
2
2
|
import type { AudioProcessorOptions, TrackProcessor, VideoProcessorOptions } from '../..';
|
3
3
|
import { cloneDeep } from '../../utils/cloneDeep';
|
4
4
|
import { isSafari, sleep } from '../utils';
|
@@ -133,7 +133,21 @@ export function getNewAudioContext(): AudioContext | void {
|
|
133
133
|
// @ts-ignore
|
134
134
|
typeof window !== 'undefined' && (window.AudioContext || window.webkitAudioContext);
|
135
135
|
if (AudioContext) {
|
136
|
-
|
136
|
+
const audioContext = new AudioContext({ latencyHint: 'interactive' });
|
137
|
+
// If the audio context is suspended, we need to resume it when the user clicks on the page
|
138
|
+
if (
|
139
|
+
audioContext.state === 'suspended' &&
|
140
|
+
typeof window !== 'undefined' &&
|
141
|
+
window.document?.body
|
142
|
+
) {
|
143
|
+
const handleResume = () => {
|
144
|
+
audioContext.resume().then(() => {
|
145
|
+
window.document.body?.removeEventListener('click', handleResume);
|
146
|
+
});
|
147
|
+
};
|
148
|
+
window.document.body.addEventListener('click', handleResume);
|
149
|
+
}
|
150
|
+
return audioContext;
|
137
151
|
}
|
138
152
|
}
|
139
153
|
|
@@ -294,3 +308,18 @@ export function extractProcessorsFromOptions(options: CreateLocalTracksOptions)
|
|
294
308
|
|
295
309
|
return { audioProcessor, videoProcessor, optionsWithoutProcessor: newOptions };
|
296
310
|
}
|
311
|
+
|
312
|
+
export function getTrackSourceFromProto(source: TrackSource): Track.Source {
|
313
|
+
switch (source) {
|
314
|
+
case TrackSource.CAMERA:
|
315
|
+
return Track.Source.Camera;
|
316
|
+
case TrackSource.MICROPHONE:
|
317
|
+
return Track.Source.Microphone;
|
318
|
+
case TrackSource.SCREEN_SHARE:
|
319
|
+
return Track.Source.ScreenShare;
|
320
|
+
case TrackSource.SCREEN_SHARE_AUDIO:
|
321
|
+
return Track.Source.ScreenShareAudio;
|
322
|
+
default:
|
323
|
+
return Track.Source.Unknown;
|
324
|
+
}
|
325
|
+
}
|
package/src/room/utils.ts
CHANGED
@@ -433,6 +433,7 @@ export function createAudioAnalyser(
|
|
433
433
|
if (!audioContext) {
|
434
434
|
throw new Error('Audio Context not supported on this browser');
|
435
435
|
}
|
436
|
+
|
436
437
|
const streamTrack = opts.cloneTrack ? track.mediaStreamTrack.clone() : track.mediaStreamTrack;
|
437
438
|
const mediaStreamSource = audioContext.createMediaStreamSource(new MediaStream([streamTrack]));
|
438
439
|
const analyser = audioContext.createAnalyser();
|