@whereby.com/media 1.17.6 → 1.17.8
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 +5583 -5565
- package/dist/index.d.cts +16 -37
- package/dist/index.d.mts +16 -37
- package/dist/index.d.ts +16 -37
- package/dist/index.mjs +5586 -5568
- package/dist/legacy-esm.js +5586 -5568
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -363,41 +363,20 @@ type GetStreamResult = {
|
|
|
363
363
|
replacedTracks?: MediaStreamTrack[];
|
|
364
364
|
stream: MediaStream;
|
|
365
365
|
};
|
|
366
|
+
type UpdatedDeviceInfo = {
|
|
367
|
+
deviceId?: string | null;
|
|
368
|
+
kind?: MediaDeviceKind;
|
|
369
|
+
label?: string;
|
|
370
|
+
};
|
|
371
|
+
type UpdatedDevicesInfo = {
|
|
372
|
+
audioinput?: UpdatedDeviceInfo;
|
|
373
|
+
videoinput?: UpdatedDeviceInfo;
|
|
374
|
+
audiooutput?: UpdatedDeviceInfo;
|
|
375
|
+
};
|
|
366
376
|
type GetUpdatedDevicesResult = {
|
|
367
|
-
addedDevices:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
label: string;
|
|
371
|
-
kind: string;
|
|
372
|
-
};
|
|
373
|
-
videoinput?: {
|
|
374
|
-
deviceId: string;
|
|
375
|
-
label: string;
|
|
376
|
-
kind: string;
|
|
377
|
-
};
|
|
378
|
-
audiooutput?: {
|
|
379
|
-
deviceId: string;
|
|
380
|
-
label: string;
|
|
381
|
-
kind: string;
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
changedDevices: {
|
|
385
|
-
audioinput?: {
|
|
386
|
-
deviceId: string;
|
|
387
|
-
label: string;
|
|
388
|
-
kind: string;
|
|
389
|
-
};
|
|
390
|
-
videoinput?: {
|
|
391
|
-
deviceId: string;
|
|
392
|
-
label: string;
|
|
393
|
-
kind: string;
|
|
394
|
-
};
|
|
395
|
-
audiooutput?: {
|
|
396
|
-
deviceId: string;
|
|
397
|
-
label: string;
|
|
398
|
-
kind: string;
|
|
399
|
-
};
|
|
400
|
-
};
|
|
377
|
+
addedDevices: UpdatedDevicesInfo;
|
|
378
|
+
changedDevices: UpdatedDevicesInfo;
|
|
379
|
+
removedDevices: UpdatedDevicesInfo;
|
|
401
380
|
};
|
|
402
381
|
type GetDeviceDataResult = {
|
|
403
382
|
audio: {
|
|
@@ -447,7 +426,7 @@ declare function getDisplayMedia(constraints?: {
|
|
|
447
426
|
};
|
|
448
427
|
};
|
|
449
428
|
}, contentHint?: string): Promise<MediaStream>;
|
|
450
|
-
declare function compareLocalDevices(before:
|
|
429
|
+
declare function compareLocalDevices(before: MediaDeviceInfo[], after: MediaDeviceInfo[]): any;
|
|
451
430
|
declare function getUpdatedDevices({ oldDevices, newDevices, currentAudioId, currentVideoId, currentSpeakerId, }: {
|
|
452
431
|
oldDevices: MediaDeviceInfo[];
|
|
453
432
|
newDevices: MediaDeviceInfo[];
|
|
@@ -1197,7 +1176,7 @@ declare class VegaMediaQualityMonitor extends EventEmitter {
|
|
|
1197
1176
|
removeConsumer(clientId: string, consumerId: string): void;
|
|
1198
1177
|
addProducerScore(clientId: string, producerId: string, kind: string, score: any): void;
|
|
1199
1178
|
addConsumerScore(clientId: string, consumerId: string, kind: string, score: any): void;
|
|
1200
|
-
_evaluateScore(score: number): "
|
|
1179
|
+
_evaluateScore(score: number): "ok" | "warning" | "critical";
|
|
1201
1180
|
_calcAvgProducerScore(scores: any): number;
|
|
1202
1181
|
}
|
|
1203
1182
|
|
|
@@ -1582,4 +1561,4 @@ declare class RtcStream {
|
|
|
1582
1561
|
static getTypeFromId(id: string): string;
|
|
1583
1562
|
}
|
|
1584
1563
|
|
|
1585
|
-
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type BreakoutGroupJoinedEvent, 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, type StatsSubscription, TYPES, type TrackStats, type TurnTransportProtocol, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, type VideoEnableRequest, type VideoEnableRequestedEvent, type VideoEnabledEvent, type ViewStats, 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, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getOptimalBitrate, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, isRelayed, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceSSRCs, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, type ssrcStats, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, variance };
|
|
1564
|
+
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type BreakoutGroupJoinedEvent, 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, type StatsSubscription, TYPES, type TrackStats, type TurnTransportProtocol, type UpdatedDeviceInfo, type UpdatedDevicesInfo, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, type VideoEnableRequest, type VideoEnableRequestedEvent, type VideoEnabledEvent, type ViewStats, 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, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getOptimalBitrate, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, isRelayed, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceSSRCs, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, type ssrcStats, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, variance };
|
package/dist/index.d.mts
CHANGED
|
@@ -363,41 +363,20 @@ type GetStreamResult = {
|
|
|
363
363
|
replacedTracks?: MediaStreamTrack[];
|
|
364
364
|
stream: MediaStream;
|
|
365
365
|
};
|
|
366
|
+
type UpdatedDeviceInfo = {
|
|
367
|
+
deviceId?: string | null;
|
|
368
|
+
kind?: MediaDeviceKind;
|
|
369
|
+
label?: string;
|
|
370
|
+
};
|
|
371
|
+
type UpdatedDevicesInfo = {
|
|
372
|
+
audioinput?: UpdatedDeviceInfo;
|
|
373
|
+
videoinput?: UpdatedDeviceInfo;
|
|
374
|
+
audiooutput?: UpdatedDeviceInfo;
|
|
375
|
+
};
|
|
366
376
|
type GetUpdatedDevicesResult = {
|
|
367
|
-
addedDevices:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
label: string;
|
|
371
|
-
kind: string;
|
|
372
|
-
};
|
|
373
|
-
videoinput?: {
|
|
374
|
-
deviceId: string;
|
|
375
|
-
label: string;
|
|
376
|
-
kind: string;
|
|
377
|
-
};
|
|
378
|
-
audiooutput?: {
|
|
379
|
-
deviceId: string;
|
|
380
|
-
label: string;
|
|
381
|
-
kind: string;
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
changedDevices: {
|
|
385
|
-
audioinput?: {
|
|
386
|
-
deviceId: string;
|
|
387
|
-
label: string;
|
|
388
|
-
kind: string;
|
|
389
|
-
};
|
|
390
|
-
videoinput?: {
|
|
391
|
-
deviceId: string;
|
|
392
|
-
label: string;
|
|
393
|
-
kind: string;
|
|
394
|
-
};
|
|
395
|
-
audiooutput?: {
|
|
396
|
-
deviceId: string;
|
|
397
|
-
label: string;
|
|
398
|
-
kind: string;
|
|
399
|
-
};
|
|
400
|
-
};
|
|
377
|
+
addedDevices: UpdatedDevicesInfo;
|
|
378
|
+
changedDevices: UpdatedDevicesInfo;
|
|
379
|
+
removedDevices: UpdatedDevicesInfo;
|
|
401
380
|
};
|
|
402
381
|
type GetDeviceDataResult = {
|
|
403
382
|
audio: {
|
|
@@ -447,7 +426,7 @@ declare function getDisplayMedia(constraints?: {
|
|
|
447
426
|
};
|
|
448
427
|
};
|
|
449
428
|
}, contentHint?: string): Promise<MediaStream>;
|
|
450
|
-
declare function compareLocalDevices(before:
|
|
429
|
+
declare function compareLocalDevices(before: MediaDeviceInfo[], after: MediaDeviceInfo[]): any;
|
|
451
430
|
declare function getUpdatedDevices({ oldDevices, newDevices, currentAudioId, currentVideoId, currentSpeakerId, }: {
|
|
452
431
|
oldDevices: MediaDeviceInfo[];
|
|
453
432
|
newDevices: MediaDeviceInfo[];
|
|
@@ -1197,7 +1176,7 @@ declare class VegaMediaQualityMonitor extends EventEmitter {
|
|
|
1197
1176
|
removeConsumer(clientId: string, consumerId: string): void;
|
|
1198
1177
|
addProducerScore(clientId: string, producerId: string, kind: string, score: any): void;
|
|
1199
1178
|
addConsumerScore(clientId: string, consumerId: string, kind: string, score: any): void;
|
|
1200
|
-
_evaluateScore(score: number): "
|
|
1179
|
+
_evaluateScore(score: number): "ok" | "warning" | "critical";
|
|
1201
1180
|
_calcAvgProducerScore(scores: any): number;
|
|
1202
1181
|
}
|
|
1203
1182
|
|
|
@@ -1582,4 +1561,4 @@ declare class RtcStream {
|
|
|
1582
1561
|
static getTypeFromId(id: string): string;
|
|
1583
1562
|
}
|
|
1584
1563
|
|
|
1585
|
-
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type BreakoutGroupJoinedEvent, 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, type StatsSubscription, TYPES, type TrackStats, type TurnTransportProtocol, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, type VideoEnableRequest, type VideoEnableRequestedEvent, type VideoEnabledEvent, type ViewStats, 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, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getOptimalBitrate, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, isRelayed, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceSSRCs, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, type ssrcStats, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, variance };
|
|
1564
|
+
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type BreakoutGroupJoinedEvent, 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, type StatsSubscription, TYPES, type TrackStats, type TurnTransportProtocol, type UpdatedDeviceInfo, type UpdatedDevicesInfo, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, type VideoEnableRequest, type VideoEnableRequestedEvent, type VideoEnabledEvent, type ViewStats, 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, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getOptimalBitrate, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, isRelayed, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceSSRCs, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, type ssrcStats, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, variance };
|
package/dist/index.d.ts
CHANGED
|
@@ -363,41 +363,20 @@ type GetStreamResult = {
|
|
|
363
363
|
replacedTracks?: MediaStreamTrack[];
|
|
364
364
|
stream: MediaStream;
|
|
365
365
|
};
|
|
366
|
+
type UpdatedDeviceInfo = {
|
|
367
|
+
deviceId?: string | null;
|
|
368
|
+
kind?: MediaDeviceKind;
|
|
369
|
+
label?: string;
|
|
370
|
+
};
|
|
371
|
+
type UpdatedDevicesInfo = {
|
|
372
|
+
audioinput?: UpdatedDeviceInfo;
|
|
373
|
+
videoinput?: UpdatedDeviceInfo;
|
|
374
|
+
audiooutput?: UpdatedDeviceInfo;
|
|
375
|
+
};
|
|
366
376
|
type GetUpdatedDevicesResult = {
|
|
367
|
-
addedDevices:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
label: string;
|
|
371
|
-
kind: string;
|
|
372
|
-
};
|
|
373
|
-
videoinput?: {
|
|
374
|
-
deviceId: string;
|
|
375
|
-
label: string;
|
|
376
|
-
kind: string;
|
|
377
|
-
};
|
|
378
|
-
audiooutput?: {
|
|
379
|
-
deviceId: string;
|
|
380
|
-
label: string;
|
|
381
|
-
kind: string;
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
changedDevices: {
|
|
385
|
-
audioinput?: {
|
|
386
|
-
deviceId: string;
|
|
387
|
-
label: string;
|
|
388
|
-
kind: string;
|
|
389
|
-
};
|
|
390
|
-
videoinput?: {
|
|
391
|
-
deviceId: string;
|
|
392
|
-
label: string;
|
|
393
|
-
kind: string;
|
|
394
|
-
};
|
|
395
|
-
audiooutput?: {
|
|
396
|
-
deviceId: string;
|
|
397
|
-
label: string;
|
|
398
|
-
kind: string;
|
|
399
|
-
};
|
|
400
|
-
};
|
|
377
|
+
addedDevices: UpdatedDevicesInfo;
|
|
378
|
+
changedDevices: UpdatedDevicesInfo;
|
|
379
|
+
removedDevices: UpdatedDevicesInfo;
|
|
401
380
|
};
|
|
402
381
|
type GetDeviceDataResult = {
|
|
403
382
|
audio: {
|
|
@@ -447,7 +426,7 @@ declare function getDisplayMedia(constraints?: {
|
|
|
447
426
|
};
|
|
448
427
|
};
|
|
449
428
|
}, contentHint?: string): Promise<MediaStream>;
|
|
450
|
-
declare function compareLocalDevices(before:
|
|
429
|
+
declare function compareLocalDevices(before: MediaDeviceInfo[], after: MediaDeviceInfo[]): any;
|
|
451
430
|
declare function getUpdatedDevices({ oldDevices, newDevices, currentAudioId, currentVideoId, currentSpeakerId, }: {
|
|
452
431
|
oldDevices: MediaDeviceInfo[];
|
|
453
432
|
newDevices: MediaDeviceInfo[];
|
|
@@ -1197,7 +1176,7 @@ declare class VegaMediaQualityMonitor extends EventEmitter {
|
|
|
1197
1176
|
removeConsumer(clientId: string, consumerId: string): void;
|
|
1198
1177
|
addProducerScore(clientId: string, producerId: string, kind: string, score: any): void;
|
|
1199
1178
|
addConsumerScore(clientId: string, consumerId: string, kind: string, score: any): void;
|
|
1200
|
-
_evaluateScore(score: number): "
|
|
1179
|
+
_evaluateScore(score: number): "ok" | "warning" | "critical";
|
|
1201
1180
|
_calcAvgProducerScore(scores: any): number;
|
|
1202
1181
|
}
|
|
1203
1182
|
|
|
@@ -1582,4 +1561,4 @@ declare class RtcStream {
|
|
|
1582
1561
|
static getTypeFromId(id: string): string;
|
|
1583
1562
|
}
|
|
1584
1563
|
|
|
1585
|
-
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type BreakoutGroupJoinedEvent, 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, type StatsSubscription, TYPES, type TrackStats, type TurnTransportProtocol, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, type VideoEnableRequest, type VideoEnableRequestedEvent, type VideoEnabledEvent, type ViewStats, 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, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getOptimalBitrate, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, isRelayed, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceSSRCs, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, type ssrcStats, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, variance };
|
|
1564
|
+
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type BreakoutGroupJoinedEvent, 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, type StatsSubscription, TYPES, type TrackStats, type TurnTransportProtocol, type UpdatedDeviceInfo, type UpdatedDevicesInfo, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, type VideoEnableRequest, type VideoEnableRequestedEvent, type VideoEnabledEvent, type ViewStats, 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, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getOptimalBitrate, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, isRelayed, maybeRejectNoH264, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceSSRCs, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, type ssrcStats, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, variance };
|