@whereby.com/media 10.0.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -72
- package/dist/index.d.cts +1 -12
- package/dist/index.d.mts +1 -12
- package/dist/index.d.ts +1 -12
- package/dist/index.mjs +10 -72
- package/dist/legacy-esm.js +10 -72
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -64,8 +64,8 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
64
64
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
var _a$
|
|
68
|
-
(_a$
|
|
67
|
+
var _a$6;
|
|
68
|
+
(_a$6 = adapterRaw.default) !== null && _a$6 !== void 0 ? _a$6 : adapterRaw;
|
|
69
69
|
const RTCSTATS_PROTOCOL_VERSION = "1.0";
|
|
70
70
|
const GETSTATS_BUFFER_SIZE = 20;
|
|
71
71
|
const clientInfo = {
|
|
@@ -244,12 +244,6 @@ const rtcStats = {
|
|
|
244
244
|
value,
|
|
245
245
|
});
|
|
246
246
|
},
|
|
247
|
-
sendAudioMuted: (muted) => {
|
|
248
|
-
rtcStats.sendEvent("audio_muted", { muted });
|
|
249
|
-
},
|
|
250
|
-
sendVideoMuted: (muted) => {
|
|
251
|
-
rtcStats.sendEvent("video_muted", { muted });
|
|
252
|
-
},
|
|
253
247
|
server,
|
|
254
248
|
};
|
|
255
249
|
|
|
@@ -308,11 +302,11 @@ class Logger {
|
|
|
308
302
|
}
|
|
309
303
|
}
|
|
310
304
|
|
|
311
|
-
var _a$
|
|
312
|
-
const adapter$
|
|
305
|
+
var _a$5, _b$2;
|
|
306
|
+
const adapter$5 = (_a$5 = adapterRaw.default) !== null && _a$5 !== void 0 ? _a$5 : adapterRaw;
|
|
313
307
|
const logger$b = new Logger();
|
|
314
|
-
const browserName$2 = (_b$2 = adapter$
|
|
315
|
-
const browserVersion$1 = adapter$
|
|
308
|
+
const browserName$2 = (_b$2 = adapter$5.browserDetails) === null || _b$2 === void 0 ? void 0 : _b$2.browser;
|
|
309
|
+
const browserVersion$1 = adapter$5.browserDetails.version;
|
|
316
310
|
function setCodecPreferenceSDP({ sdp, redOn }) {
|
|
317
311
|
var _a, _b;
|
|
318
312
|
try {
|
|
@@ -500,8 +494,8 @@ function trackAnnotations(o) {
|
|
|
500
494
|
return props;
|
|
501
495
|
}
|
|
502
496
|
|
|
503
|
-
var _a$
|
|
504
|
-
const adapter$
|
|
497
|
+
var _a$4;
|
|
498
|
+
const adapter$4 = (_a$4 = adapterRaw.default) !== null && _a$4 !== void 0 ? _a$4 : adapterRaw;
|
|
505
499
|
const logger$a = new Logger();
|
|
506
500
|
class Session {
|
|
507
501
|
constructor({ clientId, bandwidth, peerConnectionConfig, deprioritizeH264Encoding, incrementAnalyticMetric, mediaPrefs, }) {
|
|
@@ -658,7 +652,7 @@ class Session {
|
|
|
658
652
|
if (this.pc.signalingState === "closed") {
|
|
659
653
|
return;
|
|
660
654
|
}
|
|
661
|
-
if (((_a = adapter$
|
|
655
|
+
if (((_a = adapter$4.browserDetails) === null || _a === void 0 ? void 0 : _a.browser) === "safari" && candidate && candidate.candidate === "") {
|
|
662
656
|
return;
|
|
663
657
|
}
|
|
664
658
|
this.pc.addIceCandidate(candidate).catch((e) => {
|
|
@@ -771,39 +765,6 @@ class Session {
|
|
|
771
765
|
|
|
772
766
|
const MEDIA_JITTER_BUFFER_TARGET = 400;
|
|
773
767
|
|
|
774
|
-
var _a$4;
|
|
775
|
-
const adapter$4 = (_a$4 = adapterRaw.default) !== null && _a$4 !== void 0 ? _a$4 : adapterRaw;
|
|
776
|
-
function detectMicrophoneNotWorking(pc) {
|
|
777
|
-
var _a, _b;
|
|
778
|
-
if (((_a = adapter$4.browserDetails) === null || _a === void 0 ? void 0 : _a.browser) !== "chrome" ||
|
|
779
|
-
((_b = adapter$4.browserDetails) === null || _b === void 0 ? void 0 : _b.browser) < 58 ||
|
|
780
|
-
pc.signalingState === "closed") {
|
|
781
|
-
return Promise.resolve("");
|
|
782
|
-
}
|
|
783
|
-
const sendingAudio = pc.getSenders().some((sender) => { var _a; return ((_a = sender.track) === null || _a === void 0 ? void 0 : _a.kind) === "audio"; });
|
|
784
|
-
const receivingAudio = pc.getReceivers().some((receiver) => { var _a; return ((_a = receiver.track) === null || _a === void 0 ? void 0 : _a.kind) === "audio"; });
|
|
785
|
-
return pc.getStats(null).then((result) => {
|
|
786
|
-
let microphoneFailed = "";
|
|
787
|
-
result.forEach((report) => {
|
|
788
|
-
if (report.type === "outbound-rtp" &&
|
|
789
|
-
(report.kind === "audio" || report.mediaType === "audio") &&
|
|
790
|
-
sendingAudio) {
|
|
791
|
-
if (report.bytesSent === 0) {
|
|
792
|
-
microphoneFailed = "outbound";
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
else if (report.type === "inbound-rtp" &&
|
|
796
|
-
(report.kind === "audio" || report.mediaType === "audio") &&
|
|
797
|
-
receivingAudio) {
|
|
798
|
-
if (report.bytesReceived === 0) {
|
|
799
|
-
microphoneFailed = "inbound";
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
});
|
|
803
|
-
return microphoneFailed;
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
|
|
807
768
|
const PROTOCOL_REQUESTS = {
|
|
808
769
|
BLOCK_CLIENT: "block_client",
|
|
809
770
|
CANCEL_ROOM_KNOCK: "cancel_room_knock",
|
|
@@ -992,9 +953,7 @@ ipRegex.v4 = (options) => options && options.exact ? v4exact : new RegExp(`${bou
|
|
|
992
953
|
ipRegex.v6 = (options) => options && options.exact ? v6exact : new RegExp(`${boundry(options)}${v6}${boundry(options)}`, "g");
|
|
993
954
|
|
|
994
955
|
var rtcManagerEvents = {
|
|
995
|
-
CAMERA_NOT_WORKING: "camera_not_working",
|
|
996
956
|
CONNECTION_BLOCKED_BY_NETWORK: "connection_blocked_by_network",
|
|
997
|
-
MICROPHONE_NOT_WORKING: "microphone_not_working",
|
|
998
957
|
MICROPHONE_STOPPED_WORKING: "microphone_stopped_working",
|
|
999
958
|
CAMERA_STOPPED_WORKING: "camera_stopped_working",
|
|
1000
959
|
NEW_PC: "new_pc",
|
|
@@ -2519,7 +2478,6 @@ class P2pRtcManager {
|
|
|
2519
2478
|
P2PReplaceTrackNoStream: 0,
|
|
2520
2479
|
P2PReplaceTrackNewTrackNotInStream: 0,
|
|
2521
2480
|
P2POnTrackNoStream: 0,
|
|
2522
|
-
P2PMicNotWorking: 0,
|
|
2523
2481
|
P2PLocalNetworkFailed: 0,
|
|
2524
2482
|
P2PRelayedIceCandidate: 0,
|
|
2525
2483
|
P2PAddIceCandidateFailure: 0,
|
|
@@ -2712,12 +2670,6 @@ class P2pRtcManager {
|
|
|
2712
2670
|
}),
|
|
2713
2671
|
];
|
|
2714
2672
|
}
|
|
2715
|
-
sendAudioMutedStats(muted) {
|
|
2716
|
-
rtcStats.sendEvent("audio_muted", { muted });
|
|
2717
|
-
}
|
|
2718
|
-
sendVideoMutedStats(muted) {
|
|
2719
|
-
rtcStats.sendEvent("video_muted", { muted });
|
|
2720
|
-
}
|
|
2721
2673
|
sendStatsCustomEvent(eventName, data) {
|
|
2722
2674
|
rtcStats.sendEvent(eventName, data);
|
|
2723
2675
|
}
|
|
@@ -3026,14 +2978,6 @@ class P2pRtcManager {
|
|
|
3026
2978
|
logger$6.info(`connectionState changed to ${pc.connectionState} for session ${session.clientId}`);
|
|
3027
2979
|
switch (pc.connectionState) {
|
|
3028
2980
|
case "connected":
|
|
3029
|
-
setTimeout(() => {
|
|
3030
|
-
detectMicrophoneNotWorking(session.pc).then((failureDirection) => {
|
|
3031
|
-
if (failureDirection) {
|
|
3032
|
-
this.analytics.P2PMicNotWorking++;
|
|
3033
|
-
rtcStats.sendEvent("P2PMicNotWorking", { clientId, failureDirection });
|
|
3034
|
-
}
|
|
3035
|
-
});
|
|
3036
|
-
}, 3000);
|
|
3037
2981
|
(_a = session.registerConnected) === null || _a === void 0 ? void 0 : _a.call(session, {});
|
|
3038
2982
|
break;
|
|
3039
2983
|
case "failed":
|
|
@@ -5519,12 +5463,6 @@ class VegaRtcManager {
|
|
|
5519
5463
|
this._mediasoupDeviceInitializedAsync = Promise.resolve(null);
|
|
5520
5464
|
this._qualityMonitor.close();
|
|
5521
5465
|
}
|
|
5522
|
-
sendAudioMutedStats(muted) {
|
|
5523
|
-
rtcStats.sendEvent("audio_muted", { muted });
|
|
5524
|
-
}
|
|
5525
|
-
sendVideoMutedStats(muted) {
|
|
5526
|
-
rtcStats.sendEvent("video_muted", { muted });
|
|
5527
|
-
}
|
|
5528
5466
|
sendStatsCustomEvent(eventName, data) {
|
|
5529
5467
|
rtcStats.sendEvent(eventName, data);
|
|
5530
5468
|
}
|
|
@@ -7593,7 +7531,6 @@ exports.createACFCalculator = createACFCalculator;
|
|
|
7593
7531
|
exports.createMicAnalyser = createMicAnalyser;
|
|
7594
7532
|
exports.createWorker = createWorker;
|
|
7595
7533
|
exports.deprioritizeH264 = deprioritizeH264;
|
|
7596
|
-
exports.detectMicrophoneNotWorking = detectMicrophoneNotWorking;
|
|
7597
7534
|
exports.enumerate = enumerate;
|
|
7598
7535
|
exports.external_stun_servers = external_stun_servers;
|
|
7599
7536
|
exports.filterMidExtension = filterMidExtension;
|
package/dist/index.d.cts
CHANGED
|
@@ -1361,8 +1361,6 @@ declare class BandwidthTester extends EventEmitter {
|
|
|
1361
1361
|
_clearTimeouts(): void;
|
|
1362
1362
|
}
|
|
1363
1363
|
|
|
1364
|
-
declare function detectMicrophoneNotWorking(pc: RTCPeerConnection): Promise<string>;
|
|
1365
|
-
|
|
1366
1364
|
declare const MEDIA_JITTER_BUFFER_TARGET = 400;
|
|
1367
1365
|
|
|
1368
1366
|
declare function getMediaConstraints({ disableAEC, disableAGC, hd, lax, lowDataMode, preferredDeviceIds, resolution, simulcast, widescreen, }: GetMediaConstraintsOptions): any;
|
|
@@ -1650,7 +1648,6 @@ type P2PAnalytics = {
|
|
|
1650
1648
|
P2PReplaceTrackNoStream: number;
|
|
1651
1649
|
P2PReplaceTrackNewTrackNotInStream: number;
|
|
1652
1650
|
P2POnTrackNoStream: number;
|
|
1653
|
-
P2PMicNotWorking: number;
|
|
1654
1651
|
P2PLocalNetworkFailed: number;
|
|
1655
1652
|
P2PRelayedIceCandidate: number;
|
|
1656
1653
|
P2PAddIceCandidateFailure: number;
|
|
@@ -1705,8 +1702,6 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1705
1702
|
close(): void;
|
|
1706
1703
|
disconnectAll(): void;
|
|
1707
1704
|
setupSocketListeners(): void;
|
|
1708
|
-
sendAudioMutedStats(muted: boolean): void;
|
|
1709
|
-
sendVideoMutedStats(muted: boolean): void;
|
|
1710
1705
|
sendStatsCustomEvent(eventName: string, data: any): void;
|
|
1711
1706
|
rtcStatsConnect(): void;
|
|
1712
1707
|
rtcStatsDisconnect(): void;
|
|
@@ -1773,9 +1768,7 @@ declare class RtcManagerDispatcher {
|
|
|
1773
1768
|
}
|
|
1774
1769
|
|
|
1775
1770
|
declare const _default: {
|
|
1776
|
-
CAMERA_NOT_WORKING: string;
|
|
1777
1771
|
CONNECTION_BLOCKED_BY_NETWORK: string;
|
|
1778
|
-
MICROPHONE_NOT_WORKING: string;
|
|
1779
1772
|
MICROPHONE_STOPPED_WORKING: string;
|
|
1780
1773
|
CAMERA_STOPPED_WORKING: string;
|
|
1781
1774
|
NEW_PC: string;
|
|
@@ -1790,8 +1783,6 @@ declare function setVideoBandwidthUsingSetParameters(pc: RTCPeerConnection, band
|
|
|
1790
1783
|
|
|
1791
1784
|
declare const rtcStats: {
|
|
1792
1785
|
sendEvent: (type: any, value: any) => void;
|
|
1793
|
-
sendAudioMuted: (muted: boolean) => void;
|
|
1794
|
-
sendVideoMuted: (muted: boolean) => void;
|
|
1795
1786
|
server: {
|
|
1796
1787
|
connected: boolean;
|
|
1797
1788
|
attemptedConnectedAtLeastOnce: boolean;
|
|
@@ -2109,8 +2100,6 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2109
2100
|
}): void;
|
|
2110
2101
|
close(): void;
|
|
2111
2102
|
disconnectAll(): void;
|
|
2112
|
-
sendAudioMutedStats(muted: boolean): void;
|
|
2113
|
-
sendVideoMutedStats(muted: boolean): void;
|
|
2114
2103
|
sendStatsCustomEvent(eventName: string, data?: any): void;
|
|
2115
2104
|
rtcStatsConnect(): void;
|
|
2116
2105
|
rtcStatsDisconnect(): void;
|
|
@@ -2158,5 +2147,5 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2158
2147
|
hasClient(clientId: string): boolean;
|
|
2159
2148
|
}
|
|
2160
2149
|
|
|
2161
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264,
|
|
2150
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
2162
2151
|
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdateRequest, BreakoutSessionUpdatedEvent, BuildDeviceListOptions, CannotJoinUnclaimedRoomError, ChatFileShare, ChatMessage, ChatMessageError, ChatMessageRemoved, ChatMessageRequest, ClearableTimeout, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, ConnectionStatus, Credentials, FileShareErrorCode, FileUploadUrl, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetInitialStreamOptions, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockOnHoldEvent, KnockRejectedEvent, KnockResponse, KnockResponseSender, KnockRoomRequest, KnockerLeftEvent, LiveCaptionEvent, LiveCaptionsStartedEvent, LiveCaptionsStoppedEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.d.mts
CHANGED
|
@@ -1361,8 +1361,6 @@ declare class BandwidthTester extends EventEmitter {
|
|
|
1361
1361
|
_clearTimeouts(): void;
|
|
1362
1362
|
}
|
|
1363
1363
|
|
|
1364
|
-
declare function detectMicrophoneNotWorking(pc: RTCPeerConnection): Promise<string>;
|
|
1365
|
-
|
|
1366
1364
|
declare const MEDIA_JITTER_BUFFER_TARGET = 400;
|
|
1367
1365
|
|
|
1368
1366
|
declare function getMediaConstraints({ disableAEC, disableAGC, hd, lax, lowDataMode, preferredDeviceIds, resolution, simulcast, widescreen, }: GetMediaConstraintsOptions): any;
|
|
@@ -1650,7 +1648,6 @@ type P2PAnalytics = {
|
|
|
1650
1648
|
P2PReplaceTrackNoStream: number;
|
|
1651
1649
|
P2PReplaceTrackNewTrackNotInStream: number;
|
|
1652
1650
|
P2POnTrackNoStream: number;
|
|
1653
|
-
P2PMicNotWorking: number;
|
|
1654
1651
|
P2PLocalNetworkFailed: number;
|
|
1655
1652
|
P2PRelayedIceCandidate: number;
|
|
1656
1653
|
P2PAddIceCandidateFailure: number;
|
|
@@ -1705,8 +1702,6 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1705
1702
|
close(): void;
|
|
1706
1703
|
disconnectAll(): void;
|
|
1707
1704
|
setupSocketListeners(): void;
|
|
1708
|
-
sendAudioMutedStats(muted: boolean): void;
|
|
1709
|
-
sendVideoMutedStats(muted: boolean): void;
|
|
1710
1705
|
sendStatsCustomEvent(eventName: string, data: any): void;
|
|
1711
1706
|
rtcStatsConnect(): void;
|
|
1712
1707
|
rtcStatsDisconnect(): void;
|
|
@@ -1773,9 +1768,7 @@ declare class RtcManagerDispatcher {
|
|
|
1773
1768
|
}
|
|
1774
1769
|
|
|
1775
1770
|
declare const _default: {
|
|
1776
|
-
CAMERA_NOT_WORKING: string;
|
|
1777
1771
|
CONNECTION_BLOCKED_BY_NETWORK: string;
|
|
1778
|
-
MICROPHONE_NOT_WORKING: string;
|
|
1779
1772
|
MICROPHONE_STOPPED_WORKING: string;
|
|
1780
1773
|
CAMERA_STOPPED_WORKING: string;
|
|
1781
1774
|
NEW_PC: string;
|
|
@@ -1790,8 +1783,6 @@ declare function setVideoBandwidthUsingSetParameters(pc: RTCPeerConnection, band
|
|
|
1790
1783
|
|
|
1791
1784
|
declare const rtcStats: {
|
|
1792
1785
|
sendEvent: (type: any, value: any) => void;
|
|
1793
|
-
sendAudioMuted: (muted: boolean) => void;
|
|
1794
|
-
sendVideoMuted: (muted: boolean) => void;
|
|
1795
1786
|
server: {
|
|
1796
1787
|
connected: boolean;
|
|
1797
1788
|
attemptedConnectedAtLeastOnce: boolean;
|
|
@@ -2109,8 +2100,6 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2109
2100
|
}): void;
|
|
2110
2101
|
close(): void;
|
|
2111
2102
|
disconnectAll(): void;
|
|
2112
|
-
sendAudioMutedStats(muted: boolean): void;
|
|
2113
|
-
sendVideoMutedStats(muted: boolean): void;
|
|
2114
2103
|
sendStatsCustomEvent(eventName: string, data?: any): void;
|
|
2115
2104
|
rtcStatsConnect(): void;
|
|
2116
2105
|
rtcStatsDisconnect(): void;
|
|
@@ -2158,5 +2147,5 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2158
2147
|
hasClient(clientId: string): boolean;
|
|
2159
2148
|
}
|
|
2160
2149
|
|
|
2161
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264,
|
|
2150
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
2162
2151
|
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdateRequest, BreakoutSessionUpdatedEvent, BuildDeviceListOptions, CannotJoinUnclaimedRoomError, ChatFileShare, ChatMessage, ChatMessageError, ChatMessageRemoved, ChatMessageRequest, ClearableTimeout, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, ConnectionStatus, Credentials, FileShareErrorCode, FileUploadUrl, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetInitialStreamOptions, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockOnHoldEvent, KnockRejectedEvent, KnockResponse, KnockResponseSender, KnockRoomRequest, KnockerLeftEvent, LiveCaptionEvent, LiveCaptionsStartedEvent, LiveCaptionsStoppedEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.d.ts
CHANGED
|
@@ -1361,8 +1361,6 @@ declare class BandwidthTester extends EventEmitter {
|
|
|
1361
1361
|
_clearTimeouts(): void;
|
|
1362
1362
|
}
|
|
1363
1363
|
|
|
1364
|
-
declare function detectMicrophoneNotWorking(pc: RTCPeerConnection): Promise<string>;
|
|
1365
|
-
|
|
1366
1364
|
declare const MEDIA_JITTER_BUFFER_TARGET = 400;
|
|
1367
1365
|
|
|
1368
1366
|
declare function getMediaConstraints({ disableAEC, disableAGC, hd, lax, lowDataMode, preferredDeviceIds, resolution, simulcast, widescreen, }: GetMediaConstraintsOptions): any;
|
|
@@ -1650,7 +1648,6 @@ type P2PAnalytics = {
|
|
|
1650
1648
|
P2PReplaceTrackNoStream: number;
|
|
1651
1649
|
P2PReplaceTrackNewTrackNotInStream: number;
|
|
1652
1650
|
P2POnTrackNoStream: number;
|
|
1653
|
-
P2PMicNotWorking: number;
|
|
1654
1651
|
P2PLocalNetworkFailed: number;
|
|
1655
1652
|
P2PRelayedIceCandidate: number;
|
|
1656
1653
|
P2PAddIceCandidateFailure: number;
|
|
@@ -1705,8 +1702,6 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1705
1702
|
close(): void;
|
|
1706
1703
|
disconnectAll(): void;
|
|
1707
1704
|
setupSocketListeners(): void;
|
|
1708
|
-
sendAudioMutedStats(muted: boolean): void;
|
|
1709
|
-
sendVideoMutedStats(muted: boolean): void;
|
|
1710
1705
|
sendStatsCustomEvent(eventName: string, data: any): void;
|
|
1711
1706
|
rtcStatsConnect(): void;
|
|
1712
1707
|
rtcStatsDisconnect(): void;
|
|
@@ -1773,9 +1768,7 @@ declare class RtcManagerDispatcher {
|
|
|
1773
1768
|
}
|
|
1774
1769
|
|
|
1775
1770
|
declare const _default: {
|
|
1776
|
-
CAMERA_NOT_WORKING: string;
|
|
1777
1771
|
CONNECTION_BLOCKED_BY_NETWORK: string;
|
|
1778
|
-
MICROPHONE_NOT_WORKING: string;
|
|
1779
1772
|
MICROPHONE_STOPPED_WORKING: string;
|
|
1780
1773
|
CAMERA_STOPPED_WORKING: string;
|
|
1781
1774
|
NEW_PC: string;
|
|
@@ -1790,8 +1783,6 @@ declare function setVideoBandwidthUsingSetParameters(pc: RTCPeerConnection, band
|
|
|
1790
1783
|
|
|
1791
1784
|
declare const rtcStats: {
|
|
1792
1785
|
sendEvent: (type: any, value: any) => void;
|
|
1793
|
-
sendAudioMuted: (muted: boolean) => void;
|
|
1794
|
-
sendVideoMuted: (muted: boolean) => void;
|
|
1795
1786
|
server: {
|
|
1796
1787
|
connected: boolean;
|
|
1797
1788
|
attemptedConnectedAtLeastOnce: boolean;
|
|
@@ -2109,8 +2100,6 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2109
2100
|
}): void;
|
|
2110
2101
|
close(): void;
|
|
2111
2102
|
disconnectAll(): void;
|
|
2112
|
-
sendAudioMutedStats(muted: boolean): void;
|
|
2113
|
-
sendVideoMutedStats(muted: boolean): void;
|
|
2114
2103
|
sendStatsCustomEvent(eventName: string, data?: any): void;
|
|
2115
2104
|
rtcStatsConnect(): void;
|
|
2116
2105
|
rtcStatsDisconnect(): void;
|
|
@@ -2158,5 +2147,5 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2158
2147
|
hasClient(clientId: string): boolean;
|
|
2159
2148
|
}
|
|
2160
2149
|
|
|
2161
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264,
|
|
2150
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
2162
2151
|
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdateRequest, BreakoutSessionUpdatedEvent, BuildDeviceListOptions, CannotJoinUnclaimedRoomError, ChatFileShare, ChatMessage, ChatMessageError, ChatMessageRemoved, ChatMessageRequest, ClearableTimeout, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, ConnectionStatus, Credentials, FileShareErrorCode, FileUploadUrl, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetInitialStreamOptions, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockOnHoldEvent, KnockRejectedEvent, KnockResponse, KnockResponseSender, KnockRoomRequest, KnockerLeftEvent, LiveCaptionEvent, LiveCaptionsStartedEvent, LiveCaptionsStoppedEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.mjs
CHANGED
|
@@ -44,8 +44,8 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
44
44
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
var _a$
|
|
48
|
-
(_a$
|
|
47
|
+
var _a$6;
|
|
48
|
+
(_a$6 = adapterRaw.default) !== null && _a$6 !== void 0 ? _a$6 : adapterRaw;
|
|
49
49
|
const RTCSTATS_PROTOCOL_VERSION = "1.0";
|
|
50
50
|
const GETSTATS_BUFFER_SIZE = 20;
|
|
51
51
|
const clientInfo = {
|
|
@@ -224,12 +224,6 @@ const rtcStats = {
|
|
|
224
224
|
value,
|
|
225
225
|
});
|
|
226
226
|
},
|
|
227
|
-
sendAudioMuted: (muted) => {
|
|
228
|
-
rtcStats.sendEvent("audio_muted", { muted });
|
|
229
|
-
},
|
|
230
|
-
sendVideoMuted: (muted) => {
|
|
231
|
-
rtcStats.sendEvent("video_muted", { muted });
|
|
232
|
-
},
|
|
233
227
|
server,
|
|
234
228
|
};
|
|
235
229
|
|
|
@@ -288,11 +282,11 @@ class Logger {
|
|
|
288
282
|
}
|
|
289
283
|
}
|
|
290
284
|
|
|
291
|
-
var _a$
|
|
292
|
-
const adapter$
|
|
285
|
+
var _a$5, _b$2;
|
|
286
|
+
const adapter$5 = (_a$5 = adapterRaw.default) !== null && _a$5 !== void 0 ? _a$5 : adapterRaw;
|
|
293
287
|
const logger$b = new Logger();
|
|
294
|
-
const browserName$2 = (_b$2 = adapter$
|
|
295
|
-
const browserVersion$1 = adapter$
|
|
288
|
+
const browserName$2 = (_b$2 = adapter$5.browserDetails) === null || _b$2 === void 0 ? void 0 : _b$2.browser;
|
|
289
|
+
const browserVersion$1 = adapter$5.browserDetails.version;
|
|
296
290
|
function setCodecPreferenceSDP({ sdp, redOn }) {
|
|
297
291
|
var _a, _b;
|
|
298
292
|
try {
|
|
@@ -480,8 +474,8 @@ function trackAnnotations(o) {
|
|
|
480
474
|
return props;
|
|
481
475
|
}
|
|
482
476
|
|
|
483
|
-
var _a$
|
|
484
|
-
const adapter$
|
|
477
|
+
var _a$4;
|
|
478
|
+
const adapter$4 = (_a$4 = adapterRaw.default) !== null && _a$4 !== void 0 ? _a$4 : adapterRaw;
|
|
485
479
|
const logger$a = new Logger();
|
|
486
480
|
class Session {
|
|
487
481
|
constructor({ clientId, bandwidth, peerConnectionConfig, deprioritizeH264Encoding, incrementAnalyticMetric, mediaPrefs, }) {
|
|
@@ -638,7 +632,7 @@ class Session {
|
|
|
638
632
|
if (this.pc.signalingState === "closed") {
|
|
639
633
|
return;
|
|
640
634
|
}
|
|
641
|
-
if (((_a = adapter$
|
|
635
|
+
if (((_a = adapter$4.browserDetails) === null || _a === void 0 ? void 0 : _a.browser) === "safari" && candidate && candidate.candidate === "") {
|
|
642
636
|
return;
|
|
643
637
|
}
|
|
644
638
|
this.pc.addIceCandidate(candidate).catch((e) => {
|
|
@@ -751,39 +745,6 @@ class Session {
|
|
|
751
745
|
|
|
752
746
|
const MEDIA_JITTER_BUFFER_TARGET = 400;
|
|
753
747
|
|
|
754
|
-
var _a$4;
|
|
755
|
-
const adapter$4 = (_a$4 = adapterRaw.default) !== null && _a$4 !== void 0 ? _a$4 : adapterRaw;
|
|
756
|
-
function detectMicrophoneNotWorking(pc) {
|
|
757
|
-
var _a, _b;
|
|
758
|
-
if (((_a = adapter$4.browserDetails) === null || _a === void 0 ? void 0 : _a.browser) !== "chrome" ||
|
|
759
|
-
((_b = adapter$4.browserDetails) === null || _b === void 0 ? void 0 : _b.browser) < 58 ||
|
|
760
|
-
pc.signalingState === "closed") {
|
|
761
|
-
return Promise.resolve("");
|
|
762
|
-
}
|
|
763
|
-
const sendingAudio = pc.getSenders().some((sender) => { var _a; return ((_a = sender.track) === null || _a === void 0 ? void 0 : _a.kind) === "audio"; });
|
|
764
|
-
const receivingAudio = pc.getReceivers().some((receiver) => { var _a; return ((_a = receiver.track) === null || _a === void 0 ? void 0 : _a.kind) === "audio"; });
|
|
765
|
-
return pc.getStats(null).then((result) => {
|
|
766
|
-
let microphoneFailed = "";
|
|
767
|
-
result.forEach((report) => {
|
|
768
|
-
if (report.type === "outbound-rtp" &&
|
|
769
|
-
(report.kind === "audio" || report.mediaType === "audio") &&
|
|
770
|
-
sendingAudio) {
|
|
771
|
-
if (report.bytesSent === 0) {
|
|
772
|
-
microphoneFailed = "outbound";
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
else if (report.type === "inbound-rtp" &&
|
|
776
|
-
(report.kind === "audio" || report.mediaType === "audio") &&
|
|
777
|
-
receivingAudio) {
|
|
778
|
-
if (report.bytesReceived === 0) {
|
|
779
|
-
microphoneFailed = "inbound";
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
});
|
|
783
|
-
return microphoneFailed;
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
|
|
787
748
|
const PROTOCOL_REQUESTS = {
|
|
788
749
|
BLOCK_CLIENT: "block_client",
|
|
789
750
|
CANCEL_ROOM_KNOCK: "cancel_room_knock",
|
|
@@ -972,9 +933,7 @@ ipRegex.v4 = (options) => options && options.exact ? v4exact : new RegExp(`${bou
|
|
|
972
933
|
ipRegex.v6 = (options) => options && options.exact ? v6exact : new RegExp(`${boundry(options)}${v6}${boundry(options)}`, "g");
|
|
973
934
|
|
|
974
935
|
var rtcManagerEvents = {
|
|
975
|
-
CAMERA_NOT_WORKING: "camera_not_working",
|
|
976
936
|
CONNECTION_BLOCKED_BY_NETWORK: "connection_blocked_by_network",
|
|
977
|
-
MICROPHONE_NOT_WORKING: "microphone_not_working",
|
|
978
937
|
MICROPHONE_STOPPED_WORKING: "microphone_stopped_working",
|
|
979
938
|
CAMERA_STOPPED_WORKING: "camera_stopped_working",
|
|
980
939
|
NEW_PC: "new_pc",
|
|
@@ -2499,7 +2458,6 @@ class P2pRtcManager {
|
|
|
2499
2458
|
P2PReplaceTrackNoStream: 0,
|
|
2500
2459
|
P2PReplaceTrackNewTrackNotInStream: 0,
|
|
2501
2460
|
P2POnTrackNoStream: 0,
|
|
2502
|
-
P2PMicNotWorking: 0,
|
|
2503
2461
|
P2PLocalNetworkFailed: 0,
|
|
2504
2462
|
P2PRelayedIceCandidate: 0,
|
|
2505
2463
|
P2PAddIceCandidateFailure: 0,
|
|
@@ -2692,12 +2650,6 @@ class P2pRtcManager {
|
|
|
2692
2650
|
}),
|
|
2693
2651
|
];
|
|
2694
2652
|
}
|
|
2695
|
-
sendAudioMutedStats(muted) {
|
|
2696
|
-
rtcStats.sendEvent("audio_muted", { muted });
|
|
2697
|
-
}
|
|
2698
|
-
sendVideoMutedStats(muted) {
|
|
2699
|
-
rtcStats.sendEvent("video_muted", { muted });
|
|
2700
|
-
}
|
|
2701
2653
|
sendStatsCustomEvent(eventName, data) {
|
|
2702
2654
|
rtcStats.sendEvent(eventName, data);
|
|
2703
2655
|
}
|
|
@@ -3006,14 +2958,6 @@ class P2pRtcManager {
|
|
|
3006
2958
|
logger$6.info(`connectionState changed to ${pc.connectionState} for session ${session.clientId}`);
|
|
3007
2959
|
switch (pc.connectionState) {
|
|
3008
2960
|
case "connected":
|
|
3009
|
-
setTimeout(() => {
|
|
3010
|
-
detectMicrophoneNotWorking(session.pc).then((failureDirection) => {
|
|
3011
|
-
if (failureDirection) {
|
|
3012
|
-
this.analytics.P2PMicNotWorking++;
|
|
3013
|
-
rtcStats.sendEvent("P2PMicNotWorking", { clientId, failureDirection });
|
|
3014
|
-
}
|
|
3015
|
-
});
|
|
3016
|
-
}, 3000);
|
|
3017
2961
|
(_a = session.registerConnected) === null || _a === void 0 ? void 0 : _a.call(session, {});
|
|
3018
2962
|
break;
|
|
3019
2963
|
case "failed":
|
|
@@ -5499,12 +5443,6 @@ class VegaRtcManager {
|
|
|
5499
5443
|
this._mediasoupDeviceInitializedAsync = Promise.resolve(null);
|
|
5500
5444
|
this._qualityMonitor.close();
|
|
5501
5445
|
}
|
|
5502
|
-
sendAudioMutedStats(muted) {
|
|
5503
|
-
rtcStats.sendEvent("audio_muted", { muted });
|
|
5504
|
-
}
|
|
5505
|
-
sendVideoMutedStats(muted) {
|
|
5506
|
-
rtcStats.sendEvent("video_muted", { muted });
|
|
5507
|
-
}
|
|
5508
5446
|
sendStatsCustomEvent(eventName, data) {
|
|
5509
5447
|
rtcStats.sendEvent(eventName, data);
|
|
5510
5448
|
}
|
|
@@ -7520,4 +7458,4 @@ var RtcEventNames;
|
|
|
7520
7458
|
RtcEventNames["stream_added"] = "stream_added";
|
|
7521
7459
|
})(RtcEventNames || (RtcEventNames = {}));
|
|
7522
7460
|
|
|
7523
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264,
|
|
7461
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
package/dist/legacy-esm.js
CHANGED
|
@@ -44,8 +44,8 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
44
44
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
var _a$
|
|
48
|
-
(_a$
|
|
47
|
+
var _a$6;
|
|
48
|
+
(_a$6 = adapterRaw.default) !== null && _a$6 !== void 0 ? _a$6 : adapterRaw;
|
|
49
49
|
const RTCSTATS_PROTOCOL_VERSION = "1.0";
|
|
50
50
|
const GETSTATS_BUFFER_SIZE = 20;
|
|
51
51
|
const clientInfo = {
|
|
@@ -224,12 +224,6 @@ const rtcStats = {
|
|
|
224
224
|
value,
|
|
225
225
|
});
|
|
226
226
|
},
|
|
227
|
-
sendAudioMuted: (muted) => {
|
|
228
|
-
rtcStats.sendEvent("audio_muted", { muted });
|
|
229
|
-
},
|
|
230
|
-
sendVideoMuted: (muted) => {
|
|
231
|
-
rtcStats.sendEvent("video_muted", { muted });
|
|
232
|
-
},
|
|
233
227
|
server,
|
|
234
228
|
};
|
|
235
229
|
|
|
@@ -288,11 +282,11 @@ class Logger {
|
|
|
288
282
|
}
|
|
289
283
|
}
|
|
290
284
|
|
|
291
|
-
var _a$
|
|
292
|
-
const adapter$
|
|
285
|
+
var _a$5, _b$2;
|
|
286
|
+
const adapter$5 = (_a$5 = adapterRaw.default) !== null && _a$5 !== void 0 ? _a$5 : adapterRaw;
|
|
293
287
|
const logger$b = new Logger();
|
|
294
|
-
const browserName$2 = (_b$2 = adapter$
|
|
295
|
-
const browserVersion$1 = adapter$
|
|
288
|
+
const browserName$2 = (_b$2 = adapter$5.browserDetails) === null || _b$2 === void 0 ? void 0 : _b$2.browser;
|
|
289
|
+
const browserVersion$1 = adapter$5.browserDetails.version;
|
|
296
290
|
function setCodecPreferenceSDP({ sdp, redOn }) {
|
|
297
291
|
var _a, _b;
|
|
298
292
|
try {
|
|
@@ -480,8 +474,8 @@ function trackAnnotations(o) {
|
|
|
480
474
|
return props;
|
|
481
475
|
}
|
|
482
476
|
|
|
483
|
-
var _a$
|
|
484
|
-
const adapter$
|
|
477
|
+
var _a$4;
|
|
478
|
+
const adapter$4 = (_a$4 = adapterRaw.default) !== null && _a$4 !== void 0 ? _a$4 : adapterRaw;
|
|
485
479
|
const logger$a = new Logger();
|
|
486
480
|
class Session {
|
|
487
481
|
constructor({ clientId, bandwidth, peerConnectionConfig, deprioritizeH264Encoding, incrementAnalyticMetric, mediaPrefs, }) {
|
|
@@ -638,7 +632,7 @@ class Session {
|
|
|
638
632
|
if (this.pc.signalingState === "closed") {
|
|
639
633
|
return;
|
|
640
634
|
}
|
|
641
|
-
if (((_a = adapter$
|
|
635
|
+
if (((_a = adapter$4.browserDetails) === null || _a === void 0 ? void 0 : _a.browser) === "safari" && candidate && candidate.candidate === "") {
|
|
642
636
|
return;
|
|
643
637
|
}
|
|
644
638
|
this.pc.addIceCandidate(candidate).catch((e) => {
|
|
@@ -751,39 +745,6 @@ class Session {
|
|
|
751
745
|
|
|
752
746
|
const MEDIA_JITTER_BUFFER_TARGET = 400;
|
|
753
747
|
|
|
754
|
-
var _a$4;
|
|
755
|
-
const adapter$4 = (_a$4 = adapterRaw.default) !== null && _a$4 !== void 0 ? _a$4 : adapterRaw;
|
|
756
|
-
function detectMicrophoneNotWorking(pc) {
|
|
757
|
-
var _a, _b;
|
|
758
|
-
if (((_a = adapter$4.browserDetails) === null || _a === void 0 ? void 0 : _a.browser) !== "chrome" ||
|
|
759
|
-
((_b = adapter$4.browserDetails) === null || _b === void 0 ? void 0 : _b.browser) < 58 ||
|
|
760
|
-
pc.signalingState === "closed") {
|
|
761
|
-
return Promise.resolve("");
|
|
762
|
-
}
|
|
763
|
-
const sendingAudio = pc.getSenders().some((sender) => { var _a; return ((_a = sender.track) === null || _a === void 0 ? void 0 : _a.kind) === "audio"; });
|
|
764
|
-
const receivingAudio = pc.getReceivers().some((receiver) => { var _a; return ((_a = receiver.track) === null || _a === void 0 ? void 0 : _a.kind) === "audio"; });
|
|
765
|
-
return pc.getStats(null).then((result) => {
|
|
766
|
-
let microphoneFailed = "";
|
|
767
|
-
result.forEach((report) => {
|
|
768
|
-
if (report.type === "outbound-rtp" &&
|
|
769
|
-
(report.kind === "audio" || report.mediaType === "audio") &&
|
|
770
|
-
sendingAudio) {
|
|
771
|
-
if (report.bytesSent === 0) {
|
|
772
|
-
microphoneFailed = "outbound";
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
else if (report.type === "inbound-rtp" &&
|
|
776
|
-
(report.kind === "audio" || report.mediaType === "audio") &&
|
|
777
|
-
receivingAudio) {
|
|
778
|
-
if (report.bytesReceived === 0) {
|
|
779
|
-
microphoneFailed = "inbound";
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
});
|
|
783
|
-
return microphoneFailed;
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
|
|
787
748
|
const PROTOCOL_REQUESTS = {
|
|
788
749
|
BLOCK_CLIENT: "block_client",
|
|
789
750
|
CANCEL_ROOM_KNOCK: "cancel_room_knock",
|
|
@@ -972,9 +933,7 @@ ipRegex.v4 = (options) => options && options.exact ? v4exact : new RegExp(`${bou
|
|
|
972
933
|
ipRegex.v6 = (options) => options && options.exact ? v6exact : new RegExp(`${boundry(options)}${v6}${boundry(options)}`, "g");
|
|
973
934
|
|
|
974
935
|
var rtcManagerEvents = {
|
|
975
|
-
CAMERA_NOT_WORKING: "camera_not_working",
|
|
976
936
|
CONNECTION_BLOCKED_BY_NETWORK: "connection_blocked_by_network",
|
|
977
|
-
MICROPHONE_NOT_WORKING: "microphone_not_working",
|
|
978
937
|
MICROPHONE_STOPPED_WORKING: "microphone_stopped_working",
|
|
979
938
|
CAMERA_STOPPED_WORKING: "camera_stopped_working",
|
|
980
939
|
NEW_PC: "new_pc",
|
|
@@ -2499,7 +2458,6 @@ class P2pRtcManager {
|
|
|
2499
2458
|
P2PReplaceTrackNoStream: 0,
|
|
2500
2459
|
P2PReplaceTrackNewTrackNotInStream: 0,
|
|
2501
2460
|
P2POnTrackNoStream: 0,
|
|
2502
|
-
P2PMicNotWorking: 0,
|
|
2503
2461
|
P2PLocalNetworkFailed: 0,
|
|
2504
2462
|
P2PRelayedIceCandidate: 0,
|
|
2505
2463
|
P2PAddIceCandidateFailure: 0,
|
|
@@ -2692,12 +2650,6 @@ class P2pRtcManager {
|
|
|
2692
2650
|
}),
|
|
2693
2651
|
];
|
|
2694
2652
|
}
|
|
2695
|
-
sendAudioMutedStats(muted) {
|
|
2696
|
-
rtcStats.sendEvent("audio_muted", { muted });
|
|
2697
|
-
}
|
|
2698
|
-
sendVideoMutedStats(muted) {
|
|
2699
|
-
rtcStats.sendEvent("video_muted", { muted });
|
|
2700
|
-
}
|
|
2701
2653
|
sendStatsCustomEvent(eventName, data) {
|
|
2702
2654
|
rtcStats.sendEvent(eventName, data);
|
|
2703
2655
|
}
|
|
@@ -3006,14 +2958,6 @@ class P2pRtcManager {
|
|
|
3006
2958
|
logger$6.info(`connectionState changed to ${pc.connectionState} for session ${session.clientId}`);
|
|
3007
2959
|
switch (pc.connectionState) {
|
|
3008
2960
|
case "connected":
|
|
3009
|
-
setTimeout(() => {
|
|
3010
|
-
detectMicrophoneNotWorking(session.pc).then((failureDirection) => {
|
|
3011
|
-
if (failureDirection) {
|
|
3012
|
-
this.analytics.P2PMicNotWorking++;
|
|
3013
|
-
rtcStats.sendEvent("P2PMicNotWorking", { clientId, failureDirection });
|
|
3014
|
-
}
|
|
3015
|
-
});
|
|
3016
|
-
}, 3000);
|
|
3017
2961
|
(_a = session.registerConnected) === null || _a === void 0 ? void 0 : _a.call(session, {});
|
|
3018
2962
|
break;
|
|
3019
2963
|
case "failed":
|
|
@@ -5499,12 +5443,6 @@ class VegaRtcManager {
|
|
|
5499
5443
|
this._mediasoupDeviceInitializedAsync = Promise.resolve(null);
|
|
5500
5444
|
this._qualityMonitor.close();
|
|
5501
5445
|
}
|
|
5502
|
-
sendAudioMutedStats(muted) {
|
|
5503
|
-
rtcStats.sendEvent("audio_muted", { muted });
|
|
5504
|
-
}
|
|
5505
|
-
sendVideoMutedStats(muted) {
|
|
5506
|
-
rtcStats.sendEvent("video_muted", { muted });
|
|
5507
|
-
}
|
|
5508
5446
|
sendStatsCustomEvent(eventName, data) {
|
|
5509
5447
|
rtcStats.sendEvent(eventName, data);
|
|
5510
5448
|
}
|
|
@@ -7520,5 +7458,5 @@ var RtcEventNames;
|
|
|
7520
7458
|
RtcEventNames["stream_added"] = "stream_added";
|
|
7521
7459
|
})(RtcEventNames || (RtcEventNames = {}));
|
|
7522
7460
|
|
|
7523
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264,
|
|
7461
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, 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, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
7524
7462
|
//# sourceMappingURL=legacy-esm.js.map
|