@whereby.com/media 9.2.5 → 9.2.7
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 +0 -15
- package/dist/index.d.cts +18 -5
- package/dist/index.d.mts +18 -5
- package/dist/index.d.ts +18 -5
- package/dist/index.mjs +0 -15
- package/dist/legacy-esm.js +0 -15
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -552,13 +552,6 @@ class Session {
|
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
554
|
const stream = this.streams[0];
|
|
555
|
-
this._incrementAnalyticMetric("P2PSessionAddTrack");
|
|
556
|
-
rtcStats.sendEvent("P2PSessionAddTrack", {
|
|
557
|
-
trackId: track.id,
|
|
558
|
-
kind: track.kind,
|
|
559
|
-
hasSessionStream: !!stream,
|
|
560
|
-
trackOfSameKindInStream: !!(stream === null || stream === void 0 ? void 0 : stream.getTracks().filter((t) => t.kind === track.kind && t.id !== track.id).length),
|
|
561
|
-
});
|
|
562
555
|
stream === null || stream === void 0 ? void 0 : stream.addTrack(track);
|
|
563
556
|
this.pc.addTrack(track, stream);
|
|
564
557
|
}
|
|
@@ -2574,8 +2567,6 @@ class P2pRtcManager {
|
|
|
2574
2567
|
P2PMicNotWorking: 0,
|
|
2575
2568
|
P2PLocalNetworkFailed: 0,
|
|
2576
2569
|
P2PRelayedIceCandidate: 0,
|
|
2577
|
-
P2PSessionAddTrack: 0,
|
|
2578
|
-
P2PAddTrackToPeerConnections: 0,
|
|
2579
2570
|
P2PAddIceCandidateFailure: 0,
|
|
2580
2571
|
};
|
|
2581
2572
|
}
|
|
@@ -3159,12 +3150,6 @@ class P2pRtcManager {
|
|
|
3159
3150
|
});
|
|
3160
3151
|
}
|
|
3161
3152
|
_addTrackToPeerConnections(track) {
|
|
3162
|
-
this.analytics.P2PAddTrackToPeerConnections++;
|
|
3163
|
-
rtcStats.sendEvent("P2PAddTrackToPeerConnections", {
|
|
3164
|
-
trackId: track.id,
|
|
3165
|
-
kind: track.kind,
|
|
3166
|
-
readyState: track.readyState,
|
|
3167
|
-
});
|
|
3168
3153
|
this._forEachPeerConnection((session) => {
|
|
3169
3154
|
this._withForcedRenegotiation(session, () => session.addTrack(track));
|
|
3170
3155
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1011,6 +1011,7 @@ type SignalRoom = {
|
|
|
1011
1011
|
mode: RoomMode;
|
|
1012
1012
|
name: string;
|
|
1013
1013
|
organizationId: string;
|
|
1014
|
+
liveTranscriptionId?: string;
|
|
1014
1015
|
spotlights: Spotlight[];
|
|
1015
1016
|
session: {
|
|
1016
1017
|
createdAt: string;
|
|
@@ -1093,6 +1094,17 @@ interface SpotlightRemovedEvent {
|
|
|
1093
1094
|
streamId: string;
|
|
1094
1095
|
requestedByClientId: string;
|
|
1095
1096
|
}
|
|
1097
|
+
interface LiveCaptionsStartedEvent {
|
|
1098
|
+
error?: string;
|
|
1099
|
+
}
|
|
1100
|
+
interface LiveCaptionsStoppedEvent {
|
|
1101
|
+
error?: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface LiveCaptionEvent {
|
|
1104
|
+
senderId: string;
|
|
1105
|
+
resultId: string;
|
|
1106
|
+
text: string;
|
|
1107
|
+
}
|
|
1096
1108
|
interface LiveTranscriptionStartedEvent {
|
|
1097
1109
|
transcriptionId?: string;
|
|
1098
1110
|
error?: string;
|
|
@@ -1136,8 +1148,9 @@ interface SignalEvents {
|
|
|
1136
1148
|
video_enable_requested: VideoEnableRequestedEvent;
|
|
1137
1149
|
live_transcription_started: LiveTranscriptionStartedEvent;
|
|
1138
1150
|
live_transcription_stopped: LiveTranscriptionStoppedEvent;
|
|
1139
|
-
live_captions_started:
|
|
1140
|
-
live_captions_stopped:
|
|
1151
|
+
live_captions_started: LiveCaptionsStartedEvent;
|
|
1152
|
+
live_captions_stopped: LiveCaptionsStoppedEvent;
|
|
1153
|
+
live_caption: LiveCaptionEvent;
|
|
1141
1154
|
}
|
|
1142
1155
|
interface ChatMessageRequest {
|
|
1143
1156
|
text: string;
|
|
@@ -1209,6 +1222,8 @@ interface SignalRequests {
|
|
|
1209
1222
|
join_room: JoinRoomRequest;
|
|
1210
1223
|
knock_room: KnockRoomRequest;
|
|
1211
1224
|
leave_room: void;
|
|
1225
|
+
live_captions_enabled: void;
|
|
1226
|
+
live_captions_disabled: void;
|
|
1212
1227
|
remove_spotlight: RemoveSpotlightRequest;
|
|
1213
1228
|
request_file_upload_url: {
|
|
1214
1229
|
files: {
|
|
@@ -1587,8 +1602,6 @@ type P2PAnalytics = {
|
|
|
1587
1602
|
P2PMicNotWorking: number;
|
|
1588
1603
|
P2PLocalNetworkFailed: number;
|
|
1589
1604
|
P2PRelayedIceCandidate: number;
|
|
1590
|
-
P2PSessionAddTrack: number;
|
|
1591
|
-
P2PAddTrackToPeerConnections: number;
|
|
1592
1605
|
P2PAddIceCandidateFailure: number;
|
|
1593
1606
|
};
|
|
1594
1607
|
type P2PAnalyticMetric = keyof P2PAnalytics;
|
|
@@ -2077,4 +2090,4 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2077
2090
|
}
|
|
2078
2091
|
|
|
2079
2092
|
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, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
2080
|
-
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, 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, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, 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 };
|
|
2093
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, 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, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, 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
|
@@ -1011,6 +1011,7 @@ type SignalRoom = {
|
|
|
1011
1011
|
mode: RoomMode;
|
|
1012
1012
|
name: string;
|
|
1013
1013
|
organizationId: string;
|
|
1014
|
+
liveTranscriptionId?: string;
|
|
1014
1015
|
spotlights: Spotlight[];
|
|
1015
1016
|
session: {
|
|
1016
1017
|
createdAt: string;
|
|
@@ -1093,6 +1094,17 @@ interface SpotlightRemovedEvent {
|
|
|
1093
1094
|
streamId: string;
|
|
1094
1095
|
requestedByClientId: string;
|
|
1095
1096
|
}
|
|
1097
|
+
interface LiveCaptionsStartedEvent {
|
|
1098
|
+
error?: string;
|
|
1099
|
+
}
|
|
1100
|
+
interface LiveCaptionsStoppedEvent {
|
|
1101
|
+
error?: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface LiveCaptionEvent {
|
|
1104
|
+
senderId: string;
|
|
1105
|
+
resultId: string;
|
|
1106
|
+
text: string;
|
|
1107
|
+
}
|
|
1096
1108
|
interface LiveTranscriptionStartedEvent {
|
|
1097
1109
|
transcriptionId?: string;
|
|
1098
1110
|
error?: string;
|
|
@@ -1136,8 +1148,9 @@ interface SignalEvents {
|
|
|
1136
1148
|
video_enable_requested: VideoEnableRequestedEvent;
|
|
1137
1149
|
live_transcription_started: LiveTranscriptionStartedEvent;
|
|
1138
1150
|
live_transcription_stopped: LiveTranscriptionStoppedEvent;
|
|
1139
|
-
live_captions_started:
|
|
1140
|
-
live_captions_stopped:
|
|
1151
|
+
live_captions_started: LiveCaptionsStartedEvent;
|
|
1152
|
+
live_captions_stopped: LiveCaptionsStoppedEvent;
|
|
1153
|
+
live_caption: LiveCaptionEvent;
|
|
1141
1154
|
}
|
|
1142
1155
|
interface ChatMessageRequest {
|
|
1143
1156
|
text: string;
|
|
@@ -1209,6 +1222,8 @@ interface SignalRequests {
|
|
|
1209
1222
|
join_room: JoinRoomRequest;
|
|
1210
1223
|
knock_room: KnockRoomRequest;
|
|
1211
1224
|
leave_room: void;
|
|
1225
|
+
live_captions_enabled: void;
|
|
1226
|
+
live_captions_disabled: void;
|
|
1212
1227
|
remove_spotlight: RemoveSpotlightRequest;
|
|
1213
1228
|
request_file_upload_url: {
|
|
1214
1229
|
files: {
|
|
@@ -1587,8 +1602,6 @@ type P2PAnalytics = {
|
|
|
1587
1602
|
P2PMicNotWorking: number;
|
|
1588
1603
|
P2PLocalNetworkFailed: number;
|
|
1589
1604
|
P2PRelayedIceCandidate: number;
|
|
1590
|
-
P2PSessionAddTrack: number;
|
|
1591
|
-
P2PAddTrackToPeerConnections: number;
|
|
1592
1605
|
P2PAddIceCandidateFailure: number;
|
|
1593
1606
|
};
|
|
1594
1607
|
type P2PAnalyticMetric = keyof P2PAnalytics;
|
|
@@ -2077,4 +2090,4 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2077
2090
|
}
|
|
2078
2091
|
|
|
2079
2092
|
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, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
2080
|
-
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, 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, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, 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 };
|
|
2093
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, 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, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, 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
|
@@ -1011,6 +1011,7 @@ type SignalRoom = {
|
|
|
1011
1011
|
mode: RoomMode;
|
|
1012
1012
|
name: string;
|
|
1013
1013
|
organizationId: string;
|
|
1014
|
+
liveTranscriptionId?: string;
|
|
1014
1015
|
spotlights: Spotlight[];
|
|
1015
1016
|
session: {
|
|
1016
1017
|
createdAt: string;
|
|
@@ -1093,6 +1094,17 @@ interface SpotlightRemovedEvent {
|
|
|
1093
1094
|
streamId: string;
|
|
1094
1095
|
requestedByClientId: string;
|
|
1095
1096
|
}
|
|
1097
|
+
interface LiveCaptionsStartedEvent {
|
|
1098
|
+
error?: string;
|
|
1099
|
+
}
|
|
1100
|
+
interface LiveCaptionsStoppedEvent {
|
|
1101
|
+
error?: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface LiveCaptionEvent {
|
|
1104
|
+
senderId: string;
|
|
1105
|
+
resultId: string;
|
|
1106
|
+
text: string;
|
|
1107
|
+
}
|
|
1096
1108
|
interface LiveTranscriptionStartedEvent {
|
|
1097
1109
|
transcriptionId?: string;
|
|
1098
1110
|
error?: string;
|
|
@@ -1136,8 +1148,9 @@ interface SignalEvents {
|
|
|
1136
1148
|
video_enable_requested: VideoEnableRequestedEvent;
|
|
1137
1149
|
live_transcription_started: LiveTranscriptionStartedEvent;
|
|
1138
1150
|
live_transcription_stopped: LiveTranscriptionStoppedEvent;
|
|
1139
|
-
live_captions_started:
|
|
1140
|
-
live_captions_stopped:
|
|
1151
|
+
live_captions_started: LiveCaptionsStartedEvent;
|
|
1152
|
+
live_captions_stopped: LiveCaptionsStoppedEvent;
|
|
1153
|
+
live_caption: LiveCaptionEvent;
|
|
1141
1154
|
}
|
|
1142
1155
|
interface ChatMessageRequest {
|
|
1143
1156
|
text: string;
|
|
@@ -1209,6 +1222,8 @@ interface SignalRequests {
|
|
|
1209
1222
|
join_room: JoinRoomRequest;
|
|
1210
1223
|
knock_room: KnockRoomRequest;
|
|
1211
1224
|
leave_room: void;
|
|
1225
|
+
live_captions_enabled: void;
|
|
1226
|
+
live_captions_disabled: void;
|
|
1212
1227
|
remove_spotlight: RemoveSpotlightRequest;
|
|
1213
1228
|
request_file_upload_url: {
|
|
1214
1229
|
files: {
|
|
@@ -1587,8 +1602,6 @@ type P2PAnalytics = {
|
|
|
1587
1602
|
P2PMicNotWorking: number;
|
|
1588
1603
|
P2PLocalNetworkFailed: number;
|
|
1589
1604
|
P2PRelayedIceCandidate: number;
|
|
1590
|
-
P2PSessionAddTrack: number;
|
|
1591
|
-
P2PAddTrackToPeerConnections: number;
|
|
1592
1605
|
P2PAddIceCandidateFailure: number;
|
|
1593
1606
|
};
|
|
1594
1607
|
type P2PAnalyticMetric = keyof P2PAnalytics;
|
|
@@ -2077,4 +2090,4 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2077
2090
|
}
|
|
2078
2091
|
|
|
2079
2092
|
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, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
2080
|
-
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, 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, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, 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 };
|
|
2093
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, 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, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, 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
|
@@ -532,13 +532,6 @@ class Session {
|
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
534
534
|
const stream = this.streams[0];
|
|
535
|
-
this._incrementAnalyticMetric("P2PSessionAddTrack");
|
|
536
|
-
rtcStats.sendEvent("P2PSessionAddTrack", {
|
|
537
|
-
trackId: track.id,
|
|
538
|
-
kind: track.kind,
|
|
539
|
-
hasSessionStream: !!stream,
|
|
540
|
-
trackOfSameKindInStream: !!(stream === null || stream === void 0 ? void 0 : stream.getTracks().filter((t) => t.kind === track.kind && t.id !== track.id).length),
|
|
541
|
-
});
|
|
542
535
|
stream === null || stream === void 0 ? void 0 : stream.addTrack(track);
|
|
543
536
|
this.pc.addTrack(track, stream);
|
|
544
537
|
}
|
|
@@ -2554,8 +2547,6 @@ class P2pRtcManager {
|
|
|
2554
2547
|
P2PMicNotWorking: 0,
|
|
2555
2548
|
P2PLocalNetworkFailed: 0,
|
|
2556
2549
|
P2PRelayedIceCandidate: 0,
|
|
2557
|
-
P2PSessionAddTrack: 0,
|
|
2558
|
-
P2PAddTrackToPeerConnections: 0,
|
|
2559
2550
|
P2PAddIceCandidateFailure: 0,
|
|
2560
2551
|
};
|
|
2561
2552
|
}
|
|
@@ -3139,12 +3130,6 @@ class P2pRtcManager {
|
|
|
3139
3130
|
});
|
|
3140
3131
|
}
|
|
3141
3132
|
_addTrackToPeerConnections(track) {
|
|
3142
|
-
this.analytics.P2PAddTrackToPeerConnections++;
|
|
3143
|
-
rtcStats.sendEvent("P2PAddTrackToPeerConnections", {
|
|
3144
|
-
trackId: track.id,
|
|
3145
|
-
kind: track.kind,
|
|
3146
|
-
readyState: track.readyState,
|
|
3147
|
-
});
|
|
3148
3133
|
this._forEachPeerConnection((session) => {
|
|
3149
3134
|
this._withForcedRenegotiation(session, () => session.addTrack(track));
|
|
3150
3135
|
});
|
package/dist/legacy-esm.js
CHANGED
|
@@ -532,13 +532,6 @@ class Session {
|
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
534
534
|
const stream = this.streams[0];
|
|
535
|
-
this._incrementAnalyticMetric("P2PSessionAddTrack");
|
|
536
|
-
rtcStats.sendEvent("P2PSessionAddTrack", {
|
|
537
|
-
trackId: track.id,
|
|
538
|
-
kind: track.kind,
|
|
539
|
-
hasSessionStream: !!stream,
|
|
540
|
-
trackOfSameKindInStream: !!(stream === null || stream === void 0 ? void 0 : stream.getTracks().filter((t) => t.kind === track.kind && t.id !== track.id).length),
|
|
541
|
-
});
|
|
542
535
|
stream === null || stream === void 0 ? void 0 : stream.addTrack(track);
|
|
543
536
|
this.pc.addTrack(track, stream);
|
|
544
537
|
}
|
|
@@ -2554,8 +2547,6 @@ class P2pRtcManager {
|
|
|
2554
2547
|
P2PMicNotWorking: 0,
|
|
2555
2548
|
P2PLocalNetworkFailed: 0,
|
|
2556
2549
|
P2PRelayedIceCandidate: 0,
|
|
2557
|
-
P2PSessionAddTrack: 0,
|
|
2558
|
-
P2PAddTrackToPeerConnections: 0,
|
|
2559
2550
|
P2PAddIceCandidateFailure: 0,
|
|
2560
2551
|
};
|
|
2561
2552
|
}
|
|
@@ -3139,12 +3130,6 @@ class P2pRtcManager {
|
|
|
3139
3130
|
});
|
|
3140
3131
|
}
|
|
3141
3132
|
_addTrackToPeerConnections(track) {
|
|
3142
|
-
this.analytics.P2PAddTrackToPeerConnections++;
|
|
3143
|
-
rtcStats.sendEvent("P2PAddTrackToPeerConnections", {
|
|
3144
|
-
trackId: track.id,
|
|
3145
|
-
kind: track.kind,
|
|
3146
|
-
readyState: track.readyState,
|
|
3147
|
-
});
|
|
3148
3133
|
this._forEachPeerConnection((session) => {
|
|
3149
3134
|
this._withForcedRenegotiation(session, () => session.addTrack(track));
|
|
3150
3135
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whereby.com/media",
|
|
3
3
|
"description": "Media library for Whereby",
|
|
4
|
-
"version": "9.2.
|
|
4
|
+
"version": "9.2.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/whereby/sdk",
|
|
7
7
|
"repository": {
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"prettier": "^3.5.3",
|
|
63
63
|
"process": "^0.11.10",
|
|
64
64
|
"typescript": "^5.8.3",
|
|
65
|
-
"@whereby.com/jest-config": "0.1.0",
|
|
66
65
|
"@whereby.com/eslint-config": "0.1.0",
|
|
66
|
+
"@whereby.com/jest-config": "0.1.0",
|
|
67
67
|
"@whereby.com/prettier-config": "0.1.0",
|
|
68
|
-
"@whereby.com/
|
|
69
|
-
"@whereby.com/
|
|
68
|
+
"@whereby.com/rollup-config": "0.1.1",
|
|
69
|
+
"@whereby.com/tsconfig": "0.1.0"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
72
|
"node": ">=24.0.0"
|