@whereby.com/media 2.8.1 → 2.8.3

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.d.mts CHANGED
@@ -320,20 +320,18 @@ declare enum RtcEventNames {
320
320
  stream_added = "stream_added"
321
321
  }
322
322
  interface RtcManager {
323
- acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
324
- activeBreakout: boolean;
323
+ acceptNewStream: ({ clientId, streamId, }: {
325
324
  clientId: string;
326
- shouldAddLocalVideo: boolean;
327
325
  streamId: string;
328
326
  }) => void;
329
327
  addNewStream(streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean): void;
330
- disconnect(streamId: string, activeBreakout: boolean | null, eventClaim?: string): void;
328
+ disconnect(streamId: string, eventClaim?: string): void;
331
329
  disconnectAll(): void;
332
330
  rtcStatsDisconnect(): void;
333
331
  rtcStatsReconnect(): void;
334
332
  replaceTrack(oldTrack: CustomMediaStreamTrack, newTrack: CustomMediaStreamTrack): void;
335
333
  removeStream(streamId: string, _stream: MediaStream, requestedByClientId: string | null): void;
336
- shouldAcceptStreamsFromBothSides?: () => boolean;
334
+ shouldAcceptStreamsFromBothSides: () => boolean;
337
335
  updateStreamResolution(streamId: string, ignored: null, resolution: {
338
336
  width: number;
339
337
  height: number;
@@ -506,7 +504,6 @@ interface P2PSessionOptions {
506
504
  bandwidth: number;
507
505
  peerConnectionConfig: RTCConfiguration;
508
506
  deprioritizeH264Encoding: boolean;
509
- shouldAddLocalVideo: boolean;
510
507
  incrementAnalyticMetric: P2PIncrementAnalyticMetric;
511
508
  }
512
509
  declare class Session {
@@ -528,7 +525,7 @@ declare class Session {
528
525
  bandwidth: any;
529
526
  pending: any[];
530
527
  isOperationPending: boolean;
531
- streamIds: any[];
528
+ streamIds: string[];
532
529
  streams: MediaStream[];
533
530
  earlyIceCandidates: any[];
534
531
  afterConnected: Promise<unknown>;
@@ -540,11 +537,10 @@ declare class Session {
540
537
  _deprioritizeH264Encoding: any;
541
538
  clientId: any;
542
539
  peerConnectionConfig: RTCConfiguration;
543
- shouldAddLocalVideo: boolean;
544
540
  signalingState: any;
545
541
  srdComplete: any;
546
542
  _incrementAnalyticMetric: P2PIncrementAnalyticMetric;
547
- constructor({ peerConnectionId, clientId, bandwidth, peerConnectionConfig, deprioritizeH264Encoding, shouldAddLocalVideo, incrementAnalyticMetric, }: P2PSessionOptions);
543
+ constructor({ peerConnectionId, clientId, bandwidth, peerConnectionConfig, deprioritizeH264Encoding, incrementAnalyticMetric, }: P2PSessionOptions);
548
544
  addStream(stream: MediaStream): void;
549
545
  addTrack(track: MediaStreamTrack, stream?: MediaStream): void;
550
546
  removeTrack(track: MediaStreamTrack): void;
@@ -1176,7 +1172,6 @@ declare function trackAnnotations(o: MediaStreamTrack): TrackAnnotation;
1176
1172
  interface GetOrCreateSessionOptions {
1177
1173
  peerConnectionId: string;
1178
1174
  clientId: string;
1179
- shouldAddLocalVideo: boolean;
1180
1175
  initialBandwidth: number;
1181
1176
  peerConnectionConfig: RTCConfiguration;
1182
1177
  }
@@ -1209,6 +1204,7 @@ type P2PAnalytics = {
1209
1204
  P2PReplaceTrackWithoutPC: number;
1210
1205
  P2PReplaceTrackSourceKindNotFound: number;
1211
1206
  P2PRemoveStreamNoPC: number;
1207
+ P2POnTrackNoStream: number;
1212
1208
  };
1213
1209
  type P2PAnalyticMetric = keyof P2PAnalytics;
1214
1210
  type P2PIncrementAnalyticMetric = (metric: P2PAnalyticMetric) => void;
@@ -1284,19 +1280,18 @@ declare class P2pRtcManager implements RtcManager {
1284
1280
  _addEnabledLocalStreamId(streamId: string): void;
1285
1281
  _deleteEnabledLocalStreamId(streamId: string): void;
1286
1282
  _getSession(peerConnectionId: string): Session | null;
1287
- _getOrCreateSession({ peerConnectionId, clientId, initialBandwidth, peerConnectionConfig, shouldAddLocalVideo, }: GetOrCreateSessionOptions): Session;
1283
+ _getOrCreateSession({ peerConnectionId, clientId, initialBandwidth, peerConnectionConfig, }: GetOrCreateSessionOptions): Session;
1288
1284
  _getLocalCameraStream(): any;
1289
1285
  _getNonLocalCameraStreamIds(): string[];
1290
1286
  _isScreensharingLocally(): boolean;
1291
1287
  _getFirstLocalNonCameraStream(): any;
1292
1288
  _transformIncomingSdp(original: UnifiedPlanSDP): RTCSessionDescription;
1293
1289
  _transformOutgoingSdp(original: RTCSessionDescription): UnifiedPlanSDP;
1294
- _createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, shouldAddLocalVideo, }: {
1290
+ _createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, }: {
1295
1291
  clientId: string;
1296
1292
  initialBandwidth: any;
1297
1293
  isOfferer: any;
1298
1294
  peerConnectionId: string;
1299
- shouldAddLocalVideo: boolean;
1300
1295
  }): Session;
1301
1296
  _cleanup(peerConnectionId: string): void;
1302
1297
  _forEachPeerConnection(func: any): void;
@@ -1317,16 +1312,14 @@ declare class P2pRtcManager implements RtcManager {
1317
1312
  _negotiatePeerConnection(clientId: string, session: any, constraints?: any): void;
1318
1313
  _withForcedRenegotiation(session: Session, action: any): void;
1319
1314
  _changeBandwidthForAllClients(isJoining: boolean): number;
1320
- _createP2pSession({ clientId, initialBandwidth, shouldAddLocalVideo, isOfferer, }: {
1315
+ _createP2pSession({ clientId, initialBandwidth, isOfferer, }: {
1321
1316
  clientId: string;
1322
1317
  initialBandwidth: number;
1323
- shouldAddLocalVideo: boolean;
1324
1318
  isOfferer: boolean;
1325
1319
  }): Session;
1326
- acceptNewStream({ streamId, clientId, shouldAddLocalVideo, }: {
1320
+ acceptNewStream({ streamId, clientId }: {
1327
1321
  streamId: string;
1328
1322
  clientId: string;
1329
- shouldAddLocalVideo?: boolean;
1330
1323
  }): Session;
1331
1324
  disconnect(clientId: string): void;
1332
1325
  updateStreamResolution(): void;
@@ -1339,6 +1332,7 @@ declare class P2pRtcManager implements RtcManager {
1339
1332
  _shareScreen(streamId: string, stream: any): void;
1340
1333
  removeStream(streamId: string, stream: any, requestedByClientId: any): void;
1341
1334
  hasClient(clientId: string): boolean;
1335
+ shouldAcceptStreamsFromBothSides(): boolean;
1342
1336
  }
1343
1337
 
1344
1338
  declare class RtcManagerDispatcher {
@@ -1686,7 +1680,7 @@ declare class VegaRtcManager implements RtcManager {
1686
1680
  setAudioOnly(audioOnly: boolean): void;
1687
1681
  setRemoteScreenshareVideoTrackIds(): void;
1688
1682
  setRoomSessionId(roomSessionId: string): void;
1689
- disconnect(clientIdOrStreamId: string, _activeBreakout: any, eventClaim?: string): void;
1683
+ disconnect(clientId: string, eventClaim?: string): void;
1690
1684
  replaceTrack(oldTrack: CustomMediaStreamTrack | null, track: CustomMediaStreamTrack): void;
1691
1685
  removeStream(streamId: string, _stream: MediaStream, requestedByClientId: string): void;
1692
1686
  _onMicAnalyserScoreUpdated(data: any): void;
@@ -1900,27 +1894,11 @@ declare const PROTOCOL_EVENTS: {
1900
1894
  MEDIA_QUALITY_CHANGED: string;
1901
1895
  };
1902
1896
 
1897
+ declare const CAMERA_STREAM_ID = "0";
1903
1898
  declare const STREAM_TYPES: {
1904
- CAMERA: string;
1905
- SCREEN_SHARE: string;
1899
+ webcam: string;
1900
+ screenshare: string;
1906
1901
  };
1907
- declare class RtcStream {
1908
- id: string;
1909
- type: string;
1910
- isEnabled: boolean;
1911
- hasSupportForAutoSuperSize: boolean;
1912
- isAudioEnabled: boolean;
1913
- isVideoEnabled: boolean;
1914
- status: string;
1915
- stream: MediaStream | null;
1916
- streamId: string | null;
1917
- constructor(id: string | number, type: string);
1918
- setup(stream: MediaStream): this;
1919
- setStatus(status: string): this;
1920
- setVideoEnabled(isEnabled: boolean): void;
1921
- setAudioEnabled(isEnabled: boolean): void;
1922
- static getCameraId(): string;
1923
- }
1924
1902
 
1925
- export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, EVENTS, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, RtcStream, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, changeMediaDirection, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, issueDetectorOrMetricEnabled, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
1903
+ export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, changeMediaDirection, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, issueDetectorOrMetricEnabled, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
1926
1904
  export type { AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, CannotJoinUnclaimedRoomError, ChatMessage, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, Credentials, CustomMediaStreamTrack, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomFullError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcStreamAddedPayload, SDPRelayMessage, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalKnocker, SignalRequests, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UnifiedPlanSDP, UpdatedDeviceInfo, UpdatedDevicesInfo, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent };
package/dist/index.d.ts CHANGED
@@ -320,20 +320,18 @@ declare enum RtcEventNames {
320
320
  stream_added = "stream_added"
321
321
  }
322
322
  interface RtcManager {
323
- acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
324
- activeBreakout: boolean;
323
+ acceptNewStream: ({ clientId, streamId, }: {
325
324
  clientId: string;
326
- shouldAddLocalVideo: boolean;
327
325
  streamId: string;
328
326
  }) => void;
329
327
  addNewStream(streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean): void;
330
- disconnect(streamId: string, activeBreakout: boolean | null, eventClaim?: string): void;
328
+ disconnect(streamId: string, eventClaim?: string): void;
331
329
  disconnectAll(): void;
332
330
  rtcStatsDisconnect(): void;
333
331
  rtcStatsReconnect(): void;
334
332
  replaceTrack(oldTrack: CustomMediaStreamTrack, newTrack: CustomMediaStreamTrack): void;
335
333
  removeStream(streamId: string, _stream: MediaStream, requestedByClientId: string | null): void;
336
- shouldAcceptStreamsFromBothSides?: () => boolean;
334
+ shouldAcceptStreamsFromBothSides: () => boolean;
337
335
  updateStreamResolution(streamId: string, ignored: null, resolution: {
338
336
  width: number;
339
337
  height: number;
@@ -506,7 +504,6 @@ interface P2PSessionOptions {
506
504
  bandwidth: number;
507
505
  peerConnectionConfig: RTCConfiguration;
508
506
  deprioritizeH264Encoding: boolean;
509
- shouldAddLocalVideo: boolean;
510
507
  incrementAnalyticMetric: P2PIncrementAnalyticMetric;
511
508
  }
512
509
  declare class Session {
@@ -528,7 +525,7 @@ declare class Session {
528
525
  bandwidth: any;
529
526
  pending: any[];
530
527
  isOperationPending: boolean;
531
- streamIds: any[];
528
+ streamIds: string[];
532
529
  streams: MediaStream[];
533
530
  earlyIceCandidates: any[];
534
531
  afterConnected: Promise<unknown>;
@@ -540,11 +537,10 @@ declare class Session {
540
537
  _deprioritizeH264Encoding: any;
541
538
  clientId: any;
542
539
  peerConnectionConfig: RTCConfiguration;
543
- shouldAddLocalVideo: boolean;
544
540
  signalingState: any;
545
541
  srdComplete: any;
546
542
  _incrementAnalyticMetric: P2PIncrementAnalyticMetric;
547
- constructor({ peerConnectionId, clientId, bandwidth, peerConnectionConfig, deprioritizeH264Encoding, shouldAddLocalVideo, incrementAnalyticMetric, }: P2PSessionOptions);
543
+ constructor({ peerConnectionId, clientId, bandwidth, peerConnectionConfig, deprioritizeH264Encoding, incrementAnalyticMetric, }: P2PSessionOptions);
548
544
  addStream(stream: MediaStream): void;
549
545
  addTrack(track: MediaStreamTrack, stream?: MediaStream): void;
550
546
  removeTrack(track: MediaStreamTrack): void;
@@ -1176,7 +1172,6 @@ declare function trackAnnotations(o: MediaStreamTrack): TrackAnnotation;
1176
1172
  interface GetOrCreateSessionOptions {
1177
1173
  peerConnectionId: string;
1178
1174
  clientId: string;
1179
- shouldAddLocalVideo: boolean;
1180
1175
  initialBandwidth: number;
1181
1176
  peerConnectionConfig: RTCConfiguration;
1182
1177
  }
@@ -1209,6 +1204,7 @@ type P2PAnalytics = {
1209
1204
  P2PReplaceTrackWithoutPC: number;
1210
1205
  P2PReplaceTrackSourceKindNotFound: number;
1211
1206
  P2PRemoveStreamNoPC: number;
1207
+ P2POnTrackNoStream: number;
1212
1208
  };
1213
1209
  type P2PAnalyticMetric = keyof P2PAnalytics;
1214
1210
  type P2PIncrementAnalyticMetric = (metric: P2PAnalyticMetric) => void;
@@ -1284,19 +1280,18 @@ declare class P2pRtcManager implements RtcManager {
1284
1280
  _addEnabledLocalStreamId(streamId: string): void;
1285
1281
  _deleteEnabledLocalStreamId(streamId: string): void;
1286
1282
  _getSession(peerConnectionId: string): Session | null;
1287
- _getOrCreateSession({ peerConnectionId, clientId, initialBandwidth, peerConnectionConfig, shouldAddLocalVideo, }: GetOrCreateSessionOptions): Session;
1283
+ _getOrCreateSession({ peerConnectionId, clientId, initialBandwidth, peerConnectionConfig, }: GetOrCreateSessionOptions): Session;
1288
1284
  _getLocalCameraStream(): any;
1289
1285
  _getNonLocalCameraStreamIds(): string[];
1290
1286
  _isScreensharingLocally(): boolean;
1291
1287
  _getFirstLocalNonCameraStream(): any;
1292
1288
  _transformIncomingSdp(original: UnifiedPlanSDP): RTCSessionDescription;
1293
1289
  _transformOutgoingSdp(original: RTCSessionDescription): UnifiedPlanSDP;
1294
- _createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, shouldAddLocalVideo, }: {
1290
+ _createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, }: {
1295
1291
  clientId: string;
1296
1292
  initialBandwidth: any;
1297
1293
  isOfferer: any;
1298
1294
  peerConnectionId: string;
1299
- shouldAddLocalVideo: boolean;
1300
1295
  }): Session;
1301
1296
  _cleanup(peerConnectionId: string): void;
1302
1297
  _forEachPeerConnection(func: any): void;
@@ -1317,16 +1312,14 @@ declare class P2pRtcManager implements RtcManager {
1317
1312
  _negotiatePeerConnection(clientId: string, session: any, constraints?: any): void;
1318
1313
  _withForcedRenegotiation(session: Session, action: any): void;
1319
1314
  _changeBandwidthForAllClients(isJoining: boolean): number;
1320
- _createP2pSession({ clientId, initialBandwidth, shouldAddLocalVideo, isOfferer, }: {
1315
+ _createP2pSession({ clientId, initialBandwidth, isOfferer, }: {
1321
1316
  clientId: string;
1322
1317
  initialBandwidth: number;
1323
- shouldAddLocalVideo: boolean;
1324
1318
  isOfferer: boolean;
1325
1319
  }): Session;
1326
- acceptNewStream({ streamId, clientId, shouldAddLocalVideo, }: {
1320
+ acceptNewStream({ streamId, clientId }: {
1327
1321
  streamId: string;
1328
1322
  clientId: string;
1329
- shouldAddLocalVideo?: boolean;
1330
1323
  }): Session;
1331
1324
  disconnect(clientId: string): void;
1332
1325
  updateStreamResolution(): void;
@@ -1339,6 +1332,7 @@ declare class P2pRtcManager implements RtcManager {
1339
1332
  _shareScreen(streamId: string, stream: any): void;
1340
1333
  removeStream(streamId: string, stream: any, requestedByClientId: any): void;
1341
1334
  hasClient(clientId: string): boolean;
1335
+ shouldAcceptStreamsFromBothSides(): boolean;
1342
1336
  }
1343
1337
 
1344
1338
  declare class RtcManagerDispatcher {
@@ -1686,7 +1680,7 @@ declare class VegaRtcManager implements RtcManager {
1686
1680
  setAudioOnly(audioOnly: boolean): void;
1687
1681
  setRemoteScreenshareVideoTrackIds(): void;
1688
1682
  setRoomSessionId(roomSessionId: string): void;
1689
- disconnect(clientIdOrStreamId: string, _activeBreakout: any, eventClaim?: string): void;
1683
+ disconnect(clientId: string, eventClaim?: string): void;
1690
1684
  replaceTrack(oldTrack: CustomMediaStreamTrack | null, track: CustomMediaStreamTrack): void;
1691
1685
  removeStream(streamId: string, _stream: MediaStream, requestedByClientId: string): void;
1692
1686
  _onMicAnalyserScoreUpdated(data: any): void;
@@ -1900,27 +1894,11 @@ declare const PROTOCOL_EVENTS: {
1900
1894
  MEDIA_QUALITY_CHANGED: string;
1901
1895
  };
1902
1896
 
1897
+ declare const CAMERA_STREAM_ID = "0";
1903
1898
  declare const STREAM_TYPES: {
1904
- CAMERA: string;
1905
- SCREEN_SHARE: string;
1899
+ webcam: string;
1900
+ screenshare: string;
1906
1901
  };
1907
- declare class RtcStream {
1908
- id: string;
1909
- type: string;
1910
- isEnabled: boolean;
1911
- hasSupportForAutoSuperSize: boolean;
1912
- isAudioEnabled: boolean;
1913
- isVideoEnabled: boolean;
1914
- status: string;
1915
- stream: MediaStream | null;
1916
- streamId: string | null;
1917
- constructor(id: string | number, type: string);
1918
- setup(stream: MediaStream): this;
1919
- setStatus(status: string): this;
1920
- setVideoEnabled(isEnabled: boolean): void;
1921
- setAudioEnabled(isEnabled: boolean): void;
1922
- static getCameraId(): string;
1923
- }
1924
1902
 
1925
- export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, EVENTS, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, RtcStream, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, changeMediaDirection, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, issueDetectorOrMetricEnabled, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
1903
+ export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, changeMediaDirection, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, issueDetectorOrMetricEnabled, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
1926
1904
  export type { AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, CannotJoinUnclaimedRoomError, ChatMessage, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, Credentials, CustomMediaStreamTrack, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomFullError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcStreamAddedPayload, SDPRelayMessage, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalKnocker, SignalRequests, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UnifiedPlanSDP, UpdatedDeviceInfo, UpdatedDevicesInfo, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent };