@whereby.com/media 11.3.0 → 11.3.2
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 +8 -2
- package/dist/index.d.cts +8 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +8 -2
- package/dist/legacy-esm.js +8 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -929,6 +929,7 @@ const EVENTS = {
|
|
|
929
929
|
LOCAL_STREAM_TRACK_REMOVED: "local_stream_track_removed",
|
|
930
930
|
REMOTE_STREAM_TRACK_ADDED: "remote_stream_track_added",
|
|
931
931
|
REMOTE_STREAM_TRACK_REMOVED: "remote_stream_track_removed",
|
|
932
|
+
MEDIA_QUALITY_CHANGED: "media_quality_changed",
|
|
932
933
|
};
|
|
933
934
|
const TYPES = {
|
|
934
935
|
CONNECTING: "connecting",
|
|
@@ -975,6 +976,7 @@ var rtcManagerEvents = {
|
|
|
975
976
|
SFU_CONNECTION_INFO: "sfu_connection_info",
|
|
976
977
|
COLOCATION_SPEAKER: "colocation_speaker",
|
|
977
978
|
DOMINANT_SPEAKER: "dominant_speaker",
|
|
979
|
+
MEDIA_QUALITY_CHANGED: "media_quality_changed",
|
|
978
980
|
};
|
|
979
981
|
|
|
980
982
|
class AssertionError extends Error {
|
|
@@ -7874,10 +7876,14 @@ function getStream(constraintOpt_1) {
|
|
|
7874
7876
|
});
|
|
7875
7877
|
}
|
|
7876
7878
|
function hasGetDisplayMedia() {
|
|
7877
|
-
|
|
7879
|
+
var _a, _b;
|
|
7880
|
+
if (typeof navigator === "undefined") {
|
|
7881
|
+
return false;
|
|
7882
|
+
}
|
|
7883
|
+
if ((_a = navigator.userAgent) === null || _a === void 0 ? void 0 : _a.includes("Android")) {
|
|
7878
7884
|
return false;
|
|
7879
7885
|
}
|
|
7880
|
-
return
|
|
7886
|
+
return typeof ((_b = navigator.mediaDevices) === null || _b === void 0 ? void 0 : _b.getDisplayMedia) === "function";
|
|
7881
7887
|
}
|
|
7882
7888
|
const defaultDisplayMediaConstraints = {
|
|
7883
7889
|
video: {
|
package/dist/index.d.cts
CHANGED
|
@@ -566,6 +566,11 @@ interface RtcLocalStreamTrackRemovedPayload {
|
|
|
566
566
|
stream: MediaStream;
|
|
567
567
|
track: MediaStreamTrack;
|
|
568
568
|
}
|
|
569
|
+
interface RtcMediaQualityChangedPayload {
|
|
570
|
+
clientId: string;
|
|
571
|
+
kind: string;
|
|
572
|
+
quality: "critical" | "warning" | "ok";
|
|
573
|
+
}
|
|
569
574
|
type RtcEvents = {
|
|
570
575
|
client_connection_status_changed: RtcClientConnectionStatusChangedPayload;
|
|
571
576
|
stream_added: RtcStreamAddedPayload;
|
|
@@ -575,6 +580,7 @@ type RtcEvents = {
|
|
|
575
580
|
local_stream_track_removed: RtcLocalStreamTrackRemovedPayload;
|
|
576
581
|
remote_stream_track_added: void;
|
|
577
582
|
remote_stream_track_removed: void;
|
|
583
|
+
media_quality_changed: RtcMediaQualityChangedPayload;
|
|
578
584
|
};
|
|
579
585
|
type SignalRTCSessionDescription = {
|
|
580
586
|
sdp?: string;
|
|
@@ -1889,6 +1895,7 @@ declare const _default: {
|
|
|
1889
1895
|
SFU_CONNECTION_INFO: string;
|
|
1890
1896
|
COLOCATION_SPEAKER: string;
|
|
1891
1897
|
DOMINANT_SPEAKER: string;
|
|
1898
|
+
MEDIA_QUALITY_CHANGED: string;
|
|
1892
1899
|
};
|
|
1893
1900
|
|
|
1894
1901
|
declare function setVideoBandwidthUsingSetParameters(pc: RTCPeerConnection, bandwidth: number, logger?: any): Promise<void>;
|
|
@@ -2328,4 +2335,4 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2328
2335
|
}
|
|
2329
2336
|
|
|
2330
2337
|
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ROOM_INTEGRATION_ERROR_CODES, 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, getSelectedCandidatePairId, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, isRoomIntegrationErrorCode, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
2331
|
-
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, RoomIntegrationDisabledEvent, RoomIntegrationEnabledEvent, RoomIntegrationError, RoomIntegrationErrorCode, RoomIntegrationProps, RoomIntegrationPropsUpdatedEvent, RoomIntegrationPropsUpdatedSuccess, RoomIntegrationSessionEvent, RoomIntegrationSessionState, RoomIntegrationStartedEvent, RoomIntegrationStartedSuccess, RoomIntegrationStoppedEvent, RoomIntegrationStoppedSuccess, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StartRoomIntegrationRequest, StatsMonitorOptions, StatsMonitorState, StatsSubscription, StopRoomIntegrationRequest, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdateRoomIntegrationPropsRequest, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
|
2338
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AggregatedIssues, 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, IssueData, 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, RoomIntegrationDisabledEvent, RoomIntegrationEnabledEvent, RoomIntegrationError, RoomIntegrationErrorCode, RoomIntegrationProps, RoomIntegrationPropsUpdatedEvent, RoomIntegrationPropsUpdatedSuccess, RoomIntegrationSessionEvent, RoomIntegrationSessionState, RoomIntegrationStartedEvent, RoomIntegrationStartedSuccess, RoomIntegrationStoppedEvent, RoomIntegrationStoppedSuccess, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcMediaQualityChangedPayload, RtcStreamAddedPayload, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StartRoomIntegrationRequest, StatsMonitorOptions, StatsMonitorState, StatsSubscription, StopRoomIntegrationRequest, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdateRoomIntegrationPropsRequest, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.d.mts
CHANGED
|
@@ -566,6 +566,11 @@ interface RtcLocalStreamTrackRemovedPayload {
|
|
|
566
566
|
stream: MediaStream;
|
|
567
567
|
track: MediaStreamTrack;
|
|
568
568
|
}
|
|
569
|
+
interface RtcMediaQualityChangedPayload {
|
|
570
|
+
clientId: string;
|
|
571
|
+
kind: string;
|
|
572
|
+
quality: "critical" | "warning" | "ok";
|
|
573
|
+
}
|
|
569
574
|
type RtcEvents = {
|
|
570
575
|
client_connection_status_changed: RtcClientConnectionStatusChangedPayload;
|
|
571
576
|
stream_added: RtcStreamAddedPayload;
|
|
@@ -575,6 +580,7 @@ type RtcEvents = {
|
|
|
575
580
|
local_stream_track_removed: RtcLocalStreamTrackRemovedPayload;
|
|
576
581
|
remote_stream_track_added: void;
|
|
577
582
|
remote_stream_track_removed: void;
|
|
583
|
+
media_quality_changed: RtcMediaQualityChangedPayload;
|
|
578
584
|
};
|
|
579
585
|
type SignalRTCSessionDescription = {
|
|
580
586
|
sdp?: string;
|
|
@@ -1889,6 +1895,7 @@ declare const _default: {
|
|
|
1889
1895
|
SFU_CONNECTION_INFO: string;
|
|
1890
1896
|
COLOCATION_SPEAKER: string;
|
|
1891
1897
|
DOMINANT_SPEAKER: string;
|
|
1898
|
+
MEDIA_QUALITY_CHANGED: string;
|
|
1892
1899
|
};
|
|
1893
1900
|
|
|
1894
1901
|
declare function setVideoBandwidthUsingSetParameters(pc: RTCPeerConnection, bandwidth: number, logger?: any): Promise<void>;
|
|
@@ -2328,4 +2335,4 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2328
2335
|
}
|
|
2329
2336
|
|
|
2330
2337
|
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ROOM_INTEGRATION_ERROR_CODES, 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, getSelectedCandidatePairId, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, isRoomIntegrationErrorCode, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
2331
|
-
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, RoomIntegrationDisabledEvent, RoomIntegrationEnabledEvent, RoomIntegrationError, RoomIntegrationErrorCode, RoomIntegrationProps, RoomIntegrationPropsUpdatedEvent, RoomIntegrationPropsUpdatedSuccess, RoomIntegrationSessionEvent, RoomIntegrationSessionState, RoomIntegrationStartedEvent, RoomIntegrationStartedSuccess, RoomIntegrationStoppedEvent, RoomIntegrationStoppedSuccess, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StartRoomIntegrationRequest, StatsMonitorOptions, StatsMonitorState, StatsSubscription, StopRoomIntegrationRequest, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdateRoomIntegrationPropsRequest, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
|
2338
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AggregatedIssues, 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, IssueData, 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, RoomIntegrationDisabledEvent, RoomIntegrationEnabledEvent, RoomIntegrationError, RoomIntegrationErrorCode, RoomIntegrationProps, RoomIntegrationPropsUpdatedEvent, RoomIntegrationPropsUpdatedSuccess, RoomIntegrationSessionEvent, RoomIntegrationSessionState, RoomIntegrationStartedEvent, RoomIntegrationStartedSuccess, RoomIntegrationStoppedEvent, RoomIntegrationStoppedSuccess, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcMediaQualityChangedPayload, RtcStreamAddedPayload, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StartRoomIntegrationRequest, StatsMonitorOptions, StatsMonitorState, StatsSubscription, StopRoomIntegrationRequest, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdateRoomIntegrationPropsRequest, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.d.ts
CHANGED
|
@@ -566,6 +566,11 @@ interface RtcLocalStreamTrackRemovedPayload {
|
|
|
566
566
|
stream: MediaStream;
|
|
567
567
|
track: MediaStreamTrack;
|
|
568
568
|
}
|
|
569
|
+
interface RtcMediaQualityChangedPayload {
|
|
570
|
+
clientId: string;
|
|
571
|
+
kind: string;
|
|
572
|
+
quality: "critical" | "warning" | "ok";
|
|
573
|
+
}
|
|
569
574
|
type RtcEvents = {
|
|
570
575
|
client_connection_status_changed: RtcClientConnectionStatusChangedPayload;
|
|
571
576
|
stream_added: RtcStreamAddedPayload;
|
|
@@ -575,6 +580,7 @@ type RtcEvents = {
|
|
|
575
580
|
local_stream_track_removed: RtcLocalStreamTrackRemovedPayload;
|
|
576
581
|
remote_stream_track_added: void;
|
|
577
582
|
remote_stream_track_removed: void;
|
|
583
|
+
media_quality_changed: RtcMediaQualityChangedPayload;
|
|
578
584
|
};
|
|
579
585
|
type SignalRTCSessionDescription = {
|
|
580
586
|
sdp?: string;
|
|
@@ -1889,6 +1895,7 @@ declare const _default: {
|
|
|
1889
1895
|
SFU_CONNECTION_INFO: string;
|
|
1890
1896
|
COLOCATION_SPEAKER: string;
|
|
1891
1897
|
DOMINANT_SPEAKER: string;
|
|
1898
|
+
MEDIA_QUALITY_CHANGED: string;
|
|
1892
1899
|
};
|
|
1893
1900
|
|
|
1894
1901
|
declare function setVideoBandwidthUsingSetParameters(pc: RTCPeerConnection, bandwidth: number, logger?: any): Promise<void>;
|
|
@@ -2328,4 +2335,4 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2328
2335
|
}
|
|
2329
2336
|
|
|
2330
2337
|
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ROOM_INTEGRATION_ERROR_CODES, 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, getSelectedCandidatePairId, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, isRoomIntegrationErrorCode, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
2331
|
-
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, RoomIntegrationDisabledEvent, RoomIntegrationEnabledEvent, RoomIntegrationError, RoomIntegrationErrorCode, RoomIntegrationProps, RoomIntegrationPropsUpdatedEvent, RoomIntegrationPropsUpdatedSuccess, RoomIntegrationSessionEvent, RoomIntegrationSessionState, RoomIntegrationStartedEvent, RoomIntegrationStartedSuccess, RoomIntegrationStoppedEvent, RoomIntegrationStoppedSuccess, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StartRoomIntegrationRequest, StatsMonitorOptions, StatsMonitorState, StatsSubscription, StopRoomIntegrationRequest, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdateRoomIntegrationPropsRequest, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
|
2338
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AggregatedIssues, 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, IssueData, 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, RoomIntegrationDisabledEvent, RoomIntegrationEnabledEvent, RoomIntegrationError, RoomIntegrationErrorCode, RoomIntegrationProps, RoomIntegrationPropsUpdatedEvent, RoomIntegrationPropsUpdatedSuccess, RoomIntegrationSessionEvent, RoomIntegrationSessionState, RoomIntegrationStartedEvent, RoomIntegrationStartedSuccess, RoomIntegrationStoppedEvent, RoomIntegrationStoppedSuccess, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcMediaQualityChangedPayload, RtcStreamAddedPayload, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StartRoomIntegrationRequest, StatsMonitorOptions, StatsMonitorState, StatsSubscription, StopRoomIntegrationRequest, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdateRoomIntegrationPropsRequest, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.mjs
CHANGED
|
@@ -909,6 +909,7 @@ const EVENTS = {
|
|
|
909
909
|
LOCAL_STREAM_TRACK_REMOVED: "local_stream_track_removed",
|
|
910
910
|
REMOTE_STREAM_TRACK_ADDED: "remote_stream_track_added",
|
|
911
911
|
REMOTE_STREAM_TRACK_REMOVED: "remote_stream_track_removed",
|
|
912
|
+
MEDIA_QUALITY_CHANGED: "media_quality_changed",
|
|
912
913
|
};
|
|
913
914
|
const TYPES = {
|
|
914
915
|
CONNECTING: "connecting",
|
|
@@ -955,6 +956,7 @@ var rtcManagerEvents = {
|
|
|
955
956
|
SFU_CONNECTION_INFO: "sfu_connection_info",
|
|
956
957
|
COLOCATION_SPEAKER: "colocation_speaker",
|
|
957
958
|
DOMINANT_SPEAKER: "dominant_speaker",
|
|
959
|
+
MEDIA_QUALITY_CHANGED: "media_quality_changed",
|
|
958
960
|
};
|
|
959
961
|
|
|
960
962
|
class AssertionError extends Error {
|
|
@@ -7854,10 +7856,14 @@ function getStream(constraintOpt_1) {
|
|
|
7854
7856
|
});
|
|
7855
7857
|
}
|
|
7856
7858
|
function hasGetDisplayMedia() {
|
|
7857
|
-
|
|
7859
|
+
var _a, _b;
|
|
7860
|
+
if (typeof navigator === "undefined") {
|
|
7861
|
+
return false;
|
|
7862
|
+
}
|
|
7863
|
+
if ((_a = navigator.userAgent) === null || _a === void 0 ? void 0 : _a.includes("Android")) {
|
|
7858
7864
|
return false;
|
|
7859
7865
|
}
|
|
7860
|
-
return
|
|
7866
|
+
return typeof ((_b = navigator.mediaDevices) === null || _b === void 0 ? void 0 : _b.getDisplayMedia) === "function";
|
|
7861
7867
|
}
|
|
7862
7868
|
const defaultDisplayMediaConstraints = {
|
|
7863
7869
|
video: {
|
package/dist/legacy-esm.js
CHANGED
|
@@ -909,6 +909,7 @@ const EVENTS = {
|
|
|
909
909
|
LOCAL_STREAM_TRACK_REMOVED: "local_stream_track_removed",
|
|
910
910
|
REMOTE_STREAM_TRACK_ADDED: "remote_stream_track_added",
|
|
911
911
|
REMOTE_STREAM_TRACK_REMOVED: "remote_stream_track_removed",
|
|
912
|
+
MEDIA_QUALITY_CHANGED: "media_quality_changed",
|
|
912
913
|
};
|
|
913
914
|
const TYPES = {
|
|
914
915
|
CONNECTING: "connecting",
|
|
@@ -955,6 +956,7 @@ var rtcManagerEvents = {
|
|
|
955
956
|
SFU_CONNECTION_INFO: "sfu_connection_info",
|
|
956
957
|
COLOCATION_SPEAKER: "colocation_speaker",
|
|
957
958
|
DOMINANT_SPEAKER: "dominant_speaker",
|
|
959
|
+
MEDIA_QUALITY_CHANGED: "media_quality_changed",
|
|
958
960
|
};
|
|
959
961
|
|
|
960
962
|
class AssertionError extends Error {
|
|
@@ -7854,10 +7856,14 @@ function getStream(constraintOpt_1) {
|
|
|
7854
7856
|
});
|
|
7855
7857
|
}
|
|
7856
7858
|
function hasGetDisplayMedia() {
|
|
7857
|
-
|
|
7859
|
+
var _a, _b;
|
|
7860
|
+
if (typeof navigator === "undefined") {
|
|
7861
|
+
return false;
|
|
7862
|
+
}
|
|
7863
|
+
if ((_a = navigator.userAgent) === null || _a === void 0 ? void 0 : _a.includes("Android")) {
|
|
7858
7864
|
return false;
|
|
7859
7865
|
}
|
|
7860
|
-
return
|
|
7866
|
+
return typeof ((_b = navigator.mediaDevices) === null || _b === void 0 ? void 0 : _b.getDisplayMedia) === "function";
|
|
7861
7867
|
}
|
|
7862
7868
|
const defaultDisplayMediaConstraints = {
|
|
7863
7869
|
video: {
|