@whereby.com/media 2.8.2 → 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.cjs +62 -108
- package/dist/index.d.cts +15 -38
- package/dist/index.d.mts +15 -38
- package/dist/index.d.ts +15 -38
- package/dist/index.mjs +62 -108
- package/dist/legacy-esm.js +62 -108
- package/package.json +1 -1
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: ({
|
|
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,
|
|
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
|
|
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:
|
|
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,
|
|
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
|
}
|
|
@@ -1285,19 +1280,18 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1285
1280
|
_addEnabledLocalStreamId(streamId: string): void;
|
|
1286
1281
|
_deleteEnabledLocalStreamId(streamId: string): void;
|
|
1287
1282
|
_getSession(peerConnectionId: string): Session | null;
|
|
1288
|
-
_getOrCreateSession({ peerConnectionId, clientId, initialBandwidth, peerConnectionConfig,
|
|
1283
|
+
_getOrCreateSession({ peerConnectionId, clientId, initialBandwidth, peerConnectionConfig, }: GetOrCreateSessionOptions): Session;
|
|
1289
1284
|
_getLocalCameraStream(): any;
|
|
1290
1285
|
_getNonLocalCameraStreamIds(): string[];
|
|
1291
1286
|
_isScreensharingLocally(): boolean;
|
|
1292
1287
|
_getFirstLocalNonCameraStream(): any;
|
|
1293
1288
|
_transformIncomingSdp(original: UnifiedPlanSDP): RTCSessionDescription;
|
|
1294
1289
|
_transformOutgoingSdp(original: RTCSessionDescription): UnifiedPlanSDP;
|
|
1295
|
-
_createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId,
|
|
1290
|
+
_createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, }: {
|
|
1296
1291
|
clientId: string;
|
|
1297
1292
|
initialBandwidth: any;
|
|
1298
1293
|
isOfferer: any;
|
|
1299
1294
|
peerConnectionId: string;
|
|
1300
|
-
shouldAddLocalVideo: boolean;
|
|
1301
1295
|
}): Session;
|
|
1302
1296
|
_cleanup(peerConnectionId: string): void;
|
|
1303
1297
|
_forEachPeerConnection(func: any): void;
|
|
@@ -1318,16 +1312,14 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1318
1312
|
_negotiatePeerConnection(clientId: string, session: any, constraints?: any): void;
|
|
1319
1313
|
_withForcedRenegotiation(session: Session, action: any): void;
|
|
1320
1314
|
_changeBandwidthForAllClients(isJoining: boolean): number;
|
|
1321
|
-
_createP2pSession({ clientId, initialBandwidth,
|
|
1315
|
+
_createP2pSession({ clientId, initialBandwidth, isOfferer, }: {
|
|
1322
1316
|
clientId: string;
|
|
1323
1317
|
initialBandwidth: number;
|
|
1324
|
-
shouldAddLocalVideo: boolean;
|
|
1325
1318
|
isOfferer: boolean;
|
|
1326
1319
|
}): Session;
|
|
1327
|
-
acceptNewStream({ streamId, clientId
|
|
1320
|
+
acceptNewStream({ streamId, clientId }: {
|
|
1328
1321
|
streamId: string;
|
|
1329
1322
|
clientId: string;
|
|
1330
|
-
shouldAddLocalVideo?: boolean;
|
|
1331
1323
|
}): Session;
|
|
1332
1324
|
disconnect(clientId: string): void;
|
|
1333
1325
|
updateStreamResolution(): void;
|
|
@@ -1340,6 +1332,7 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1340
1332
|
_shareScreen(streamId: string, stream: any): void;
|
|
1341
1333
|
removeStream(streamId: string, stream: any, requestedByClientId: any): void;
|
|
1342
1334
|
hasClient(clientId: string): boolean;
|
|
1335
|
+
shouldAcceptStreamsFromBothSides(): boolean;
|
|
1343
1336
|
}
|
|
1344
1337
|
|
|
1345
1338
|
declare class RtcManagerDispatcher {
|
|
@@ -1687,7 +1680,7 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
1687
1680
|
setAudioOnly(audioOnly: boolean): void;
|
|
1688
1681
|
setRemoteScreenshareVideoTrackIds(): void;
|
|
1689
1682
|
setRoomSessionId(roomSessionId: string): void;
|
|
1690
|
-
disconnect(
|
|
1683
|
+
disconnect(clientId: string, eventClaim?: string): void;
|
|
1691
1684
|
replaceTrack(oldTrack: CustomMediaStreamTrack | null, track: CustomMediaStreamTrack): void;
|
|
1692
1685
|
removeStream(streamId: string, _stream: MediaStream, requestedByClientId: string): void;
|
|
1693
1686
|
_onMicAnalyserScoreUpdated(data: any): void;
|
|
@@ -1901,27 +1894,11 @@ declare const PROTOCOL_EVENTS: {
|
|
|
1901
1894
|
MEDIA_QUALITY_CHANGED: string;
|
|
1902
1895
|
};
|
|
1903
1896
|
|
|
1897
|
+
declare const CAMERA_STREAM_ID = "0";
|
|
1904
1898
|
declare const STREAM_TYPES: {
|
|
1905
|
-
|
|
1906
|
-
|
|
1899
|
+
webcam: string;
|
|
1900
|
+
screenshare: string;
|
|
1907
1901
|
};
|
|
1908
|
-
declare class RtcStream {
|
|
1909
|
-
id: string;
|
|
1910
|
-
type: string;
|
|
1911
|
-
isEnabled: boolean;
|
|
1912
|
-
hasSupportForAutoSuperSize: boolean;
|
|
1913
|
-
isAudioEnabled: boolean;
|
|
1914
|
-
isVideoEnabled: boolean;
|
|
1915
|
-
status: string;
|
|
1916
|
-
stream: MediaStream | null;
|
|
1917
|
-
streamId: string | null;
|
|
1918
|
-
constructor(id: string | number, type: string);
|
|
1919
|
-
setup(stream: MediaStream): this;
|
|
1920
|
-
setStatus(status: string): this;
|
|
1921
|
-
setVideoEnabled(isEnabled: boolean): void;
|
|
1922
|
-
setAudioEnabled(isEnabled: boolean): void;
|
|
1923
|
-
static getCameraId(): string;
|
|
1924
|
-
}
|
|
1925
1902
|
|
|
1926
|
-
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,
|
|
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 };
|
|
1927
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: ({
|
|
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,
|
|
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
|
|
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:
|
|
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,
|
|
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
|
}
|
|
@@ -1285,19 +1280,18 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1285
1280
|
_addEnabledLocalStreamId(streamId: string): void;
|
|
1286
1281
|
_deleteEnabledLocalStreamId(streamId: string): void;
|
|
1287
1282
|
_getSession(peerConnectionId: string): Session | null;
|
|
1288
|
-
_getOrCreateSession({ peerConnectionId, clientId, initialBandwidth, peerConnectionConfig,
|
|
1283
|
+
_getOrCreateSession({ peerConnectionId, clientId, initialBandwidth, peerConnectionConfig, }: GetOrCreateSessionOptions): Session;
|
|
1289
1284
|
_getLocalCameraStream(): any;
|
|
1290
1285
|
_getNonLocalCameraStreamIds(): string[];
|
|
1291
1286
|
_isScreensharingLocally(): boolean;
|
|
1292
1287
|
_getFirstLocalNonCameraStream(): any;
|
|
1293
1288
|
_transformIncomingSdp(original: UnifiedPlanSDP): RTCSessionDescription;
|
|
1294
1289
|
_transformOutgoingSdp(original: RTCSessionDescription): UnifiedPlanSDP;
|
|
1295
|
-
_createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId,
|
|
1290
|
+
_createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, }: {
|
|
1296
1291
|
clientId: string;
|
|
1297
1292
|
initialBandwidth: any;
|
|
1298
1293
|
isOfferer: any;
|
|
1299
1294
|
peerConnectionId: string;
|
|
1300
|
-
shouldAddLocalVideo: boolean;
|
|
1301
1295
|
}): Session;
|
|
1302
1296
|
_cleanup(peerConnectionId: string): void;
|
|
1303
1297
|
_forEachPeerConnection(func: any): void;
|
|
@@ -1318,16 +1312,14 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1318
1312
|
_negotiatePeerConnection(clientId: string, session: any, constraints?: any): void;
|
|
1319
1313
|
_withForcedRenegotiation(session: Session, action: any): void;
|
|
1320
1314
|
_changeBandwidthForAllClients(isJoining: boolean): number;
|
|
1321
|
-
_createP2pSession({ clientId, initialBandwidth,
|
|
1315
|
+
_createP2pSession({ clientId, initialBandwidth, isOfferer, }: {
|
|
1322
1316
|
clientId: string;
|
|
1323
1317
|
initialBandwidth: number;
|
|
1324
|
-
shouldAddLocalVideo: boolean;
|
|
1325
1318
|
isOfferer: boolean;
|
|
1326
1319
|
}): Session;
|
|
1327
|
-
acceptNewStream({ streamId, clientId
|
|
1320
|
+
acceptNewStream({ streamId, clientId }: {
|
|
1328
1321
|
streamId: string;
|
|
1329
1322
|
clientId: string;
|
|
1330
|
-
shouldAddLocalVideo?: boolean;
|
|
1331
1323
|
}): Session;
|
|
1332
1324
|
disconnect(clientId: string): void;
|
|
1333
1325
|
updateStreamResolution(): void;
|
|
@@ -1340,6 +1332,7 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1340
1332
|
_shareScreen(streamId: string, stream: any): void;
|
|
1341
1333
|
removeStream(streamId: string, stream: any, requestedByClientId: any): void;
|
|
1342
1334
|
hasClient(clientId: string): boolean;
|
|
1335
|
+
shouldAcceptStreamsFromBothSides(): boolean;
|
|
1343
1336
|
}
|
|
1344
1337
|
|
|
1345
1338
|
declare class RtcManagerDispatcher {
|
|
@@ -1687,7 +1680,7 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
1687
1680
|
setAudioOnly(audioOnly: boolean): void;
|
|
1688
1681
|
setRemoteScreenshareVideoTrackIds(): void;
|
|
1689
1682
|
setRoomSessionId(roomSessionId: string): void;
|
|
1690
|
-
disconnect(
|
|
1683
|
+
disconnect(clientId: string, eventClaim?: string): void;
|
|
1691
1684
|
replaceTrack(oldTrack: CustomMediaStreamTrack | null, track: CustomMediaStreamTrack): void;
|
|
1692
1685
|
removeStream(streamId: string, _stream: MediaStream, requestedByClientId: string): void;
|
|
1693
1686
|
_onMicAnalyserScoreUpdated(data: any): void;
|
|
@@ -1901,27 +1894,11 @@ declare const PROTOCOL_EVENTS: {
|
|
|
1901
1894
|
MEDIA_QUALITY_CHANGED: string;
|
|
1902
1895
|
};
|
|
1903
1896
|
|
|
1897
|
+
declare const CAMERA_STREAM_ID = "0";
|
|
1904
1898
|
declare const STREAM_TYPES: {
|
|
1905
|
-
|
|
1906
|
-
|
|
1899
|
+
webcam: string;
|
|
1900
|
+
screenshare: string;
|
|
1907
1901
|
};
|
|
1908
|
-
declare class RtcStream {
|
|
1909
|
-
id: string;
|
|
1910
|
-
type: string;
|
|
1911
|
-
isEnabled: boolean;
|
|
1912
|
-
hasSupportForAutoSuperSize: boolean;
|
|
1913
|
-
isAudioEnabled: boolean;
|
|
1914
|
-
isVideoEnabled: boolean;
|
|
1915
|
-
status: string;
|
|
1916
|
-
stream: MediaStream | null;
|
|
1917
|
-
streamId: string | null;
|
|
1918
|
-
constructor(id: string | number, type: string);
|
|
1919
|
-
setup(stream: MediaStream): this;
|
|
1920
|
-
setStatus(status: string): this;
|
|
1921
|
-
setVideoEnabled(isEnabled: boolean): void;
|
|
1922
|
-
setAudioEnabled(isEnabled: boolean): void;
|
|
1923
|
-
static getCameraId(): string;
|
|
1924
|
-
}
|
|
1925
1902
|
|
|
1926
|
-
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,
|
|
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 };
|
|
1927
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 };
|