@whereby.com/media 1.5.0 → 1.5.1
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 +237 -212
- package/dist/index.d.cts +38 -17
- package/dist/index.d.mts +38 -17
- package/dist/index.d.ts +38 -17
- package/dist/index.mjs +237 -212
- package/dist/legacy-esm.js +237 -212
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -16,10 +16,45 @@ declare function startPerformanceMonitor({ onMetricsUpdated, onTerminated, isHid
|
|
|
16
16
|
updateHidden: () => void;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
declare
|
|
19
|
+
declare class Logger {
|
|
20
|
+
_isEnabled: boolean;
|
|
21
|
+
_debugger: any;
|
|
22
|
+
constructor();
|
|
23
|
+
isEnabled(): boolean;
|
|
24
|
+
enable(): void;
|
|
25
|
+
disable(): void;
|
|
26
|
+
info(...params: any[]): void;
|
|
27
|
+
warn(...params: any[]): void;
|
|
28
|
+
error(...params: any[]): void;
|
|
29
|
+
withDebugLogger(myDebugger?: null): this;
|
|
30
|
+
debug(...params: any[]): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface StatsMonitor {
|
|
34
|
+
getUpdatedStats: () => any;
|
|
35
|
+
stop: () => void;
|
|
36
|
+
}
|
|
37
|
+
interface StatsSubscription {
|
|
38
|
+
onUpdatedStats: (statsByView: any, clients: any) => void;
|
|
39
|
+
}
|
|
40
|
+
interface StatsMonitorState {
|
|
41
|
+
currentMonitor: StatsMonitor | null;
|
|
42
|
+
getClients: () => any[];
|
|
43
|
+
lastPressureObserverRecord?: any;
|
|
44
|
+
lastUpdateTime: number;
|
|
45
|
+
nextTimeout?: NodeJS.Timeout;
|
|
46
|
+
pressureObserver?: any;
|
|
47
|
+
statsByView: any;
|
|
48
|
+
subscriptions: StatsSubscription[];
|
|
49
|
+
}
|
|
50
|
+
interface StatsMonitorOptions {
|
|
51
|
+
interval: number;
|
|
52
|
+
logger: Pick<Logger, "debug" | "error" | "info" | "warn">;
|
|
53
|
+
}
|
|
20
54
|
declare const getStats: () => any;
|
|
21
55
|
declare const getUpdatedStats: () => any;
|
|
22
|
-
declare
|
|
56
|
+
declare const setClientProvider: (provider: any) => any;
|
|
57
|
+
declare function subscribeStats(subscription: StatsSubscription, options?: StatsMonitorOptions, state?: StatsMonitorState): {
|
|
23
58
|
stop(): void;
|
|
24
59
|
};
|
|
25
60
|
|
|
@@ -429,20 +464,6 @@ declare const ipRegex: {
|
|
|
429
464
|
}): RegExp;
|
|
430
465
|
};
|
|
431
466
|
|
|
432
|
-
declare class Logger {
|
|
433
|
-
_isEnabled: boolean;
|
|
434
|
-
_debugger: any;
|
|
435
|
-
constructor();
|
|
436
|
-
isEnabled(): boolean;
|
|
437
|
-
enable(): void;
|
|
438
|
-
disable(): void;
|
|
439
|
-
info(...params: any[]): void;
|
|
440
|
-
warn(...params: any[]): void;
|
|
441
|
-
error(...params: any[]): void;
|
|
442
|
-
withDebugLogger(myDebugger?: null): this;
|
|
443
|
-
debug(...params: any[]): void;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
467
|
declare const getMediaSettings: (kind: string, isScreenShare: boolean, features: any) => {
|
|
447
468
|
encodings: {}[];
|
|
448
469
|
};
|
|
@@ -1359,4 +1380,4 @@ declare class RtcStream {
|
|
|
1359
1380
|
static getTypeFromId(id: string): string;
|
|
1360
1381
|
}
|
|
1361
1382
|
|
|
1362
|
-
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type ChatMessage, type ClientKickedEvent, type ClientLeftEvent, type ClientMetadataPayload, type ClientMetadataReceivedEvent, type ClientRole, type CloudRecordingStartedEvent, type Credentials, EVENTS, type GetConstraintsOptions, type GetDeviceDataResult, type GetMediaConstraintsOptions, type GetStreamOptions, type GetStreamResult, type GetUpdatedDevicesResult, type IdentifyDeviceRequest, type JoinRoomRequest, KNOCK_MESSAGES, KalmanFilter, type KnockAcceptedEvent, type KnockRejectedEvent, type KnockRoomRequest, type KnockerLeftEvent, 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, TYPES, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, 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 };
|
|
1383
|
+
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type ChatMessage, type ClientKickedEvent, type ClientLeftEvent, type ClientMetadataPayload, type ClientMetadataReceivedEvent, type ClientRole, type CloudRecordingStartedEvent, type Credentials, EVENTS, type GetConstraintsOptions, type GetDeviceDataResult, type GetMediaConstraintsOptions, type GetStreamOptions, type GetStreamResult, type GetUpdatedDevicesResult, type IdentifyDeviceRequest, type JoinRoomRequest, KNOCK_MESSAGES, KalmanFilter, type KnockAcceptedEvent, type KnockRejectedEvent, type KnockRoomRequest, type KnockerLeftEvent, 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, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,10 +16,45 @@ declare function startPerformanceMonitor({ onMetricsUpdated, onTerminated, isHid
|
|
|
16
16
|
updateHidden: () => void;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
declare
|
|
19
|
+
declare class Logger {
|
|
20
|
+
_isEnabled: boolean;
|
|
21
|
+
_debugger: any;
|
|
22
|
+
constructor();
|
|
23
|
+
isEnabled(): boolean;
|
|
24
|
+
enable(): void;
|
|
25
|
+
disable(): void;
|
|
26
|
+
info(...params: any[]): void;
|
|
27
|
+
warn(...params: any[]): void;
|
|
28
|
+
error(...params: any[]): void;
|
|
29
|
+
withDebugLogger(myDebugger?: null): this;
|
|
30
|
+
debug(...params: any[]): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface StatsMonitor {
|
|
34
|
+
getUpdatedStats: () => any;
|
|
35
|
+
stop: () => void;
|
|
36
|
+
}
|
|
37
|
+
interface StatsSubscription {
|
|
38
|
+
onUpdatedStats: (statsByView: any, clients: any) => void;
|
|
39
|
+
}
|
|
40
|
+
interface StatsMonitorState {
|
|
41
|
+
currentMonitor: StatsMonitor | null;
|
|
42
|
+
getClients: () => any[];
|
|
43
|
+
lastPressureObserverRecord?: any;
|
|
44
|
+
lastUpdateTime: number;
|
|
45
|
+
nextTimeout?: NodeJS.Timeout;
|
|
46
|
+
pressureObserver?: any;
|
|
47
|
+
statsByView: any;
|
|
48
|
+
subscriptions: StatsSubscription[];
|
|
49
|
+
}
|
|
50
|
+
interface StatsMonitorOptions {
|
|
51
|
+
interval: number;
|
|
52
|
+
logger: Pick<Logger, "debug" | "error" | "info" | "warn">;
|
|
53
|
+
}
|
|
20
54
|
declare const getStats: () => any;
|
|
21
55
|
declare const getUpdatedStats: () => any;
|
|
22
|
-
declare
|
|
56
|
+
declare const setClientProvider: (provider: any) => any;
|
|
57
|
+
declare function subscribeStats(subscription: StatsSubscription, options?: StatsMonitorOptions, state?: StatsMonitorState): {
|
|
23
58
|
stop(): void;
|
|
24
59
|
};
|
|
25
60
|
|
|
@@ -429,20 +464,6 @@ declare const ipRegex: {
|
|
|
429
464
|
}): RegExp;
|
|
430
465
|
};
|
|
431
466
|
|
|
432
|
-
declare class Logger {
|
|
433
|
-
_isEnabled: boolean;
|
|
434
|
-
_debugger: any;
|
|
435
|
-
constructor();
|
|
436
|
-
isEnabled(): boolean;
|
|
437
|
-
enable(): void;
|
|
438
|
-
disable(): void;
|
|
439
|
-
info(...params: any[]): void;
|
|
440
|
-
warn(...params: any[]): void;
|
|
441
|
-
error(...params: any[]): void;
|
|
442
|
-
withDebugLogger(myDebugger?: null): this;
|
|
443
|
-
debug(...params: any[]): void;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
467
|
declare const getMediaSettings: (kind: string, isScreenShare: boolean, features: any) => {
|
|
447
468
|
encodings: {}[];
|
|
448
469
|
};
|
|
@@ -1359,4 +1380,4 @@ declare class RtcStream {
|
|
|
1359
1380
|
static getTypeFromId(id: string): string;
|
|
1360
1381
|
}
|
|
1361
1382
|
|
|
1362
|
-
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type ChatMessage, type ClientKickedEvent, type ClientLeftEvent, type ClientMetadataPayload, type ClientMetadataReceivedEvent, type ClientRole, type CloudRecordingStartedEvent, type Credentials, EVENTS, type GetConstraintsOptions, type GetDeviceDataResult, type GetMediaConstraintsOptions, type GetStreamOptions, type GetStreamResult, type GetUpdatedDevicesResult, type IdentifyDeviceRequest, type JoinRoomRequest, KNOCK_MESSAGES, KalmanFilter, type KnockAcceptedEvent, type KnockRejectedEvent, type KnockRoomRequest, type KnockerLeftEvent, 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, TYPES, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, 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 };
|
|
1383
|
+
export { type AddSpotlightRequest, type AudioEnableRequest, type AudioEnableRequestedEvent, type AudioEnabledEvent, BandwidthTester, type ChatMessage, type ClientKickedEvent, type ClientLeftEvent, type ClientMetadataPayload, type ClientMetadataReceivedEvent, type ClientRole, type CloudRecordingStartedEvent, type Credentials, EVENTS, type GetConstraintsOptions, type GetDeviceDataResult, type GetMediaConstraintsOptions, type GetStreamOptions, type GetStreamResult, type GetUpdatedDevicesResult, type IdentifyDeviceRequest, type JoinRoomRequest, KNOCK_MESSAGES, KalmanFilter, type KnockAcceptedEvent, type KnockRejectedEvent, type KnockRoomRequest, type KnockerLeftEvent, 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, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, 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 };
|