@whereby.com/media 1.14.2 → 1.16.0
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/index.cjs +49 -46
- package/dist/index.d.cts +580 -583
- package/dist/index.d.mts +580 -583
- package/dist/index.d.ts +580 -583
- package/dist/index.mjs +49 -47
- package/dist/legacy-esm.js +49 -47
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -182,203 +182,534 @@ declare const MAXIMUM_TURN_BANDWIDTH = 1280;
|
|
|
182
182
|
declare const MAXIMUM_TURN_BANDWIDTH_UNLIMITED = -1;
|
|
183
183
|
declare const MEDIA_JITTER_BUFFER_TARGET = 400;
|
|
184
184
|
|
|
185
|
-
declare
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
declare const createWorker: (fn: Function) => Worker;
|
|
193
|
-
declare const generateByteString: (count: number) => string;
|
|
194
|
-
|
|
195
|
-
declare const getHandler: () => mediasoup_client_lib_Device.BuiltinHandlerName | undefined;
|
|
196
|
-
|
|
197
|
-
declare const ipRegex: {
|
|
198
|
-
(options: {
|
|
199
|
-
exact: boolean;
|
|
200
|
-
includeBoundaries?: boolean;
|
|
201
|
-
}): RegExp;
|
|
202
|
-
v4(options: {
|
|
203
|
-
exact: boolean;
|
|
204
|
-
includeBoundaries?: boolean;
|
|
205
|
-
}): RegExp;
|
|
206
|
-
v6(options: {
|
|
207
|
-
exact: boolean;
|
|
208
|
-
includeBoundaries?: boolean;
|
|
209
|
-
}): RegExp;
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
declare const getMediaSettings: (kind: string, isScreenShare: boolean, features: any) => {
|
|
213
|
-
encodings: {}[];
|
|
214
|
-
};
|
|
215
|
-
declare const modifyMediaCapabilities: (routerRtpCapabilities: any, features: any) => void;
|
|
216
|
-
|
|
217
|
-
declare function getOptimalBitrate(width: number, height: number, frameRate: number): number;
|
|
218
|
-
|
|
219
|
-
declare class ReconnectManager extends EventEmitter {
|
|
220
|
-
_socket: any;
|
|
221
|
-
_clients: any;
|
|
222
|
-
_signalDisconnectTime?: number;
|
|
223
|
-
rtcManager?: RtcManager;
|
|
224
|
-
metrics: {
|
|
225
|
-
roomJoinedLate: number;
|
|
226
|
-
pendingClientCanceled: number;
|
|
227
|
-
evaluationFailed: number;
|
|
228
|
-
roomJoined: number;
|
|
229
|
-
};
|
|
230
|
-
reconnectThresholdInMs: number;
|
|
231
|
-
constructor(socket: any);
|
|
232
|
-
_onRoomJoined(payload: any): Promise<void>;
|
|
233
|
-
_onClientLeft(payload: any): void;
|
|
234
|
-
_onPendingClientLeft(payload: any): void;
|
|
235
|
-
_onNewClient(payload: any): void;
|
|
236
|
-
_abortIfNotActive(payload: any): Promise<void>;
|
|
237
|
-
_checkIsActive(clientId: string): Promise<boolean>;
|
|
238
|
-
_isClientMediaActive(stats: any, clientId: string): boolean;
|
|
239
|
-
_onAudioEnabled(payload: any): void;
|
|
240
|
-
_onVideoEnabled(payload: any): void;
|
|
241
|
-
_onScreenshareChanged(payload: any, action: boolean): void;
|
|
242
|
-
_hasClientStateChanged({ clientId, webcam, mic, screenShare, }: {
|
|
185
|
+
declare enum RtcEventNames {
|
|
186
|
+
rtc_manager_created = "rtc_manager_created",
|
|
187
|
+
stream_added = "stream_added"
|
|
188
|
+
}
|
|
189
|
+
interface RtcManager {
|
|
190
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
191
|
+
activeBreakout: boolean;
|
|
243
192
|
clientId: string;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
193
|
+
shouldAddLocalVideo: boolean;
|
|
194
|
+
streamId: string;
|
|
195
|
+
}) => void;
|
|
196
|
+
addNewStream(streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean): void;
|
|
197
|
+
disconnect(streamId: string, activeBreakout: boolean | null, eventClaim?: string): void;
|
|
198
|
+
disconnectAll(): void;
|
|
199
|
+
rtcStatsDisconnect(): void;
|
|
200
|
+
rtcStatsReconnect(): void;
|
|
201
|
+
replaceTrack(oldTrack: CustomMediaStreamTrack, newTrack: CustomMediaStreamTrack): void;
|
|
202
|
+
removeStream(streamId: string, _stream: MediaStream, requestedByClientId: string | null): void;
|
|
203
|
+
shouldAcceptStreamsFromBothSides?: () => boolean;
|
|
204
|
+
updateStreamResolution(streamId: string, ignored: null, resolution: {
|
|
205
|
+
width: number;
|
|
206
|
+
height: number;
|
|
207
|
+
}): void;
|
|
208
|
+
sendStatsCustomEvent(eventName: string, data: unknown): void;
|
|
209
|
+
isInitializedWith({ selfId, roomName, isSfu }: {
|
|
210
|
+
selfId: string;
|
|
211
|
+
roomName: string;
|
|
212
|
+
isSfu: boolean;
|
|
247
213
|
}): boolean;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
_getPendingClientsByDeviceId(deviceId: string): unknown[];
|
|
251
|
-
_resetClientState(payload: any): void;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
declare class ServerSocket {
|
|
255
|
-
_socket: any;
|
|
256
|
-
_reconnectManager?: ReconnectManager | null;
|
|
257
|
-
noopKeepaliveInterval: any;
|
|
258
|
-
_wasConnectedUsingWebsocket?: boolean;
|
|
259
|
-
disconnectTimestamp: number | undefined;
|
|
260
|
-
constructor(hostName: string, optionsOverrides?: any, glitchFree?: boolean);
|
|
261
|
-
setRtcManager(rtcManager?: RtcManager): void;
|
|
262
|
-
connect(): void;
|
|
263
|
-
disconnect(): void;
|
|
264
|
-
disconnectOnConnect(): void;
|
|
265
|
-
emit(eventName: string, ...args: any[]): void;
|
|
266
|
-
emitIfConnected(eventName: string, data: any): void;
|
|
267
|
-
getTransport(): any;
|
|
268
|
-
getManager(): any;
|
|
269
|
-
isConnecting(): any;
|
|
270
|
-
isConnected(): any;
|
|
271
|
-
on(eventName: string, handler: Function): () => void;
|
|
272
|
-
once(eventName: string, handler: Function): void;
|
|
273
|
-
off(eventName: string, handler: Function): void;
|
|
274
|
-
_interceptEvent(eventName: string, handler: any): () => void;
|
|
275
|
-
getGlitchFreeMetrics(): {
|
|
276
|
-
roomJoinedLate: number;
|
|
277
|
-
pendingClientCanceled: number;
|
|
278
|
-
evaluationFailed: number;
|
|
279
|
-
roomJoined: number;
|
|
280
|
-
} | undefined;
|
|
281
|
-
getReconnectThreshold(): number | undefined;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
declare const maybeTurnOnly: (transportConfig: any, features: {
|
|
285
|
-
useOnlyTURN: string;
|
|
286
|
-
}) => void;
|
|
287
|
-
|
|
288
|
-
interface Credentials {
|
|
289
|
-
credentials: {
|
|
290
|
-
uuid: string;
|
|
291
|
-
};
|
|
292
|
-
hmac: string;
|
|
293
|
-
userId: string;
|
|
294
|
-
}
|
|
295
|
-
interface SocketConf {
|
|
296
|
-
host?: string;
|
|
297
|
-
path?: string;
|
|
298
|
-
reconnectionDelay?: number;
|
|
299
|
-
reconnectionDelayMax?: number;
|
|
300
|
-
timeout?: number;
|
|
301
|
-
autoConnect?: boolean;
|
|
302
|
-
}
|
|
303
|
-
interface SocketManager {
|
|
304
|
-
on: (eventName: string, callback: (args: unknown) => void) => void;
|
|
305
|
-
}
|
|
306
|
-
type RoleName = "none" | "visitor" | "granted_visitor" | "viewer" | "granted_viewer" | "host" | "recorder" | "streamer";
|
|
307
|
-
interface ClientRole {
|
|
308
|
-
roleName: RoleName;
|
|
309
|
-
}
|
|
310
|
-
interface SignalKnocker {
|
|
311
|
-
clientId: string;
|
|
312
|
-
displayName: string | null;
|
|
313
|
-
imageUrl: string | null;
|
|
314
|
-
liveVideo: boolean;
|
|
315
|
-
userAvatarUrl: string | null;
|
|
316
|
-
userId: string | null;
|
|
317
|
-
}
|
|
318
|
-
interface SignalClient {
|
|
319
|
-
displayName: string;
|
|
320
|
-
id: string;
|
|
321
|
-
streams: string[];
|
|
322
|
-
isAudioEnabled: boolean;
|
|
323
|
-
isVideoEnabled: boolean;
|
|
324
|
-
role: ClientRole;
|
|
325
|
-
startedCloudRecordingAt: string | null;
|
|
326
|
-
externalId: string | null;
|
|
327
|
-
isDialIn: boolean;
|
|
214
|
+
setEventClaim?(eventClaim: string): void;
|
|
215
|
+
hasClient(clientId: string): boolean;
|
|
328
216
|
}
|
|
329
|
-
interface
|
|
330
|
-
|
|
331
|
-
streamId: string;
|
|
217
|
+
interface RtcManagerCreatedPayload {
|
|
218
|
+
rtcManager: RtcManager;
|
|
332
219
|
}
|
|
333
|
-
interface
|
|
220
|
+
interface RtcStreamAddedPayload {
|
|
334
221
|
clientId: string;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
id: string;
|
|
339
|
-
messageType: "text";
|
|
340
|
-
roomName: string;
|
|
341
|
-
senderId: string;
|
|
342
|
-
sig: string;
|
|
343
|
-
text: string;
|
|
344
|
-
timestamp: string;
|
|
345
|
-
userId: string;
|
|
346
|
-
}
|
|
347
|
-
interface CloudRecordingStartedEvent {
|
|
348
|
-
error?: string;
|
|
349
|
-
startedAt?: string;
|
|
222
|
+
stream: MediaStream;
|
|
223
|
+
streamId: string | undefined;
|
|
224
|
+
streamType: "webcam" | "screenshare" | undefined;
|
|
350
225
|
}
|
|
351
|
-
interface
|
|
226
|
+
interface RtcClientConnectionStatusChangedPayload {
|
|
227
|
+
streamIds: string[];
|
|
352
228
|
clientId: string;
|
|
229
|
+
status: string;
|
|
230
|
+
previous: string;
|
|
353
231
|
}
|
|
354
|
-
interface
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
createdAt: string;
|
|
359
|
-
id: string;
|
|
360
|
-
} | null;
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
interface ClientKickedEvent {
|
|
364
|
-
clientId: string;
|
|
232
|
+
interface RtcLocalStreamTrackAddedPayload {
|
|
233
|
+
streamId: string;
|
|
234
|
+
tracks: MediaStreamTrack[];
|
|
235
|
+
screenShare: boolean;
|
|
365
236
|
}
|
|
366
|
-
interface
|
|
367
|
-
|
|
237
|
+
interface RtcLocalStreamTrackRemovedPayload {
|
|
238
|
+
stream: MediaStream;
|
|
239
|
+
track: MediaStreamTrack;
|
|
368
240
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
241
|
+
type RtcEvents = {
|
|
242
|
+
client_connection_status_changed: RtcClientConnectionStatusChangedPayload;
|
|
243
|
+
stream_added: RtcStreamAddedPayload;
|
|
244
|
+
rtc_manager_created: RtcManagerCreatedPayload;
|
|
245
|
+
rtc_manager_destroyed: void;
|
|
246
|
+
local_stream_track_added: RtcLocalStreamTrackAddedPayload;
|
|
247
|
+
local_stream_track_removed: RtcLocalStreamTrackRemovedPayload;
|
|
248
|
+
remote_stream_track_added: void;
|
|
249
|
+
remote_stream_track_removed: void;
|
|
250
|
+
};
|
|
251
|
+
type GetMediaConstraintsOptions = {
|
|
252
|
+
disableAEC: boolean;
|
|
253
|
+
disableAGC: boolean;
|
|
254
|
+
hd: boolean;
|
|
255
|
+
lax: boolean;
|
|
256
|
+
lowDataMode: boolean;
|
|
257
|
+
preferredDeviceIds: {
|
|
258
|
+
audioId?: boolean | string | null | {
|
|
259
|
+
ideal?: string | null;
|
|
260
|
+
exact?: string | null;
|
|
261
|
+
};
|
|
262
|
+
videoId?: boolean | string | null | {
|
|
263
|
+
ideal?: string | null;
|
|
264
|
+
exact?: string | null;
|
|
265
|
+
};
|
|
374
266
|
};
|
|
375
|
-
resolution
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
267
|
+
resolution?: string;
|
|
268
|
+
simulcast: boolean;
|
|
269
|
+
widescreen: boolean;
|
|
270
|
+
usingAspectRatio16x9: boolean;
|
|
271
|
+
};
|
|
272
|
+
type GetConstraintsOptions = {
|
|
273
|
+
devices: MediaDeviceInfo[];
|
|
274
|
+
audioId?: boolean | string;
|
|
275
|
+
videoId?: boolean | string;
|
|
276
|
+
type?: "ideal" | "exact";
|
|
277
|
+
options: Omit<GetMediaConstraintsOptions, "preferredDeviceIds">;
|
|
278
|
+
};
|
|
279
|
+
type GetStreamOptions = {
|
|
280
|
+
replaceStream?: MediaStream;
|
|
281
|
+
fallback?: boolean;
|
|
282
|
+
};
|
|
283
|
+
type GetStreamResult = {
|
|
284
|
+
error?: unknown;
|
|
285
|
+
replacedTracks?: MediaStreamTrack[];
|
|
286
|
+
stream: MediaStream;
|
|
287
|
+
};
|
|
288
|
+
type GetUpdatedDevicesResult = {
|
|
289
|
+
addedDevices: {
|
|
290
|
+
audioinput?: {
|
|
291
|
+
deviceId: string;
|
|
292
|
+
label: string;
|
|
293
|
+
kind: string;
|
|
294
|
+
};
|
|
295
|
+
videoinput?: {
|
|
296
|
+
deviceId: string;
|
|
297
|
+
label: string;
|
|
298
|
+
kind: string;
|
|
299
|
+
};
|
|
300
|
+
audiooutput?: {
|
|
301
|
+
deviceId: string;
|
|
302
|
+
label: string;
|
|
303
|
+
kind: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
changedDevices: {
|
|
307
|
+
audioinput?: {
|
|
308
|
+
deviceId: string;
|
|
309
|
+
label: string;
|
|
310
|
+
kind: string;
|
|
311
|
+
};
|
|
312
|
+
videoinput?: {
|
|
313
|
+
deviceId: string;
|
|
314
|
+
label: string;
|
|
315
|
+
kind: string;
|
|
316
|
+
};
|
|
317
|
+
audiooutput?: {
|
|
318
|
+
deviceId: string;
|
|
319
|
+
label: string;
|
|
320
|
+
kind: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
type GetDeviceDataResult = {
|
|
325
|
+
audio: {
|
|
326
|
+
deviceId: string;
|
|
327
|
+
label: string;
|
|
328
|
+
kind: string;
|
|
329
|
+
};
|
|
330
|
+
video: {
|
|
331
|
+
deviceId: string;
|
|
332
|
+
label: string;
|
|
333
|
+
kind: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
interface CustomMediaStreamTrack extends MediaStreamTrack {
|
|
337
|
+
effectTrack?: boolean;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
declare function getMediaConstraints({ disableAEC, disableAGC, hd, lax, lowDataMode, preferredDeviceIds, resolution, simulcast, widescreen, }: GetMediaConstraintsOptions): any;
|
|
341
|
+
declare function getConstraints({ devices, videoId, audioId, options, type }: GetConstraintsOptions): any;
|
|
342
|
+
|
|
343
|
+
declare const isMobile: boolean;
|
|
344
|
+
declare class NoDevicesError extends Error {
|
|
345
|
+
constructor(...args: any);
|
|
346
|
+
}
|
|
347
|
+
declare function enumerate(): Promise<MediaDeviceInfo[]>;
|
|
348
|
+
declare function buildDeviceList({ busyDeviceIds, devices, kind }: any): any;
|
|
349
|
+
declare function getUserMedia(constraints: any): Promise<MediaStream>;
|
|
350
|
+
declare function getDeviceData({ audioTrack, videoTrack, devices, stoppedVideoTrack, lastAudioId, lastVideoId, }: {
|
|
351
|
+
audioTrack?: MediaStreamTrack | null;
|
|
352
|
+
videoTrack?: MediaStreamTrack | null;
|
|
353
|
+
devices: MediaDeviceInfo[];
|
|
354
|
+
stoppedVideoTrack?: boolean;
|
|
355
|
+
lastAudioId?: string | undefined;
|
|
356
|
+
lastVideoId?: string | undefined;
|
|
357
|
+
}): GetDeviceDataResult;
|
|
358
|
+
declare function stopStreamTracks(stream: MediaStream, only?: "audio" | "video" | false): void;
|
|
359
|
+
declare function replaceTracksInStream(stream: MediaStream, newStream: MediaStream, only: "audio" | "video" | false): MediaStreamTrack[];
|
|
360
|
+
declare function getStream2(constraintOpt: GetConstraintsOptions, additionalOpts?: GetStreamOptions): Promise<GetStreamResult>;
|
|
361
|
+
declare function getStream(constraintOpt: any, { replaceStream, fallback }?: GetStreamOptions): Promise<GetStreamResult>;
|
|
362
|
+
declare function hasGetDisplayMedia(): boolean;
|
|
363
|
+
declare function getDisplayMedia(constraints?: {
|
|
364
|
+
video: {
|
|
365
|
+
width: {
|
|
366
|
+
max: number;
|
|
367
|
+
};
|
|
368
|
+
height: {
|
|
369
|
+
max: number;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
}, contentHint?: string): Promise<MediaStream>;
|
|
373
|
+
declare function compareLocalDevices(before: any, after: any): any;
|
|
374
|
+
declare function getUpdatedDevices({ oldDevices, newDevices, currentAudioId, currentVideoId, currentSpeakerId, }: {
|
|
375
|
+
oldDevices: MediaDeviceInfo[];
|
|
376
|
+
newDevices: MediaDeviceInfo[];
|
|
377
|
+
currentAudioId?: string | undefined;
|
|
378
|
+
currentVideoId?: string | undefined;
|
|
379
|
+
currentSpeakerId?: string | undefined;
|
|
380
|
+
}): GetUpdatedDevicesResult;
|
|
381
|
+
|
|
382
|
+
declare class P2pRtcManager implements RtcManager {
|
|
383
|
+
_selfId: any;
|
|
384
|
+
_roomName: any;
|
|
385
|
+
_roomSessionId: any;
|
|
386
|
+
peerConnections: any;
|
|
387
|
+
localStreams: any;
|
|
388
|
+
enabledLocalStreamIds: any[];
|
|
389
|
+
_screenshareVideoTrackIds: any[];
|
|
390
|
+
_socketListenerDeregisterFunctions: any[];
|
|
391
|
+
_localStreamDeregisterFunction: any;
|
|
392
|
+
_emitter: any;
|
|
393
|
+
_serverSocket: any;
|
|
394
|
+
_webrtcProvider: any;
|
|
395
|
+
_features: any;
|
|
396
|
+
_isAudioOnlyMode: boolean;
|
|
397
|
+
offerOptions: {
|
|
398
|
+
offerToReceiveAudio: boolean;
|
|
399
|
+
offerToReceiveVideo: boolean;
|
|
400
|
+
};
|
|
401
|
+
_pendingActionsForConnectedPeerConnections: any[];
|
|
402
|
+
_audioTrackOnEnded: () => void;
|
|
403
|
+
_videoTrackOnEnded: () => void;
|
|
404
|
+
totalSessionsCreated: number;
|
|
405
|
+
_iceServers: any;
|
|
406
|
+
_sfuServer: any;
|
|
407
|
+
_mediaserverConfigTtlSeconds: any;
|
|
408
|
+
_fetchMediaServersTimer: any;
|
|
409
|
+
_wasScreenSharing: any;
|
|
410
|
+
ipv6HostCandidateTeredoSeen: any;
|
|
411
|
+
ipv6HostCandidate6to4Seen: any;
|
|
412
|
+
mdnsHostCandidateSeen: any;
|
|
413
|
+
_stoppedVideoTrack: any;
|
|
414
|
+
icePublicIPGatheringTimeoutID: any;
|
|
415
|
+
_videoTrackBeingMonitored?: CustomMediaStreamTrack;
|
|
416
|
+
_audioTrackBeingMonitored?: CustomMediaStreamTrack;
|
|
417
|
+
constructor({ selfId, room, emitter, serverSocket, webrtcProvider, features, }: {
|
|
418
|
+
selfId: any;
|
|
419
|
+
room: any;
|
|
420
|
+
emitter: any;
|
|
421
|
+
serverSocket: any;
|
|
422
|
+
webrtcProvider: any;
|
|
423
|
+
features: any;
|
|
424
|
+
});
|
|
425
|
+
numberOfPeerconnections(): number;
|
|
426
|
+
isInitializedWith({ selfId, roomName, isSfu }: {
|
|
427
|
+
selfId: any;
|
|
428
|
+
roomName: any;
|
|
429
|
+
isSfu: any;
|
|
430
|
+
}): boolean;
|
|
431
|
+
supportsScreenShareAudio(): boolean;
|
|
432
|
+
maybeRestrictRelayBandwidth(session: any): void;
|
|
433
|
+
addNewStream(streamId: string, stream: MediaStream, audioPaused: boolean, videoPaused: boolean, beforeEffectTracks?: CustomMediaStreamTrack[]): void;
|
|
434
|
+
replaceTrack(oldTrack: CustomMediaStreamTrack | null, newTrack: CustomMediaStreamTrack): Promise<any[]>;
|
|
435
|
+
disconnectAll(): void;
|
|
436
|
+
fixChromeAudio(constraints: any): Promise<any[]> | undefined;
|
|
437
|
+
setupSocketListeners(): void;
|
|
438
|
+
sendAudioMutedStats(muted: boolean): void;
|
|
439
|
+
sendVideoMutedStats(muted: boolean): void;
|
|
440
|
+
sendStatsCustomEvent(eventName: string, data: any): void;
|
|
441
|
+
rtcStatsDisconnect(): void;
|
|
442
|
+
rtcStatsReconnect(): void;
|
|
443
|
+
setAudioOnly(audioOnly: any): void;
|
|
444
|
+
setRemoteScreenshareVideoTrackIds(remoteScreenshareVideoTrackIds?: never[]): void;
|
|
445
|
+
setRoomSessionId(roomSessionId: string): void;
|
|
446
|
+
_setConnectionStatus(session: any, newStatus: any, clientId: string): void;
|
|
447
|
+
_setJitterBufferTarget(pc: any): void;
|
|
448
|
+
_emitServerEvent(eventName: string, data?: any, callback?: any): void;
|
|
449
|
+
_emit(eventName: string, data?: any): void;
|
|
450
|
+
_addEnabledLocalStreamId(streamId: string): void;
|
|
451
|
+
_deleteEnabledLocalStreamId(streamId: string): void;
|
|
452
|
+
_getSession(peerConnectionId: string): any;
|
|
453
|
+
_getOrCreateSession(peerConnectionId: string, initialBandwidth: any): any;
|
|
454
|
+
_getLocalCameraStream(): any;
|
|
455
|
+
_getNonLocalCameraStreamIds(): string[];
|
|
456
|
+
_isScreensharingLocally(): boolean;
|
|
457
|
+
_getFirstLocalNonCameraStream(): any;
|
|
458
|
+
_transformIncomingSdp(original: any, _: any): {
|
|
459
|
+
type: any;
|
|
460
|
+
sdp: any;
|
|
461
|
+
};
|
|
462
|
+
_transformOutgoingSdp(original: any): {
|
|
463
|
+
type: any;
|
|
464
|
+
sdpU: any;
|
|
465
|
+
};
|
|
466
|
+
_createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, shouldAddLocalVideo, }: {
|
|
467
|
+
clientId: string;
|
|
468
|
+
initialBandwidth: any;
|
|
469
|
+
isOfferer: any;
|
|
470
|
+
peerConnectionId: string;
|
|
471
|
+
shouldAddLocalVideo: boolean;
|
|
472
|
+
}): any;
|
|
473
|
+
_cleanup(peerConnectionId: string): void;
|
|
474
|
+
_forEachPeerConnection(func: any): void;
|
|
475
|
+
_addStreamToPeerConnections(stream: any): void;
|
|
476
|
+
_addTrackToPeerConnections(track: any, stream?: any): void;
|
|
477
|
+
_replaceTrackToPeerConnections(oldTrack: any, newTrack: any): Promise<any[]>;
|
|
478
|
+
_removeStreamFromPeerConnections(stream: any): void;
|
|
479
|
+
_removeTrackFromPeerConnections(track: any): void;
|
|
480
|
+
_addLocalStream(streamId: string, stream: any): void;
|
|
481
|
+
_removeLocalStream(streamId: string): void;
|
|
482
|
+
_updateAndScheduleMediaServersRefresh({ iceServers, sfuServer, mediaserverConfigTtlSeconds }: any): void;
|
|
483
|
+
_clearMediaServersRefresh(): void;
|
|
484
|
+
_monitorAudioTrack(track: any): void;
|
|
485
|
+
_monitorVideoTrack(track: CustomMediaStreamTrack): void;
|
|
486
|
+
_connect(clientId: string): Promise<any>;
|
|
487
|
+
_maybeRestartIce(clientId: string, session: any): void;
|
|
488
|
+
_setCodecPreferences(pc: any, vp9On: any, av1On: any, redOn: any): void;
|
|
489
|
+
_negotiatePeerConnection(clientId: string, session: any, constraints?: any): void;
|
|
490
|
+
_withForcedRenegotiation(session: any, action: any): void;
|
|
491
|
+
_changeBandwidthForAllClients(isJoining: boolean): number;
|
|
492
|
+
_createP2pSession({ clientId, initialBandwidth, shouldAddLocalVideo, isOfferer, }: {
|
|
493
|
+
clientId: string;
|
|
494
|
+
initialBandwidth: number;
|
|
495
|
+
shouldAddLocalVideo: boolean;
|
|
496
|
+
isOfferer: boolean;
|
|
497
|
+
}): any;
|
|
498
|
+
acceptNewStream({ streamId, clientId, shouldAddLocalVideo, }: {
|
|
499
|
+
streamId: string;
|
|
500
|
+
clientId: string;
|
|
501
|
+
shouldAddLocalVideo?: boolean;
|
|
502
|
+
}): any;
|
|
503
|
+
disconnect(clientId: string): void;
|
|
504
|
+
updateStreamResolution(): void;
|
|
505
|
+
stopOrResumeAudio(): void;
|
|
506
|
+
_handleStopOrResumeVideo({ enable, track }: {
|
|
507
|
+
enable: boolean;
|
|
508
|
+
track: any;
|
|
509
|
+
}): void;
|
|
510
|
+
stopOrResumeVideo(localStream: any, enable: boolean): void;
|
|
511
|
+
_shareScreen(streamId: string, stream: any): void;
|
|
512
|
+
removeStream(streamId: string, stream: any, requestedByClientId: any): void;
|
|
513
|
+
hasClient(clientId: string): boolean;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
declare const assert: {
|
|
517
|
+
fail: (message?: string | Error) => void;
|
|
518
|
+
ok: (value: any, message?: string | Error) => void;
|
|
519
|
+
equal?: (actual: any, expected: any, message?: string | Error) => void;
|
|
520
|
+
notEqual?: (actual: any, expected: any, message?: string | Error) => void;
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
declare const createWorker: (fn: Function) => Worker;
|
|
524
|
+
declare const generateByteString: (count: number) => string;
|
|
525
|
+
|
|
526
|
+
declare const getHandler: () => mediasoup_client_lib_Device.BuiltinHandlerName | undefined;
|
|
527
|
+
|
|
528
|
+
declare const ipRegex: {
|
|
529
|
+
(options: {
|
|
530
|
+
exact: boolean;
|
|
531
|
+
includeBoundaries?: boolean;
|
|
532
|
+
}): RegExp;
|
|
533
|
+
v4(options: {
|
|
534
|
+
exact: boolean;
|
|
535
|
+
includeBoundaries?: boolean;
|
|
536
|
+
}): RegExp;
|
|
537
|
+
v6(options: {
|
|
538
|
+
exact: boolean;
|
|
539
|
+
includeBoundaries?: boolean;
|
|
540
|
+
}): RegExp;
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
declare const getMediaSettings: (kind: string, isScreenShare: boolean, features: any) => {
|
|
544
|
+
encodings: {}[];
|
|
545
|
+
};
|
|
546
|
+
declare const modifyMediaCapabilities: (routerRtpCapabilities: any, features: any) => void;
|
|
547
|
+
|
|
548
|
+
declare function getOptimalBitrate(width: number, height: number, frameRate: number): number;
|
|
549
|
+
|
|
550
|
+
declare class ReconnectManager extends EventEmitter {
|
|
551
|
+
_socket: any;
|
|
552
|
+
_clients: any;
|
|
553
|
+
_signalDisconnectTime?: number;
|
|
554
|
+
rtcManager?: RtcManager;
|
|
555
|
+
metrics: {
|
|
556
|
+
roomJoinedLate: number;
|
|
557
|
+
pendingClientCanceled: number;
|
|
558
|
+
evaluationFailed: number;
|
|
559
|
+
roomJoined: number;
|
|
560
|
+
};
|
|
561
|
+
reconnectThresholdInMs: number;
|
|
562
|
+
constructor(socket: any);
|
|
563
|
+
_onRoomJoined(payload: any): Promise<void>;
|
|
564
|
+
_onClientLeft(payload: any): void;
|
|
565
|
+
_onPendingClientLeft(payload: any): void;
|
|
566
|
+
_onNewClient(payload: any): void;
|
|
567
|
+
_abortIfNotActive(payload: any): Promise<void>;
|
|
568
|
+
_checkIsActive(clientId: string): Promise<boolean>;
|
|
569
|
+
_isClientMediaActive(stats: any, clientId: string): boolean;
|
|
570
|
+
_onAudioEnabled(payload: any): void;
|
|
571
|
+
_onVideoEnabled(payload: any): void;
|
|
572
|
+
_onScreenshareChanged(payload: any, action: boolean): void;
|
|
573
|
+
_hasClientStateChanged({ clientId, webcam, mic, screenShare, }: {
|
|
574
|
+
clientId: string;
|
|
575
|
+
webcam: boolean;
|
|
576
|
+
mic: boolean;
|
|
577
|
+
screenShare: boolean;
|
|
578
|
+
}): boolean;
|
|
579
|
+
_addClientToState(newClient: any): void;
|
|
580
|
+
_wasClientSendingMedia(clientId: string): any;
|
|
581
|
+
_getPendingClientsByDeviceId(deviceId: string): unknown[];
|
|
582
|
+
_resetClientState(payload: any): void;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
declare class ServerSocket {
|
|
586
|
+
_socket: any;
|
|
587
|
+
_reconnectManager?: ReconnectManager | null;
|
|
588
|
+
noopKeepaliveInterval: any;
|
|
589
|
+
_wasConnectedUsingWebsocket?: boolean;
|
|
590
|
+
disconnectTimestamp: number | undefined;
|
|
591
|
+
constructor(hostName: string, optionsOverrides?: any, glitchFree?: boolean);
|
|
592
|
+
setRtcManager(rtcManager?: RtcManager): void;
|
|
593
|
+
connect(): void;
|
|
594
|
+
disconnect(): void;
|
|
595
|
+
disconnectOnConnect(): void;
|
|
596
|
+
emit(eventName: string, ...args: any[]): void;
|
|
597
|
+
emitIfConnected(eventName: string, data: any): void;
|
|
598
|
+
getTransport(): any;
|
|
599
|
+
getManager(): any;
|
|
600
|
+
isConnecting(): any;
|
|
601
|
+
isConnected(): any;
|
|
602
|
+
on(eventName: string, handler: Function): () => void;
|
|
603
|
+
once(eventName: string, handler: Function): void;
|
|
604
|
+
off(eventName: string, handler: Function): void;
|
|
605
|
+
_interceptEvent(eventName: string, handler: any): () => void;
|
|
606
|
+
getGlitchFreeMetrics(): {
|
|
607
|
+
roomJoinedLate: number;
|
|
608
|
+
pendingClientCanceled: number;
|
|
609
|
+
evaluationFailed: number;
|
|
610
|
+
roomJoined: number;
|
|
611
|
+
} | undefined;
|
|
612
|
+
getReconnectThreshold(): number | undefined;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
declare const maybeTurnOnly: (transportConfig: any, features: {
|
|
616
|
+
useOnlyTURN: string;
|
|
617
|
+
}) => void;
|
|
618
|
+
|
|
619
|
+
interface Credentials {
|
|
620
|
+
credentials: {
|
|
621
|
+
uuid: string;
|
|
622
|
+
};
|
|
623
|
+
hmac: string;
|
|
624
|
+
userId: string;
|
|
625
|
+
}
|
|
626
|
+
interface SocketConf {
|
|
627
|
+
host?: string;
|
|
628
|
+
path?: string;
|
|
629
|
+
reconnectionDelay?: number;
|
|
630
|
+
reconnectionDelayMax?: number;
|
|
631
|
+
timeout?: number;
|
|
632
|
+
autoConnect?: boolean;
|
|
633
|
+
}
|
|
634
|
+
interface SocketManager {
|
|
635
|
+
on: (eventName: string, callback: (args: unknown) => void) => void;
|
|
636
|
+
}
|
|
637
|
+
type RoleName = "none" | "visitor" | "granted_visitor" | "viewer" | "granted_viewer" | "host" | "recorder" | "streamer";
|
|
638
|
+
interface ClientRole {
|
|
639
|
+
roleName: RoleName;
|
|
640
|
+
}
|
|
641
|
+
interface SignalKnocker {
|
|
642
|
+
clientId: string;
|
|
643
|
+
displayName: string | null;
|
|
644
|
+
imageUrl: string | null;
|
|
645
|
+
liveVideo: boolean;
|
|
646
|
+
userAvatarUrl: string | null;
|
|
647
|
+
userId: string | null;
|
|
648
|
+
}
|
|
649
|
+
interface SignalClient {
|
|
650
|
+
displayName: string;
|
|
651
|
+
id: string;
|
|
652
|
+
streams: string[];
|
|
653
|
+
isAudioEnabled: boolean;
|
|
654
|
+
isVideoEnabled: boolean;
|
|
655
|
+
role: ClientRole;
|
|
656
|
+
startedCloudRecordingAt: string | null;
|
|
657
|
+
externalId: string | null;
|
|
658
|
+
isDialIn: boolean;
|
|
659
|
+
}
|
|
660
|
+
interface Spotlight {
|
|
661
|
+
clientId: string;
|
|
662
|
+
streamId: string;
|
|
663
|
+
}
|
|
664
|
+
interface AudioEnabledEvent {
|
|
665
|
+
clientId: string;
|
|
666
|
+
isAudioEnabled: boolean;
|
|
667
|
+
}
|
|
668
|
+
interface ChatMessage {
|
|
669
|
+
id: string;
|
|
670
|
+
messageType: "text";
|
|
671
|
+
roomName: string;
|
|
672
|
+
senderId: string;
|
|
673
|
+
sig: string;
|
|
674
|
+
text: string;
|
|
675
|
+
timestamp: string;
|
|
676
|
+
userId: string;
|
|
677
|
+
}
|
|
678
|
+
interface CloudRecordingStartedEvent {
|
|
679
|
+
error?: string;
|
|
680
|
+
startedAt?: string;
|
|
681
|
+
}
|
|
682
|
+
interface ClientLeftEvent {
|
|
683
|
+
clientId: string;
|
|
684
|
+
}
|
|
685
|
+
interface NewClientEvent {
|
|
686
|
+
client: SignalClient;
|
|
687
|
+
room?: {
|
|
688
|
+
session: {
|
|
689
|
+
createdAt: string;
|
|
690
|
+
id: string;
|
|
691
|
+
} | null;
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
interface ClientKickedEvent {
|
|
695
|
+
clientId: string;
|
|
696
|
+
}
|
|
697
|
+
interface KnockerLeftEvent {
|
|
698
|
+
clientId: string;
|
|
699
|
+
}
|
|
700
|
+
interface KnockAcceptedEvent {
|
|
701
|
+
clientId: string;
|
|
702
|
+
metadata: {
|
|
703
|
+
roomKey: string;
|
|
704
|
+
roomName: string;
|
|
705
|
+
};
|
|
706
|
+
resolution: "accepted";
|
|
707
|
+
}
|
|
708
|
+
interface KnockRejectedEvent {
|
|
709
|
+
clientId: string;
|
|
710
|
+
resolution: "rejected";
|
|
711
|
+
}
|
|
712
|
+
interface RoomJoinedEvent {
|
|
382
713
|
error?: string;
|
|
383
714
|
isLocked: boolean;
|
|
384
715
|
room?: {
|
|
@@ -521,410 +852,73 @@ interface SendClientMetadataRequest {
|
|
|
521
852
|
type: string;
|
|
522
853
|
payload: ClientMetadataPayload;
|
|
523
854
|
}
|
|
524
|
-
interface AudioEnableRequest {
|
|
525
|
-
clientIds: string[];
|
|
526
|
-
enable: boolean;
|
|
527
|
-
}
|
|
528
|
-
interface VideoEnableRequest {
|
|
529
|
-
clientIds: string[];
|
|
530
|
-
enable: boolean;
|
|
531
|
-
}
|
|
532
|
-
interface AddSpotlightRequest {
|
|
533
|
-
clientId: string;
|
|
534
|
-
streamId: string;
|
|
535
|
-
}
|
|
536
|
-
interface RemoveSpotlightRequest {
|
|
537
|
-
clientId: string;
|
|
538
|
-
streamId: string;
|
|
539
|
-
}
|
|
540
|
-
interface SignalRequests {
|
|
541
|
-
add_spotlight: AddSpotlightRequest;
|
|
542
|
-
chat_message: {
|
|
543
|
-
text: string;
|
|
544
|
-
};
|
|
545
|
-
enable_audio: {
|
|
546
|
-
enabled: boolean;
|
|
547
|
-
};
|
|
548
|
-
enable_video: {
|
|
549
|
-
enabled: boolean;
|
|
550
|
-
};
|
|
551
|
-
handle_knock: {
|
|
552
|
-
action: "accept" | "reject";
|
|
553
|
-
clientId: string;
|
|
554
|
-
response: unknown;
|
|
555
|
-
};
|
|
556
|
-
identify_device: IdentifyDeviceRequest;
|
|
557
|
-
join_room: JoinRoomRequest;
|
|
558
|
-
knock_room: KnockRoomRequest;
|
|
559
|
-
leave_room: void;
|
|
560
|
-
remove_spotlight: RemoveSpotlightRequest;
|
|
561
|
-
request_audio_enable: AudioEnableRequest;
|
|
562
|
-
request_video_enable: VideoEnableRequest;
|
|
563
|
-
send_client_metadata: {
|
|
564
|
-
type: string;
|
|
565
|
-
payload: {
|
|
566
|
-
displayName?: string;
|
|
567
|
-
stickyReaction?: unknown;
|
|
568
|
-
};
|
|
569
|
-
};
|
|
570
|
-
set_lock: {
|
|
571
|
-
locked: boolean;
|
|
572
|
-
};
|
|
573
|
-
start_recording: {
|
|
574
|
-
recording: string;
|
|
575
|
-
};
|
|
576
|
-
stop_recording: void;
|
|
577
|
-
}
|
|
578
|
-
type TurnTransportProtocol = "onlyudp" | "onlytcp" | "onlytls";
|
|
579
|
-
|
|
580
|
-
declare function fromLocation({ host, protocol }?: {
|
|
581
|
-
host?: string | undefined;
|
|
582
|
-
protocol?: string | undefined;
|
|
583
|
-
}): {
|
|
584
|
-
domain: string;
|
|
585
|
-
domainWithSeparator: string;
|
|
586
|
-
organizationDomain: string;
|
|
587
|
-
organization: string;
|
|
588
|
-
service: string;
|
|
589
|
-
subdomain: string;
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
declare enum RtcEventNames {
|
|
593
|
-
rtc_manager_created = "rtc_manager_created",
|
|
594
|
-
stream_added = "stream_added"
|
|
595
|
-
}
|
|
596
|
-
interface RtcManager {
|
|
597
|
-
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, enforceTurnProtocol, }: {
|
|
598
|
-
activeBreakout: boolean;
|
|
599
|
-
clientId: string;
|
|
600
|
-
shouldAddLocalVideo: boolean;
|
|
601
|
-
streamId: string;
|
|
602
|
-
enforceTurnProtocol?: TurnTransportProtocol;
|
|
603
|
-
}) => void;
|
|
604
|
-
addNewStream(streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean): void;
|
|
605
|
-
disconnect(streamId: string, activeBreakout: boolean | null, eventClaim?: string): void;
|
|
606
|
-
disconnectAll(): void;
|
|
607
|
-
rtcStatsDisconnect(): void;
|
|
608
|
-
rtcStatsReconnect(): void;
|
|
609
|
-
replaceTrack(oldTrack: CustomMediaStreamTrack, newTrack: CustomMediaStreamTrack): void;
|
|
610
|
-
removeStream(streamId: string, _stream: MediaStream, requestedByClientId: string | null): void;
|
|
611
|
-
shouldAcceptStreamsFromBothSides?: () => boolean;
|
|
612
|
-
updateStreamResolution(streamId: string, ignored: null, resolution: {
|
|
613
|
-
width: number;
|
|
614
|
-
height: number;
|
|
615
|
-
}): void;
|
|
616
|
-
sendStatsCustomEvent(eventName: string, data: unknown): void;
|
|
617
|
-
isInitializedWith({ selfId, roomName, isSfu }: {
|
|
618
|
-
selfId: string;
|
|
619
|
-
roomName: string;
|
|
620
|
-
isSfu: boolean;
|
|
621
|
-
}): boolean;
|
|
622
|
-
setEventClaim?(eventClaim: string): void;
|
|
623
|
-
hasClient(clientId: string): boolean;
|
|
624
|
-
}
|
|
625
|
-
interface RtcManagerCreatedPayload {
|
|
626
|
-
rtcManager: RtcManager;
|
|
627
|
-
}
|
|
628
|
-
interface RtcStreamAddedPayload {
|
|
629
|
-
clientId: string;
|
|
630
|
-
stream: MediaStream;
|
|
631
|
-
streamId: string | undefined;
|
|
632
|
-
streamType: "webcam" | "screenshare" | undefined;
|
|
633
|
-
}
|
|
634
|
-
interface RtcClientConnectionStatusChangedPayload {
|
|
635
|
-
streamIds: string[];
|
|
636
|
-
clientId: string;
|
|
637
|
-
status: string;
|
|
638
|
-
previous: string;
|
|
639
|
-
}
|
|
640
|
-
interface RtcLocalStreamTrackAddedPayload {
|
|
641
|
-
streamId: string;
|
|
642
|
-
tracks: MediaStreamTrack[];
|
|
643
|
-
screenShare: boolean;
|
|
644
|
-
}
|
|
645
|
-
interface RtcLocalStreamTrackRemovedPayload {
|
|
646
|
-
stream: MediaStream;
|
|
647
|
-
track: MediaStreamTrack;
|
|
648
|
-
}
|
|
649
|
-
type RtcEvents = {
|
|
650
|
-
client_connection_status_changed: RtcClientConnectionStatusChangedPayload;
|
|
651
|
-
stream_added: RtcStreamAddedPayload;
|
|
652
|
-
rtc_manager_created: RtcManagerCreatedPayload;
|
|
653
|
-
rtc_manager_destroyed: void;
|
|
654
|
-
local_stream_track_added: RtcLocalStreamTrackAddedPayload;
|
|
655
|
-
local_stream_track_removed: RtcLocalStreamTrackRemovedPayload;
|
|
656
|
-
remote_stream_track_added: void;
|
|
657
|
-
remote_stream_track_removed: void;
|
|
658
|
-
};
|
|
659
|
-
type GetMediaConstraintsOptions = {
|
|
660
|
-
disableAEC: boolean;
|
|
661
|
-
disableAGC: boolean;
|
|
662
|
-
hd: boolean;
|
|
663
|
-
lax: boolean;
|
|
664
|
-
lowDataMode: boolean;
|
|
665
|
-
preferredDeviceIds: {
|
|
666
|
-
audioId?: boolean | string | null | {
|
|
667
|
-
ideal?: string | null;
|
|
668
|
-
exact?: string | null;
|
|
669
|
-
};
|
|
670
|
-
videoId?: boolean | string | null | {
|
|
671
|
-
ideal?: string | null;
|
|
672
|
-
exact?: string | null;
|
|
673
|
-
};
|
|
674
|
-
};
|
|
675
|
-
resolution?: string;
|
|
676
|
-
simulcast: boolean;
|
|
677
|
-
widescreen: boolean;
|
|
678
|
-
usingAspectRatio16x9: boolean;
|
|
679
|
-
};
|
|
680
|
-
type GetConstraintsOptions = {
|
|
681
|
-
devices: MediaDeviceInfo[];
|
|
682
|
-
audioId?: boolean | string;
|
|
683
|
-
videoId?: boolean | string;
|
|
684
|
-
type?: "ideal" | "exact";
|
|
685
|
-
options: Omit<GetMediaConstraintsOptions, "preferredDeviceIds">;
|
|
686
|
-
};
|
|
687
|
-
type GetStreamOptions = {
|
|
688
|
-
replaceStream?: MediaStream;
|
|
689
|
-
fallback?: boolean;
|
|
690
|
-
};
|
|
691
|
-
type GetStreamResult = {
|
|
692
|
-
error?: unknown;
|
|
693
|
-
replacedTracks?: MediaStreamTrack[];
|
|
694
|
-
stream: MediaStream;
|
|
695
|
-
};
|
|
696
|
-
type GetUpdatedDevicesResult = {
|
|
697
|
-
addedDevices: {
|
|
698
|
-
audioinput?: {
|
|
699
|
-
deviceId: string;
|
|
700
|
-
label: string;
|
|
701
|
-
kind: string;
|
|
702
|
-
};
|
|
703
|
-
videoinput?: {
|
|
704
|
-
deviceId: string;
|
|
705
|
-
label: string;
|
|
706
|
-
kind: string;
|
|
707
|
-
};
|
|
708
|
-
audiooutput?: {
|
|
709
|
-
deviceId: string;
|
|
710
|
-
label: string;
|
|
711
|
-
kind: string;
|
|
712
|
-
};
|
|
855
|
+
interface AudioEnableRequest {
|
|
856
|
+
clientIds: string[];
|
|
857
|
+
enable: boolean;
|
|
858
|
+
}
|
|
859
|
+
interface VideoEnableRequest {
|
|
860
|
+
clientIds: string[];
|
|
861
|
+
enable: boolean;
|
|
862
|
+
}
|
|
863
|
+
interface AddSpotlightRequest {
|
|
864
|
+
clientId: string;
|
|
865
|
+
streamId: string;
|
|
866
|
+
}
|
|
867
|
+
interface RemoveSpotlightRequest {
|
|
868
|
+
clientId: string;
|
|
869
|
+
streamId: string;
|
|
870
|
+
}
|
|
871
|
+
interface SignalRequests {
|
|
872
|
+
add_spotlight: AddSpotlightRequest;
|
|
873
|
+
chat_message: {
|
|
874
|
+
text: string;
|
|
713
875
|
};
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
deviceId: string;
|
|
717
|
-
label: string;
|
|
718
|
-
kind: string;
|
|
719
|
-
};
|
|
720
|
-
videoinput?: {
|
|
721
|
-
deviceId: string;
|
|
722
|
-
label: string;
|
|
723
|
-
kind: string;
|
|
724
|
-
};
|
|
725
|
-
audiooutput?: {
|
|
726
|
-
deviceId: string;
|
|
727
|
-
label: string;
|
|
728
|
-
kind: string;
|
|
729
|
-
};
|
|
876
|
+
enable_audio: {
|
|
877
|
+
enabled: boolean;
|
|
730
878
|
};
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
audio: {
|
|
734
|
-
deviceId: string;
|
|
735
|
-
label: string;
|
|
736
|
-
kind: string;
|
|
879
|
+
enable_video: {
|
|
880
|
+
enabled: boolean;
|
|
737
881
|
};
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
882
|
+
handle_knock: {
|
|
883
|
+
action: "accept" | "reject";
|
|
884
|
+
clientId: string;
|
|
885
|
+
response: unknown;
|
|
742
886
|
};
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
declare function enumerate(): Promise<MediaDeviceInfo[]>;
|
|
756
|
-
declare function buildDeviceList({ busyDeviceIds, devices, kind }: any): any;
|
|
757
|
-
declare function getUserMedia(constraints: any): Promise<MediaStream>;
|
|
758
|
-
declare function getDeviceData({ audioTrack, videoTrack, devices, stoppedVideoTrack, lastAudioId, lastVideoId, }: {
|
|
759
|
-
audioTrack?: MediaStreamTrack | null;
|
|
760
|
-
videoTrack?: MediaStreamTrack | null;
|
|
761
|
-
devices: MediaDeviceInfo[];
|
|
762
|
-
stoppedVideoTrack?: boolean;
|
|
763
|
-
lastAudioId?: string | undefined;
|
|
764
|
-
lastVideoId?: string | undefined;
|
|
765
|
-
}): GetDeviceDataResult;
|
|
766
|
-
declare function stopStreamTracks(stream: MediaStream, only?: "audio" | "video" | false): void;
|
|
767
|
-
declare function replaceTracksInStream(stream: MediaStream, newStream: MediaStream, only: "audio" | "video" | false): MediaStreamTrack[];
|
|
768
|
-
declare function getStream2(constraintOpt: GetConstraintsOptions, additionalOpts?: GetStreamOptions): Promise<GetStreamResult>;
|
|
769
|
-
declare function getStream(constraintOpt: any, { replaceStream, fallback }?: GetStreamOptions): Promise<GetStreamResult>;
|
|
770
|
-
declare function hasGetDisplayMedia(): boolean;
|
|
771
|
-
declare function getDisplayMedia(constraints?: {
|
|
772
|
-
video: {
|
|
773
|
-
width: {
|
|
774
|
-
max: number;
|
|
775
|
-
};
|
|
776
|
-
height: {
|
|
777
|
-
max: number;
|
|
887
|
+
identify_device: IdentifyDeviceRequest;
|
|
888
|
+
join_room: JoinRoomRequest;
|
|
889
|
+
knock_room: KnockRoomRequest;
|
|
890
|
+
leave_room: void;
|
|
891
|
+
remove_spotlight: RemoveSpotlightRequest;
|
|
892
|
+
request_audio_enable: AudioEnableRequest;
|
|
893
|
+
request_video_enable: VideoEnableRequest;
|
|
894
|
+
send_client_metadata: {
|
|
895
|
+
type: string;
|
|
896
|
+
payload: {
|
|
897
|
+
displayName?: string;
|
|
898
|
+
stickyReaction?: unknown;
|
|
778
899
|
};
|
|
779
900
|
};
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
declare function getUpdatedDevices({ oldDevices, newDevices, currentAudioId, currentVideoId, currentSpeakerId, }: {
|
|
783
|
-
oldDevices: MediaDeviceInfo[];
|
|
784
|
-
newDevices: MediaDeviceInfo[];
|
|
785
|
-
currentAudioId?: string | undefined;
|
|
786
|
-
currentVideoId?: string | undefined;
|
|
787
|
-
currentSpeakerId?: string | undefined;
|
|
788
|
-
}): GetUpdatedDevicesResult;
|
|
789
|
-
|
|
790
|
-
declare class P2pRtcManager implements RtcManager {
|
|
791
|
-
_selfId: any;
|
|
792
|
-
_roomName: any;
|
|
793
|
-
_roomSessionId: any;
|
|
794
|
-
peerConnections: any;
|
|
795
|
-
localStreams: any;
|
|
796
|
-
enabledLocalStreamIds: any[];
|
|
797
|
-
_screenshareVideoTrackIds: any[];
|
|
798
|
-
_socketListenerDeregisterFunctions: any[];
|
|
799
|
-
_localStreamDeregisterFunction: any;
|
|
800
|
-
_emitter: any;
|
|
801
|
-
_serverSocket: any;
|
|
802
|
-
_webrtcProvider: any;
|
|
803
|
-
_features: any;
|
|
804
|
-
_isAudioOnlyMode: boolean;
|
|
805
|
-
offerOptions: {
|
|
806
|
-
offerToReceiveAudio: boolean;
|
|
807
|
-
offerToReceiveVideo: boolean;
|
|
808
|
-
};
|
|
809
|
-
_pendingActionsForConnectedPeerConnections: any[];
|
|
810
|
-
_audioTrackOnEnded: () => void;
|
|
811
|
-
_videoTrackOnEnded: () => void;
|
|
812
|
-
totalSessionsCreated: number;
|
|
813
|
-
_iceServers: any;
|
|
814
|
-
_sfuServer: any;
|
|
815
|
-
_mediaserverConfigTtlSeconds: any;
|
|
816
|
-
_fetchMediaServersTimer: any;
|
|
817
|
-
_wasScreenSharing: any;
|
|
818
|
-
ipv6HostCandidateTeredoSeen: any;
|
|
819
|
-
ipv6HostCandidate6to4Seen: any;
|
|
820
|
-
mdnsHostCandidateSeen: any;
|
|
821
|
-
_lastReverseDirectionAttemptByClientId: any;
|
|
822
|
-
_stoppedVideoTrack: any;
|
|
823
|
-
icePublicIPGatheringTimeoutID: any;
|
|
824
|
-
_videoTrackBeingMonitored?: CustomMediaStreamTrack;
|
|
825
|
-
_audioTrackBeingMonitored?: CustomMediaStreamTrack;
|
|
826
|
-
_nodeJsClients: string[];
|
|
827
|
-
constructor({ selfId, room, emitter, serverSocket, webrtcProvider, features, }: {
|
|
828
|
-
selfId: any;
|
|
829
|
-
room: any;
|
|
830
|
-
emitter: any;
|
|
831
|
-
serverSocket: any;
|
|
832
|
-
webrtcProvider: any;
|
|
833
|
-
features: any;
|
|
834
|
-
});
|
|
835
|
-
numberOfPeerconnections(): number;
|
|
836
|
-
isInitializedWith({ selfId, roomName, isSfu }: {
|
|
837
|
-
selfId: any;
|
|
838
|
-
roomName: any;
|
|
839
|
-
isSfu: any;
|
|
840
|
-
}): boolean;
|
|
841
|
-
supportsScreenShareAudio(): boolean;
|
|
842
|
-
maybeRestrictRelayBandwidth(session: any): void;
|
|
843
|
-
addNewStream(streamId: string, stream: MediaStream, audioPaused: boolean, videoPaused: boolean, beforeEffectTracks?: CustomMediaStreamTrack[]): void;
|
|
844
|
-
replaceTrack(oldTrack: CustomMediaStreamTrack | null, newTrack: CustomMediaStreamTrack): Promise<any[]>;
|
|
845
|
-
disconnectAll(): void;
|
|
846
|
-
fixChromeAudio(constraints: any): Promise<any[]> | undefined;
|
|
847
|
-
setupSocketListeners(): void;
|
|
848
|
-
sendAudioMutedStats(muted: boolean): void;
|
|
849
|
-
sendVideoMutedStats(muted: boolean): void;
|
|
850
|
-
sendStatsCustomEvent(eventName: string, data: any): void;
|
|
851
|
-
rtcStatsDisconnect(): void;
|
|
852
|
-
rtcStatsReconnect(): void;
|
|
853
|
-
setAudioOnly(audioOnly: any): void;
|
|
854
|
-
setRemoteScreenshareVideoTrackIds(remoteScreenshareVideoTrackIds?: never[]): void;
|
|
855
|
-
setRoomSessionId(roomSessionId: string): void;
|
|
856
|
-
_setConnectionStatus(session: any, newStatus: any, clientId: string): void;
|
|
857
|
-
_setJitterBufferTarget(pc: any): void;
|
|
858
|
-
_emitServerEvent(eventName: string, data?: any, callback?: any): void;
|
|
859
|
-
_emit(eventName: string, data?: any): void;
|
|
860
|
-
_addEnabledLocalStreamId(streamId: string): void;
|
|
861
|
-
_deleteEnabledLocalStreamId(streamId: string): void;
|
|
862
|
-
_getSession(peerConnectionId: string): any;
|
|
863
|
-
_getOrCreateSession(peerConnectionId: string, initialBandwidth: any): any;
|
|
864
|
-
_getLocalCameraStream(): any;
|
|
865
|
-
_getNonLocalCameraStreamIds(): string[];
|
|
866
|
-
_isScreensharingLocally(): boolean;
|
|
867
|
-
_getFirstLocalNonCameraStream(): any;
|
|
868
|
-
_transformIncomingSdp(original: any, _: any): {
|
|
869
|
-
type: any;
|
|
870
|
-
sdp: any;
|
|
901
|
+
set_lock: {
|
|
902
|
+
locked: boolean;
|
|
871
903
|
};
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
sdpU: any;
|
|
904
|
+
start_recording: {
|
|
905
|
+
recording: string;
|
|
875
906
|
};
|
|
876
|
-
|
|
877
|
-
clientId: string;
|
|
878
|
-
initialBandwidth: any;
|
|
879
|
-
isOfferer: any;
|
|
880
|
-
peerConnectionId: string;
|
|
881
|
-
shouldAddLocalVideo: boolean;
|
|
882
|
-
enforceTurnProtocol?: TurnTransportProtocol;
|
|
883
|
-
}): any;
|
|
884
|
-
_cleanup(peerConnectionId: string): void;
|
|
885
|
-
_forEachPeerConnection(func: any): void;
|
|
886
|
-
_addStreamToPeerConnections(stream: any): void;
|
|
887
|
-
_addTrackToPeerConnections(track: any, stream?: any): void;
|
|
888
|
-
_replaceTrackToPeerConnections(oldTrack: any, newTrack: any): Promise<any[]>;
|
|
889
|
-
_removeStreamFromPeerConnections(stream: any): void;
|
|
890
|
-
_removeTrackFromPeerConnections(track: any): void;
|
|
891
|
-
_addLocalStream(streamId: string, stream: any): void;
|
|
892
|
-
_removeLocalStream(streamId: string): void;
|
|
893
|
-
_updateAndScheduleMediaServersRefresh({ iceServers, sfuServer, mediaserverConfigTtlSeconds }: any): void;
|
|
894
|
-
_clearMediaServersRefresh(): void;
|
|
895
|
-
_monitorAudioTrack(track: any): void;
|
|
896
|
-
_monitorVideoTrack(track: CustomMediaStreamTrack): void;
|
|
897
|
-
_connect(clientId: string): Promise<any>;
|
|
898
|
-
_maybeRestartIce(clientId: string, session: any): void;
|
|
899
|
-
_setCodecPreferences(pc: any, vp9On: any, av1On: any, redOn: any): void;
|
|
900
|
-
_negotiatePeerConnection(clientId: string, session: any, constraints?: any): void;
|
|
901
|
-
_withForcedRenegotiation(session: any, action: any): void;
|
|
902
|
-
_changeBandwidthForAllClients(isJoining: boolean): number;
|
|
903
|
-
_createP2pSession({ clientId, initialBandwidth, shouldAddLocalVideo, isOfferer, enforceTurnProtocol, }: {
|
|
904
|
-
clientId: string;
|
|
905
|
-
initialBandwidth: number;
|
|
906
|
-
shouldAddLocalVideo: boolean;
|
|
907
|
-
isOfferer: boolean;
|
|
908
|
-
enforceTurnProtocol?: TurnTransportProtocol;
|
|
909
|
-
}): any;
|
|
910
|
-
acceptNewStream({ streamId, clientId, shouldAddLocalVideo, enforceTurnProtocol, }: {
|
|
911
|
-
streamId: string;
|
|
912
|
-
clientId: string;
|
|
913
|
-
shouldAddLocalVideo?: boolean;
|
|
914
|
-
enforceTurnProtocol?: TurnTransportProtocol;
|
|
915
|
-
}): any;
|
|
916
|
-
disconnect(clientId: string): void;
|
|
917
|
-
updateStreamResolution(): void;
|
|
918
|
-
stopOrResumeAudio(): void;
|
|
919
|
-
_handleStopOrResumeVideo({ enable, track }: {
|
|
920
|
-
enable: boolean;
|
|
921
|
-
track: any;
|
|
922
|
-
}): void;
|
|
923
|
-
stopOrResumeVideo(localStream: any, enable: boolean): void;
|
|
924
|
-
_shareScreen(streamId: string, stream: any): void;
|
|
925
|
-
removeStream(streamId: string, stream: any, requestedByClientId: any): void;
|
|
926
|
-
hasClient(clientId: string): boolean;
|
|
907
|
+
stop_recording: void;
|
|
927
908
|
}
|
|
909
|
+
type TurnTransportProtocol = "onlyudp" | "onlytcp" | "onlytls";
|
|
910
|
+
|
|
911
|
+
declare function fromLocation({ host, protocol }?: {
|
|
912
|
+
host?: string | undefined;
|
|
913
|
+
protocol?: string | undefined;
|
|
914
|
+
}): {
|
|
915
|
+
domain: string;
|
|
916
|
+
domainWithSeparator: string;
|
|
917
|
+
organizationDomain: string;
|
|
918
|
+
organization: string;
|
|
919
|
+
service: string;
|
|
920
|
+
subdomain: string;
|
|
921
|
+
};
|
|
928
922
|
|
|
929
923
|
declare class RtcManagerDispatcher {
|
|
930
924
|
emitter: {
|
|
@@ -958,6 +952,9 @@ declare const _default: {
|
|
|
958
952
|
SFU_CONNECTION_CLOSED: string;
|
|
959
953
|
COLOCATION_SPEAKER: string;
|
|
960
954
|
DOMINANT_SPEAKER: string;
|
|
955
|
+
PC_SLD_FAILURE: string;
|
|
956
|
+
PC_ON_ANSWER_FAILURE: string;
|
|
957
|
+
PC_ON_OFFER_FAILURE: string;
|
|
961
958
|
};
|
|
962
959
|
|
|
963
960
|
declare function setVideoBandwidthUsingSetParameters(pc: any, bandwidth: any, logger?: any): any;
|
|
@@ -975,6 +972,7 @@ declare const rtcStats: {
|
|
|
975
972
|
};
|
|
976
973
|
|
|
977
974
|
declare function setCodecPreferenceSDP(sdp: any, vp9On: any, redOn: any): string | undefined;
|
|
975
|
+
declare function cleanSdp(sdp: string): string;
|
|
978
976
|
declare function maybeRejectNoH264(sdp: any): any;
|
|
979
977
|
declare function deprioritizeH264(sdp: any): string;
|
|
980
978
|
declare function replaceSSRCs(currentDescription: any, newDescription: any): any;
|
|
@@ -1019,7 +1017,6 @@ declare class Session {
|
|
|
1019
1017
|
shouldAddLocalVideo: any;
|
|
1020
1018
|
signalingState: any;
|
|
1021
1019
|
srdComplete: any;
|
|
1022
|
-
pendingOffer: any;
|
|
1023
1020
|
constructor({ peerConnectionId, bandwidth, maximumTurnBandwidth, deprioritizeH264Encoding, }: {
|
|
1024
1021
|
peerConnectionId: any;
|
|
1025
1022
|
bandwidth: any;
|
|
@@ -1501,4 +1498,4 @@ declare class RtcStream {
|
|
|
1501
1498
|
static getTypeFromId(id: string): string;
|
|
1502
1499
|
}
|
|
1503
1500
|
|
|
1504
|
-
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type ChatMessage, type ClientKickedEvent, type ClientLeftEvent, type ClientMetadataPayload, type ClientMetadataReceivedEvent, type ClientRole, type ClientUnableToJoinEvent, type CloudRecordingStartedEvent, type Credentials, type CustomMediaStreamTrack, EVENTS, type GetConstraintsOptions, type GetDeviceDataResult, type GetMediaConstraintsOptions, type GetStreamOptions, type GetStreamResult, type GetUpdatedDevicesResult, type IdentifyDeviceRequest, type IssuesAndMetricsByView, type JoinRoomRequest, KNOCK_MESSAGES, KalmanFilter, type KnockAcceptedEvent, type KnockRejectedEvent, type KnockRoomRequest, type KnockerLeftEvent, type LiveTranscriptionStartedEvent, type LiveTranscriptionStoppedEvent, Logger, MAXIMUM_TURN_BANDWIDTH, MAXIMUM_TURN_BANDWIDTH_UNLIMITED, MEDIA_JITTER_BUFFER_TARGET, type NewClientEvent, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, type RemoveSpotlightRequest, type RoleName, type RoomJoinedEvent, type RoomKnockedEvent, type RoomLockedEvent, type RoomSessionEndedEvent, type RtcClientConnectionStatusChangedPayload, RtcEventNames, type RtcEvents, type RtcLocalStreamTrackAddedPayload, type RtcLocalStreamTrackRemovedPayload, type RtcManager, type RtcManagerCreatedPayload, RtcManagerDispatcher, RtcStream, type RtcStreamAddedPayload, STREAM_TYPES, type ScreenshareStartedEvent, type ScreenshareStoppedEvent, type SendClientMetadataRequest, ServerSocket, Session, SfuV2Parser, type SignalClient, type SignalEvents, type SignalKnocker, type SignalRequests, type SocketConf, type SocketManager, type Spotlight, type SpotlightAddedEvent, type SpotlightRemovedEvent, type StatsMonitorOptions, type StatsMonitorState, TYPES, type TurnTransportProtocol, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, type VideoEnableRequest, type VideoEnableRequestedEvent, type VideoEnabledEvent, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, changeMediaDirection, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getHandler, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getOptimalBitrate, getPeerConnectionIndex, getStats, getStream, getStream2, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, isRelayed, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceSSRCs, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, variance };
|
|
1501
|
+
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type ChatMessage, type ClientKickedEvent, type ClientLeftEvent, type ClientMetadataPayload, type ClientMetadataReceivedEvent, type ClientRole, type ClientUnableToJoinEvent, type CloudRecordingStartedEvent, type Credentials, type CustomMediaStreamTrack, EVENTS, type GetConstraintsOptions, type GetDeviceDataResult, type GetMediaConstraintsOptions, type GetStreamOptions, type GetStreamResult, type GetUpdatedDevicesResult, type IdentifyDeviceRequest, type IssuesAndMetricsByView, type JoinRoomRequest, KNOCK_MESSAGES, KalmanFilter, type KnockAcceptedEvent, type KnockRejectedEvent, type KnockRoomRequest, type KnockerLeftEvent, type LiveTranscriptionStartedEvent, type LiveTranscriptionStoppedEvent, Logger, MAXIMUM_TURN_BANDWIDTH, MAXIMUM_TURN_BANDWIDTH_UNLIMITED, MEDIA_JITTER_BUFFER_TARGET, type NewClientEvent, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, type RemoveSpotlightRequest, type RoleName, type RoomJoinedEvent, type RoomKnockedEvent, type RoomLockedEvent, type RoomSessionEndedEvent, type RtcClientConnectionStatusChangedPayload, RtcEventNames, type RtcEvents, type RtcLocalStreamTrackAddedPayload, type RtcLocalStreamTrackRemovedPayload, type RtcManager, type RtcManagerCreatedPayload, RtcManagerDispatcher, RtcStream, type RtcStreamAddedPayload, STREAM_TYPES, type ScreenshareStartedEvent, type ScreenshareStoppedEvent, type SendClientMetadataRequest, ServerSocket, Session, SfuV2Parser, type SignalClient, type SignalEvents, type SignalKnocker, type SignalRequests, type SocketConf, type SocketManager, type Spotlight, type SpotlightAddedEvent, type SpotlightRemovedEvent, type StatsMonitorOptions, type StatsMonitorState, TYPES, type TurnTransportProtocol, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, type VideoEnableRequest, type VideoEnableRequestedEvent, type VideoEnabledEvent, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, changeMediaDirection, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getHandler, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getOptimalBitrate, getPeerConnectionIndex, getStats, getStream, getStream2, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, isRelayed, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceSSRCs, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, variance };
|