@abrar71/lib-jitsi-meet 0.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/LICENSE +202 -0
- package/README.md +26 -0
- package/dist/esm/JitsiConference.js +3692 -0
- package/dist/esm/JitsiConference.js.map +1 -0
- package/dist/esm/JitsiConferenceErrors.js +126 -0
- package/dist/esm/JitsiConferenceErrors.js.map +1 -0
- package/dist/esm/JitsiConferenceEventManager.js +424 -0
- package/dist/esm/JitsiConferenceEventManager.js.map +1 -0
- package/dist/esm/JitsiConferenceEvents.js +431 -0
- package/dist/esm/JitsiConferenceEvents.js.map +1 -0
- package/dist/esm/JitsiConnection.js +187 -0
- package/dist/esm/JitsiConnection.js.map +1 -0
- package/dist/esm/JitsiConnectionErrors.js +52 -0
- package/dist/esm/JitsiConnectionErrors.js.map +1 -0
- package/dist/esm/JitsiConnectionEvents.js +57 -0
- package/dist/esm/JitsiConnectionEvents.js.map +1 -0
- package/dist/esm/JitsiMediaDevices.js +221 -0
- package/dist/esm/JitsiMediaDevices.js.map +1 -0
- package/dist/esm/JitsiMediaDevicesEvents.js +29 -0
- package/dist/esm/JitsiMediaDevicesEvents.js.map +1 -0
- package/dist/esm/JitsiMeetJS.js +499 -0
- package/dist/esm/JitsiMeetJS.js.map +1 -0
- package/dist/esm/JitsiParticipant.js +323 -0
- package/dist/esm/JitsiParticipant.js.map +1 -0
- package/dist/esm/JitsiTrackError.js +122 -0
- package/dist/esm/JitsiTrackError.js.map +1 -0
- package/dist/esm/JitsiTrackErrors.js +91 -0
- package/dist/esm/JitsiTrackErrors.js.map +1 -0
- package/dist/esm/JitsiTrackEvents.js +60 -0
- package/dist/esm/JitsiTrackEvents.js.map +1 -0
- package/dist/esm/JitsiTranscriptionStatus.js +15 -0
- package/dist/esm/JitsiTranscriptionStatus.js.map +1 -0
- package/dist/esm/modules/RTC/BridgeChannel.js +398 -0
- package/dist/esm/modules/RTC/BridgeChannel.js.map +1 -0
- package/dist/esm/modules/RTC/JitsiLocalTrack.js +896 -0
- package/dist/esm/modules/RTC/JitsiLocalTrack.js.map +1 -0
- package/dist/esm/modules/RTC/JitsiRemoteTrack.js +427 -0
- package/dist/esm/modules/RTC/JitsiRemoteTrack.js.map +1 -0
- package/dist/esm/modules/RTC/JitsiTrack.js +453 -0
- package/dist/esm/modules/RTC/JitsiTrack.js.map +1 -0
- package/dist/esm/modules/RTC/MockClasses.js +388 -0
- package/dist/esm/modules/RTC/MockClasses.js.map +1 -0
- package/dist/esm/modules/RTC/RTC.js +658 -0
- package/dist/esm/modules/RTC/RTC.js.map +1 -0
- package/dist/esm/modules/RTC/RTCUtils.js +762 -0
- package/dist/esm/modules/RTC/RTCUtils.js.map +1 -0
- package/dist/esm/modules/RTC/ScreenObtainer.js +380 -0
- package/dist/esm/modules/RTC/ScreenObtainer.js.map +1 -0
- package/dist/esm/modules/RTC/TPCUtils.js +803 -0
- package/dist/esm/modules/RTC/TPCUtils.js.map +1 -0
- package/dist/esm/modules/RTC/TraceablePeerConnection.js +2223 -0
- package/dist/esm/modules/RTC/TraceablePeerConnection.js.map +1 -0
- package/dist/esm/modules/RTCStats/DefaulLogStorage.js +35 -0
- package/dist/esm/modules/RTCStats/DefaulLogStorage.js.map +1 -0
- package/dist/esm/modules/RTCStats/RTCStats.js +219 -0
- package/dist/esm/modules/RTCStats/RTCStats.js.map +1 -0
- package/dist/esm/modules/RTCStats/RTCStatsEvents.js +92 -0
- package/dist/esm/modules/RTCStats/RTCStatsEvents.js.map +1 -0
- package/dist/esm/modules/RTCStats/interfaces.js +2 -0
- package/dist/esm/modules/RTCStats/interfaces.js.map +1 -0
- package/dist/esm/modules/browser/BrowserCapabilities.js +345 -0
- package/dist/esm/modules/browser/BrowserCapabilities.js.map +1 -0
- package/dist/esm/modules/browser/index.js +3 -0
- package/dist/esm/modules/browser/index.js.map +1 -0
- package/dist/esm/modules/connectivity/ConnectionQuality.js +389 -0
- package/dist/esm/modules/connectivity/ConnectionQuality.js.map +1 -0
- package/dist/esm/modules/connectivity/IceFailedHandling.js +84 -0
- package/dist/esm/modules/connectivity/IceFailedHandling.js.map +1 -0
- package/dist/esm/modules/connectivity/NetworkInfo.js +49 -0
- package/dist/esm/modules/connectivity/NetworkInfo.js.map +1 -0
- package/dist/esm/modules/connectivity/TrackStreamingStatus.js +453 -0
- package/dist/esm/modules/connectivity/TrackStreamingStatus.js.map +1 -0
- package/dist/esm/modules/detection/ActiveDeviceDetector.js +79 -0
- package/dist/esm/modules/detection/ActiveDeviceDetector.js.map +1 -0
- package/dist/esm/modules/detection/DetectionEvents.js +58 -0
- package/dist/esm/modules/detection/DetectionEvents.js.map +1 -0
- package/dist/esm/modules/detection/NoAudioSignalDetection.js +127 -0
- package/dist/esm/modules/detection/NoAudioSignalDetection.js.map +1 -0
- package/dist/esm/modules/detection/P2PDominantSpeakerDetection.js +47 -0
- package/dist/esm/modules/detection/P2PDominantSpeakerDetection.js.map +1 -0
- package/dist/esm/modules/detection/TrackVADEmitter.js +190 -0
- package/dist/esm/modules/detection/TrackVADEmitter.js.map +1 -0
- package/dist/esm/modules/detection/VADAudioAnalyser.js +199 -0
- package/dist/esm/modules/detection/VADAudioAnalyser.js.map +1 -0
- package/dist/esm/modules/detection/VADNoiseDetection.js +168 -0
- package/dist/esm/modules/detection/VADNoiseDetection.js.map +1 -0
- package/dist/esm/modules/detection/VADReportingService.js +203 -0
- package/dist/esm/modules/detection/VADReportingService.js.map +1 -0
- package/dist/esm/modules/detection/VADTalkMutedDetection.js +131 -0
- package/dist/esm/modules/detection/VADTalkMutedDetection.js.map +1 -0
- package/dist/esm/modules/e2ee/Context.js +274 -0
- package/dist/esm/modules/e2ee/Context.js.map +1 -0
- package/dist/esm/modules/e2ee/E2EEContext.js +158 -0
- package/dist/esm/modules/e2ee/E2EEContext.js.map +1 -0
- package/dist/esm/modules/e2ee/E2EEErrors.js +10 -0
- package/dist/esm/modules/e2ee/E2EEErrors.js.map +1 -0
- package/dist/esm/modules/e2ee/E2EEncryption.js +87 -0
- package/dist/esm/modules/e2ee/E2EEncryption.js.map +1 -0
- package/dist/esm/modules/e2ee/ExternallyManagedKeyHandler.js +24 -0
- package/dist/esm/modules/e2ee/ExternallyManagedKeyHandler.js.map +1 -0
- package/dist/esm/modules/e2ee/KeyHandler.js +137 -0
- package/dist/esm/modules/e2ee/KeyHandler.js.map +1 -0
- package/dist/esm/modules/e2ee/ManagedKeyHandler.js +182 -0
- package/dist/esm/modules/e2ee/ManagedKeyHandler.js.map +1 -0
- package/dist/esm/modules/e2ee/OlmAdapter.js +860 -0
- package/dist/esm/modules/e2ee/OlmAdapter.js.map +1 -0
- package/dist/esm/modules/e2ee/SAS.js +128 -0
- package/dist/esm/modules/e2ee/SAS.js.map +1 -0
- package/dist/esm/modules/e2ee/Worker.js +102 -0
- package/dist/esm/modules/e2ee/Worker.js.map +1 -0
- package/dist/esm/modules/e2ee/crypto-utils.js +53 -0
- package/dist/esm/modules/e2ee/crypto-utils.js.map +1 -0
- package/dist/esm/modules/e2ee/utils.js +15 -0
- package/dist/esm/modules/e2ee/utils.js.map +1 -0
- package/dist/esm/modules/e2eping/e2eping.js +314 -0
- package/dist/esm/modules/e2eping/e2eping.js.map +1 -0
- package/dist/esm/modules/flags/FeatureFlags.js +36 -0
- package/dist/esm/modules/flags/FeatureFlags.js.map +1 -0
- package/dist/esm/modules/litemode/LiteModeContext.js +50 -0
- package/dist/esm/modules/litemode/LiteModeContext.js.map +1 -0
- package/dist/esm/modules/proxyconnection/CustomSignalingLayer.js +98 -0
- package/dist/esm/modules/proxyconnection/CustomSignalingLayer.js.map +1 -0
- package/dist/esm/modules/proxyconnection/ProxyConnectionPC.js +348 -0
- package/dist/esm/modules/proxyconnection/ProxyConnectionPC.js.map +1 -0
- package/dist/esm/modules/proxyconnection/ProxyConnectionService.js +279 -0
- package/dist/esm/modules/proxyconnection/ProxyConnectionService.js.map +1 -0
- package/dist/esm/modules/proxyconnection/constants.js +14 -0
- package/dist/esm/modules/proxyconnection/constants.js.map +1 -0
- package/dist/esm/modules/qualitycontrol/CodecSelection.js +222 -0
- package/dist/esm/modules/qualitycontrol/CodecSelection.js.map +1 -0
- package/dist/esm/modules/qualitycontrol/MockClasses.js +120 -0
- package/dist/esm/modules/qualitycontrol/MockClasses.js.map +1 -0
- package/dist/esm/modules/qualitycontrol/QualityController.js +366 -0
- package/dist/esm/modules/qualitycontrol/QualityController.js.map +1 -0
- package/dist/esm/modules/qualitycontrol/ReceiveAudioController.js +73 -0
- package/dist/esm/modules/qualitycontrol/ReceiveAudioController.js.map +1 -0
- package/dist/esm/modules/qualitycontrol/ReceiveVideoController.js +216 -0
- package/dist/esm/modules/qualitycontrol/ReceiveVideoController.js.map +1 -0
- package/dist/esm/modules/qualitycontrol/SendVideoController.js +133 -0
- package/dist/esm/modules/qualitycontrol/SendVideoController.js.map +1 -0
- package/dist/esm/modules/recording/JibriSession.js +279 -0
- package/dist/esm/modules/recording/JibriSession.js.map +1 -0
- package/dist/esm/modules/recording/RecordingManager.js +257 -0
- package/dist/esm/modules/recording/RecordingManager.js.map +1 -0
- package/dist/esm/modules/recording/recordingConstants.js +21 -0
- package/dist/esm/modules/recording/recordingConstants.js.map +1 -0
- package/dist/esm/modules/recording/recordingXMLUtils.js +69 -0
- package/dist/esm/modules/recording/recordingXMLUtils.js.map +1 -0
- package/dist/esm/modules/red/red.js +108 -0
- package/dist/esm/modules/red/red.js.map +1 -0
- package/dist/esm/modules/sdp/LocalSdpMunger.js +143 -0
- package/dist/esm/modules/sdp/LocalSdpMunger.js.map +1 -0
- package/dist/esm/modules/sdp/RtxModifier.js +179 -0
- package/dist/esm/modules/sdp/RtxModifier.js.map +1 -0
- package/dist/esm/modules/sdp/SDP.js +848 -0
- package/dist/esm/modules/sdp/SDP.js.map +1 -0
- package/dist/esm/modules/sdp/SDPDiffer.js +96 -0
- package/dist/esm/modules/sdp/SDPDiffer.js.map +1 -0
- package/dist/esm/modules/sdp/SDPUtil.js +798 -0
- package/dist/esm/modules/sdp/SDPUtil.js.map +1 -0
- package/dist/esm/modules/sdp/SampleSdpStrings.js +589 -0
- package/dist/esm/modules/sdp/SampleSdpStrings.js.map +1 -0
- package/dist/esm/modules/sdp/SdpSimulcast.js +196 -0
- package/dist/esm/modules/sdp/SdpSimulcast.js.map +1 -0
- package/dist/esm/modules/sdp/SdpTransformUtil.js +337 -0
- package/dist/esm/modules/sdp/SdpTransformUtil.js.map +1 -0
- package/dist/esm/modules/sdp/constants.js +2 -0
- package/dist/esm/modules/sdp/constants.js.map +1 -0
- package/dist/esm/modules/settings/Settings.js +95 -0
- package/dist/esm/modules/settings/Settings.js.map +1 -0
- package/dist/esm/modules/statistics/AnalyticsAdapter.js +277 -0
- package/dist/esm/modules/statistics/AnalyticsAdapter.js.map +1 -0
- package/dist/esm/modules/statistics/AvgRTPStatsReporter.js +817 -0
- package/dist/esm/modules/statistics/AvgRTPStatsReporter.js.map +1 -0
- package/dist/esm/modules/statistics/LocalStatsCollector.js +149 -0
- package/dist/esm/modules/statistics/LocalStatsCollector.js.map +1 -0
- package/dist/esm/modules/statistics/PreCallTest.js +15 -0
- package/dist/esm/modules/statistics/PreCallTest.js.map +1 -0
- package/dist/esm/modules/statistics/RTPStatsCollector.js +601 -0
- package/dist/esm/modules/statistics/RTPStatsCollector.js.map +1 -0
- package/dist/esm/modules/statistics/SpeakerStats.js +163 -0
- package/dist/esm/modules/statistics/SpeakerStats.js.map +1 -0
- package/dist/esm/modules/statistics/SpeakerStatsCollector.js +161 -0
- package/dist/esm/modules/statistics/SpeakerStatsCollector.js.map +1 -0
- package/dist/esm/modules/statistics/constants.js +7 -0
- package/dist/esm/modules/statistics/constants.js.map +1 -0
- package/dist/esm/modules/statistics/statistics.js +362 -0
- package/dist/esm/modules/statistics/statistics.js.map +1 -0
- package/dist/esm/modules/util/AsyncQueue.js +102 -0
- package/dist/esm/modules/util/AsyncQueue.js.map +1 -0
- package/dist/esm/modules/util/Deferred.js +41 -0
- package/dist/esm/modules/util/Deferred.js.map +1 -0
- package/dist/esm/modules/util/EventEmitter.js +17 -0
- package/dist/esm/modules/util/EventEmitter.js.map +1 -0
- package/dist/esm/modules/util/EventEmitterForwarder.js +52 -0
- package/dist/esm/modules/util/EventEmitterForwarder.js.map +1 -0
- package/dist/esm/modules/util/Listenable.js +106 -0
- package/dist/esm/modules/util/Listenable.js.map +1 -0
- package/dist/esm/modules/util/MathUtil.js +103 -0
- package/dist/esm/modules/util/MathUtil.js.map +1 -0
- package/dist/esm/modules/util/RandomUtil.js +66 -0
- package/dist/esm/modules/util/RandomUtil.js.map +1 -0
- package/dist/esm/modules/util/Retry.js +15 -0
- package/dist/esm/modules/util/Retry.js.map +1 -0
- package/dist/esm/modules/util/ScriptUtil.js +58 -0
- package/dist/esm/modules/util/ScriptUtil.js.map +1 -0
- package/dist/esm/modules/util/StringUtils.js +21 -0
- package/dist/esm/modules/util/StringUtils.js.map +1 -0
- package/dist/esm/modules/util/TestUtils.js +14 -0
- package/dist/esm/modules/util/TestUtils.js.map +1 -0
- package/dist/esm/modules/util/UsernameGenerator.js +436 -0
- package/dist/esm/modules/util/UsernameGenerator.js.map +1 -0
- package/dist/esm/modules/util/XMLUtils.js +135 -0
- package/dist/esm/modules/util/XMLUtils.js.map +1 -0
- package/dist/esm/modules/version/ComponentsVersions.js +52 -0
- package/dist/esm/modules/version/ComponentsVersions.js.map +1 -0
- package/dist/esm/modules/videosipgw/JitsiVideoSIPGWSession.js +137 -0
- package/dist/esm/modules/videosipgw/JitsiVideoSIPGWSession.js.map +1 -0
- package/dist/esm/modules/videosipgw/VideoSIPGW.js +102 -0
- package/dist/esm/modules/videosipgw/VideoSIPGW.js.map +1 -0
- package/dist/esm/modules/videosipgw/VideoSIPGWConstants.js +65 -0
- package/dist/esm/modules/videosipgw/VideoSIPGWConstants.js.map +1 -0
- package/dist/esm/modules/watchRTC/WatchRTC.js +69 -0
- package/dist/esm/modules/watchRTC/WatchRTC.js.map +1 -0
- package/dist/esm/modules/watchRTC/functions.js +31 -0
- package/dist/esm/modules/watchRTC/functions.js.map +1 -0
- package/dist/esm/modules/watchRTC/interfaces.js +2 -0
- package/dist/esm/modules/watchRTC/interfaces.js.map +1 -0
- package/dist/esm/modules/webaudio/AudioMixer.js +74 -0
- package/dist/esm/modules/webaudio/AudioMixer.js.map +1 -0
- package/dist/esm/modules/webaudio/WebAudioUtils.js +13 -0
- package/dist/esm/modules/webaudio/WebAudioUtils.js.map +1 -0
- package/dist/esm/modules/xmpp/AVModeration.js +156 -0
- package/dist/esm/modules/xmpp/AVModeration.js.map +1 -0
- package/dist/esm/modules/xmpp/BreakoutRooms.js +230 -0
- package/dist/esm/modules/xmpp/BreakoutRooms.js.map +1 -0
- package/dist/esm/modules/xmpp/Caps.js +223 -0
- package/dist/esm/modules/xmpp/Caps.js.map +1 -0
- package/dist/esm/modules/xmpp/ChatRoom.js +1877 -0
- package/dist/esm/modules/xmpp/ChatRoom.js.map +1 -0
- package/dist/esm/modules/xmpp/ConnectionPlugin.js +37 -0
- package/dist/esm/modules/xmpp/ConnectionPlugin.js.map +1 -0
- package/dist/esm/modules/xmpp/FileSharing.js +95 -0
- package/dist/esm/modules/xmpp/FileSharing.js.map +1 -0
- package/dist/esm/modules/xmpp/JingleHelperFunctions.js +168 -0
- package/dist/esm/modules/xmpp/JingleHelperFunctions.js.map +1 -0
- package/dist/esm/modules/xmpp/JingleSession.js +166 -0
- package/dist/esm/modules/xmpp/JingleSession.js.map +1 -0
- package/dist/esm/modules/xmpp/JingleSessionPC.js +1969 -0
- package/dist/esm/modules/xmpp/JingleSessionPC.js.map +1 -0
- package/dist/esm/modules/xmpp/JingleSessionState.js +23 -0
- package/dist/esm/modules/xmpp/JingleSessionState.js.map +1 -0
- package/dist/esm/modules/xmpp/Lobby.js +384 -0
- package/dist/esm/modules/xmpp/Lobby.js.map +1 -0
- package/dist/esm/modules/xmpp/MediaSessionEvents.js +12 -0
- package/dist/esm/modules/xmpp/MediaSessionEvents.js.map +1 -0
- package/dist/esm/modules/xmpp/MockClasses.js +77 -0
- package/dist/esm/modules/xmpp/MockClasses.js.map +1 -0
- package/dist/esm/modules/xmpp/Polls.js +87 -0
- package/dist/esm/modules/xmpp/Polls.js.map +1 -0
- package/dist/esm/modules/xmpp/ResumeTask.js +149 -0
- package/dist/esm/modules/xmpp/ResumeTask.js.map +1 -0
- package/dist/esm/modules/xmpp/RoomMetadata.js +96 -0
- package/dist/esm/modules/xmpp/RoomMetadata.js.map +1 -0
- package/dist/esm/modules/xmpp/SignalingLayerImpl.js +313 -0
- package/dist/esm/modules/xmpp/SignalingLayerImpl.js.map +1 -0
- package/dist/esm/modules/xmpp/StropheErrorHandler.js +53 -0
- package/dist/esm/modules/xmpp/StropheErrorHandler.js.map +1 -0
- package/dist/esm/modules/xmpp/StropheLastSuccess.js +52 -0
- package/dist/esm/modules/xmpp/StropheLastSuccess.js.map +1 -0
- package/dist/esm/modules/xmpp/XmppConnection.js +579 -0
- package/dist/esm/modules/xmpp/XmppConnection.js.map +1 -0
- package/dist/esm/modules/xmpp/moderator.js +524 -0
- package/dist/esm/modules/xmpp/moderator.js.map +1 -0
- package/dist/esm/modules/xmpp/sha1.js +165 -0
- package/dist/esm/modules/xmpp/sha1.js.map +1 -0
- package/dist/esm/modules/xmpp/strophe.disco.js +222 -0
- package/dist/esm/modules/xmpp/strophe.disco.js.map +1 -0
- package/dist/esm/modules/xmpp/strophe.emuc.js +206 -0
- package/dist/esm/modules/xmpp/strophe.emuc.js.map +1 -0
- package/dist/esm/modules/xmpp/strophe.jingle.js +404 -0
- package/dist/esm/modules/xmpp/strophe.jingle.js.map +1 -0
- package/dist/esm/modules/xmpp/strophe.logger.js +44 -0
- package/dist/esm/modules/xmpp/strophe.logger.js.map +1 -0
- package/dist/esm/modules/xmpp/strophe.ping.js +170 -0
- package/dist/esm/modules/xmpp/strophe.ping.js.map +1 -0
- package/dist/esm/modules/xmpp/strophe.rayo.js +117 -0
- package/dist/esm/modules/xmpp/strophe.rayo.js.map +1 -0
- package/dist/esm/modules/xmpp/strophe.stream-management.js +365 -0
- package/dist/esm/modules/xmpp/strophe.stream-management.js.map +1 -0
- package/dist/esm/modules/xmpp/strophe.util.js +116 -0
- package/dist/esm/modules/xmpp/strophe.util.js.map +1 -0
- package/dist/esm/modules/xmpp/xmpp.js +973 -0
- package/dist/esm/modules/xmpp/xmpp.js.map +1 -0
- package/dist/esm/service/RTC/BridgeVideoType.js +24 -0
- package/dist/esm/service/RTC/BridgeVideoType.js.map +1 -0
- package/dist/esm/service/RTC/CameraFacingMode.js +21 -0
- package/dist/esm/service/RTC/CameraFacingMode.js.map +1 -0
- package/dist/esm/service/RTC/CodecMimeType.js +36 -0
- package/dist/esm/service/RTC/CodecMimeType.js.map +1 -0
- package/dist/esm/service/RTC/MediaDirection.js +23 -0
- package/dist/esm/service/RTC/MediaDirection.js.map +1 -0
- package/dist/esm/service/RTC/MediaType.js +20 -0
- package/dist/esm/service/RTC/MediaType.js.map +1 -0
- package/dist/esm/service/RTC/RTCEvents.js +111 -0
- package/dist/esm/service/RTC/RTCEvents.js.map +1 -0
- package/dist/esm/service/RTC/ReceiverAudioSubscription.js +27 -0
- package/dist/esm/service/RTC/ReceiverAudioSubscription.js.map +1 -0
- package/dist/esm/service/RTC/Resolutions.js +56 -0
- package/dist/esm/service/RTC/Resolutions.js.map +1 -0
- package/dist/esm/service/RTC/SignalingEvents.js +42 -0
- package/dist/esm/service/RTC/SignalingEvents.js.map +1 -0
- package/dist/esm/service/RTC/SignalingLayer.js +153 -0
- package/dist/esm/service/RTC/SignalingLayer.js.map +1 -0
- package/dist/esm/service/RTC/StandardVideoQualitySettings.js +180 -0
- package/dist/esm/service/RTC/StandardVideoQualitySettings.js.map +1 -0
- package/dist/esm/service/RTC/VideoEncoderScalabilityMode.js +36 -0
- package/dist/esm/service/RTC/VideoEncoderScalabilityMode.js.map +1 -0
- package/dist/esm/service/RTC/VideoType.js +19 -0
- package/dist/esm/service/RTC/VideoType.js.map +1 -0
- package/dist/esm/service/authentication/AuthenticationEvents.js +13 -0
- package/dist/esm/service/authentication/AuthenticationEvents.js.map +1 -0
- package/dist/esm/service/connectivity/ConnectionQualityEvents.js +13 -0
- package/dist/esm/service/connectivity/ConnectionQualityEvents.js.map +1 -0
- package/dist/esm/service/connectivity/Constants.js +3 -0
- package/dist/esm/service/connectivity/Constants.js.map +1 -0
- package/dist/esm/service/e2eping/E2ePingEvents.js +8 -0
- package/dist/esm/service/e2eping/E2ePingEvents.js.map +1 -0
- package/dist/esm/service/statistics/AnalyticsEvents.js +521 -0
- package/dist/esm/service/statistics/AnalyticsEvents.js.map +1 -0
- package/dist/esm/service/statistics/Events.js +36 -0
- package/dist/esm/service/statistics/Events.js.map +1 -0
- package/dist/esm/service/statistics/constants.js +2 -0
- package/dist/esm/service/statistics/constants.js.map +1 -0
- package/dist/esm/service/xmpp/XMPPEvents.js +359 -0
- package/dist/esm/service/xmpp/XMPPEvents.js.map +1 -0
- package/dist/esm/service/xmpp/XMPPExtensioProtocols.js +64 -0
- package/dist/esm/service/xmpp/XMPPExtensioProtocols.js.map +1 -0
- package/dist/esm/test-setup-polyfill.js +34 -0
- package/dist/esm/test-setup-polyfill.js.map +1 -0
- package/dist/esm/tools/gen-version.js +15 -0
- package/dist/esm/tools/gen-version.js.map +1 -0
- package/dist/esm/version.js +3 -0
- package/dist/esm/version.js.map +1 -0
- package/dist/umd/lib-jitsi-meet.e2ee-worker.js +484 -0
- package/dist/umd/lib-jitsi-meet.min.js +3 -0
- package/dist/umd/lib-jitsi-meet.min.js.LICENSE.txt +18 -0
- package/dist/umd/lib-jitsi-meet.min.map +1 -0
- package/package.json +93 -0
- package/types/index.d.ts +16180 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This class exports constants and factory methods related to the analytics
|
|
3
|
+
* API provided by AnalyticsAdapter. In order for entries in a database to be
|
|
4
|
+
* somewhat easily traceable back to the code which produced them, events sent
|
|
5
|
+
* through analytics should be defined here.
|
|
6
|
+
*
|
|
7
|
+
* Since the AnalyticsAdapter API can be used in different ways, for some events
|
|
8
|
+
* it is more convenient to just define the event name as a constant. For other
|
|
9
|
+
* events a factory function is easier.
|
|
10
|
+
*
|
|
11
|
+
* A general approach for adding a new event:
|
|
12
|
+
* 1. Determine the event type: track, UI, page, or operational. If in doubt use
|
|
13
|
+
* operational.
|
|
14
|
+
* 2. Determine whether the event is related to other existing events, and
|
|
15
|
+
* which fields are desired to be set: name, action, actionSubject, source.
|
|
16
|
+
* 3. If the name is sufficient (the other fields are not important), use a
|
|
17
|
+
* constant. Otherwise use a factory function.
|
|
18
|
+
*
|
|
19
|
+
* Note that the AnalyticsAdapter uses the events passed to its functions for
|
|
20
|
+
* its own purposes, and might modify them. Because of this, factory functions
|
|
21
|
+
* should create new objects.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export var AnalyticsEvents;
|
|
25
|
+
(function (AnalyticsEvents) {
|
|
26
|
+
/**
|
|
27
|
+
* The "action" value for Jingle events which indicates that the Jingle session
|
|
28
|
+
* was restarted (TODO: verify/fix the documentation)
|
|
29
|
+
*/
|
|
30
|
+
AnalyticsEvents["ACTION_JINGLE_RESTART"] = "restart";
|
|
31
|
+
/**
|
|
32
|
+
* The "action" value for Jingle events which indicates that a session-accept
|
|
33
|
+
* timed out (TODO: verify/fix the documentation)
|
|
34
|
+
*/
|
|
35
|
+
AnalyticsEvents["ACTION_JINGLE_SA_TIMEOUT"] = "session-accept.timeout";
|
|
36
|
+
/**
|
|
37
|
+
* The "action" value for Jingle events which indicates that a session-initiate
|
|
38
|
+
* was received.
|
|
39
|
+
*/
|
|
40
|
+
AnalyticsEvents["ACTION_JINGLE_SI_RECEIVED"] = "session-initiate.received";
|
|
41
|
+
/**
|
|
42
|
+
* The "action" value for Jingle events which indicates that a session-initiate
|
|
43
|
+
* not arrived within a timeout (the value is specified in
|
|
44
|
+
* the {@link JingleSessionPC}.
|
|
45
|
+
*/
|
|
46
|
+
AnalyticsEvents["ACTION_JINGLE_SI_TIMEOUT"] = "session-initiate.timeout";
|
|
47
|
+
/**
|
|
48
|
+
* A constant for the "terminate" action for Jingle events. TODO: verify/fix
|
|
49
|
+
* the documentation)
|
|
50
|
+
*/
|
|
51
|
+
AnalyticsEvents["ACTION_JINGLE_TERMINATE"] = "terminate";
|
|
52
|
+
/**
|
|
53
|
+
* The "action" value for JVB events which indicates that the ICE connection has failed after 3 restart attempts
|
|
54
|
+
*/
|
|
55
|
+
AnalyticsEvents["ACTION_JVB_ICE_FAILED"] = "jvb.ice.failed";
|
|
56
|
+
/**
|
|
57
|
+
* The "action" value for P2P events which indicates that P2P session initiate message has been rejected by the
|
|
58
|
+
* client because the mandatory requirements were not met.
|
|
59
|
+
*/
|
|
60
|
+
AnalyticsEvents["ACTION_P2P_DECLINED"] = "decline";
|
|
61
|
+
/**
|
|
62
|
+
* The "action" value for P2P events which indicates that a connection was
|
|
63
|
+
* established (TODO: verify/fix the documentation)
|
|
64
|
+
*/
|
|
65
|
+
AnalyticsEvents["ACTION_P2P_ESTABLISHED"] = "established";
|
|
66
|
+
/**
|
|
67
|
+
* The "action" value for P2P events which indicates that something failed.
|
|
68
|
+
*/
|
|
69
|
+
AnalyticsEvents["ACTION_P2P_FAILED"] = "failed";
|
|
70
|
+
/**
|
|
71
|
+
* The "action" value for P2P events which indicates that a switch to
|
|
72
|
+
* jitsi-videobridge happened.
|
|
73
|
+
*/
|
|
74
|
+
AnalyticsEvents["ACTION_P2P_SWITCH_TO_JVB"] = "switch.to.jvb";
|
|
75
|
+
/**
|
|
76
|
+
* The name of an event which indicates an available device. We send one such
|
|
77
|
+
* event per available device once when the available devices are first known,
|
|
78
|
+
* and every time that they change
|
|
79
|
+
*
|
|
80
|
+
* Properties:
|
|
81
|
+
* audio_input_device_count: the number of audio input devices available at
|
|
82
|
+
* the time the event was sent.
|
|
83
|
+
* audio_output_device_count: the number of audio output devices available
|
|
84
|
+
* at the time the event was sent.
|
|
85
|
+
* video_input_device_count: the number of video input devices available at
|
|
86
|
+
* the time the event was sent.
|
|
87
|
+
* video_output_device_count: the number of video output devices available
|
|
88
|
+
* at the time the event was sent.
|
|
89
|
+
* device_id: an identifier of the device described in this event.
|
|
90
|
+
* device_group_id:
|
|
91
|
+
* device_kind: one of 'audioinput', 'audiooutput', 'videoinput' or
|
|
92
|
+
* 'videooutput'.
|
|
93
|
+
* device_label: a string which describes the device.
|
|
94
|
+
*/
|
|
95
|
+
AnalyticsEvents["AVAILABLE_DEVICE"] = "available.device";
|
|
96
|
+
/**
|
|
97
|
+
* This appears to be fired only in certain cases when the XMPP connection
|
|
98
|
+
* disconnects (and it was intentional?). It is currently never observed to
|
|
99
|
+
* fire in production.
|
|
100
|
+
*
|
|
101
|
+
* TODO: document
|
|
102
|
+
*
|
|
103
|
+
* Properties:
|
|
104
|
+
* message: an error message
|
|
105
|
+
*/
|
|
106
|
+
AnalyticsEvents["CONNECTION_DISCONNECTED"] = "connection.disconnected";
|
|
107
|
+
/**
|
|
108
|
+
* Indicates that the user of the application provided feedback in terms of a
|
|
109
|
+
* rating (an integer from 1 to 5) and an optional comment.
|
|
110
|
+
* Properties:
|
|
111
|
+
* value: the user's rating (an integer from 1 to 5)
|
|
112
|
+
* comment: the user's comment
|
|
113
|
+
*/
|
|
114
|
+
AnalyticsEvents["FEEDBACK"] = "feedback";
|
|
115
|
+
/**
|
|
116
|
+
* Indicates the duration of a particular phase of the ICE connectivity
|
|
117
|
+
* establishment.
|
|
118
|
+
*
|
|
119
|
+
* Properties:
|
|
120
|
+
* phase: the ICE phase (e.g. 'gathering', 'checking', 'establishment')
|
|
121
|
+
* value: the duration in milliseconds.
|
|
122
|
+
* p2p: whether the associated ICE connection is p2p or towards a
|
|
123
|
+
* jitsi-videobridge
|
|
124
|
+
* initiator: whether the local Jingle peer is the initiator or responder
|
|
125
|
+
* in the Jingle session. XXX we probably actually care about the ICE
|
|
126
|
+
* role (controlling vs controlled), and we assume that this correlates
|
|
127
|
+
* with the Jingle initiator.
|
|
128
|
+
*/
|
|
129
|
+
AnalyticsEvents["ICE_DURATION"] = "ice.duration";
|
|
130
|
+
/**
|
|
131
|
+
* Indicates the difference in milliseconds between the ICE establishment time
|
|
132
|
+
* for the P2P and JVB connections (e.g. a value of 10 would indicate that the
|
|
133
|
+
* P2P connection took 10ms more than JVB connection to establish).
|
|
134
|
+
*
|
|
135
|
+
* Properties:
|
|
136
|
+
* value: the difference in establishment durations in milliseconds.
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
AnalyticsEvents["ICE_ESTABLISHMENT_DURATION_DIFF"] = "ice.establishment.duration.diff";
|
|
140
|
+
/**
|
|
141
|
+
* Indicates that the ICE state has changed.
|
|
142
|
+
*
|
|
143
|
+
* Properties:
|
|
144
|
+
* state: the ICE state which was entered (e.g. 'checking', 'connected',
|
|
145
|
+
* 'completed', etc).
|
|
146
|
+
* value: the time in milliseconds (as reported by
|
|
147
|
+
* window.performance.now()) that the state change occurred.
|
|
148
|
+
* p2p: whether the associated ICE connection is p2p or towards a
|
|
149
|
+
* jitsi-videobridge
|
|
150
|
+
* signalingState: The signaling state of the associated PeerConnection
|
|
151
|
+
* reconnect: whether the associated Jingle session is in the process of
|
|
152
|
+
* reconnecting (or is it ICE? TODO: verify/fix the documentation)
|
|
153
|
+
*/
|
|
154
|
+
AnalyticsEvents["ICE_STATE_CHANGED"] = "ice.state.changed";
|
|
155
|
+
/**
|
|
156
|
+
* Indicates that no bytes have been sent for the track.
|
|
157
|
+
*
|
|
158
|
+
* Properties:
|
|
159
|
+
* mediaType: the media type of the local track ('audio' or 'video').
|
|
160
|
+
*/
|
|
161
|
+
AnalyticsEvents["NO_BYTES_SENT"] = "track.no-bytes-sent";
|
|
162
|
+
/**
|
|
163
|
+
* Indicates that a track was unmuted (?).
|
|
164
|
+
*
|
|
165
|
+
* Properties:
|
|
166
|
+
* mediaType: the media type of the local track ('audio' or 'video').
|
|
167
|
+
* trackType: the type of the track ('local' or 'remote').
|
|
168
|
+
* value: TODO: document
|
|
169
|
+
*/
|
|
170
|
+
AnalyticsEvents["TRACK_UNMUTED"] = "track.unmuted";
|
|
171
|
+
/**
|
|
172
|
+
* The constant which identifies an event of type "operational".
|
|
173
|
+
*/
|
|
174
|
+
AnalyticsEvents["TYPE_OPERATIONAL"] = "operational";
|
|
175
|
+
/**
|
|
176
|
+
* The constant which identifies an event of type "page".
|
|
177
|
+
*/
|
|
178
|
+
AnalyticsEvents["TYPE_PAGE"] = "page";
|
|
179
|
+
/**
|
|
180
|
+
* The constant which identifies an event of type "track".
|
|
181
|
+
*/
|
|
182
|
+
AnalyticsEvents["TYPE_TRACK"] = "track";
|
|
183
|
+
/**
|
|
184
|
+
* The constant which identifies an event of type "ui".
|
|
185
|
+
*/
|
|
186
|
+
AnalyticsEvents["TYPE_UI"] = "ui";
|
|
187
|
+
/**
|
|
188
|
+
* Indicates that the video codec changed for a local track.
|
|
189
|
+
*
|
|
190
|
+
* Properties:
|
|
191
|
+
* value: the video codec mimeType.
|
|
192
|
+
* videoType: the videoType of local track, whether its 'camera' or 'desktop'.
|
|
193
|
+
*/
|
|
194
|
+
AnalyticsEvents["VIDEO_CODEC_CHANGED"] = "quality.video-codec-changed";
|
|
195
|
+
})(AnalyticsEvents || (AnalyticsEvents = {}));
|
|
196
|
+
/**
|
|
197
|
+
* Creates an operational event which indicates that we have received a
|
|
198
|
+
* "bridge down" event from jicofo.
|
|
199
|
+
*/
|
|
200
|
+
export const createBridgeDownEvent = () => {
|
|
201
|
+
return {
|
|
202
|
+
action: 'bridge.down',
|
|
203
|
+
actionSubject: 'bridge.down',
|
|
204
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Creates an event which indicates that the XMPP connection failed
|
|
209
|
+
* @param errorType TODO
|
|
210
|
+
* @param errorMessage TODO
|
|
211
|
+
* @param detail connection failed details.
|
|
212
|
+
*/
|
|
213
|
+
export const createConnectionFailedEvent = (errorType, errorMessage, details) => {
|
|
214
|
+
return {
|
|
215
|
+
action: 'connection.failed',
|
|
216
|
+
attributes: {
|
|
217
|
+
'error_message': errorMessage,
|
|
218
|
+
'error_type': errorType,
|
|
219
|
+
...details
|
|
220
|
+
},
|
|
221
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Creates a conference event.
|
|
226
|
+
*
|
|
227
|
+
* @param action - The action of the event.
|
|
228
|
+
* @param attributes - The attributes to be added to the event.
|
|
229
|
+
*/
|
|
230
|
+
export const createConferenceEvent = (action, attributes) => {
|
|
231
|
+
return {
|
|
232
|
+
action,
|
|
233
|
+
attributes,
|
|
234
|
+
source: 'conference',
|
|
235
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Creates an operational event which indicates that a particular connection
|
|
240
|
+
* stage was reached (i.e. the XMPP connection transitioned to the "connected"
|
|
241
|
+
* state).
|
|
242
|
+
*
|
|
243
|
+
* @param stage the stage which was reached
|
|
244
|
+
* @param attributes additional attributes for the event. This should be an
|
|
245
|
+
* object with a "value" property indicating a timestamp in milliseconds
|
|
246
|
+
* relative to the beginning of the document's lifetime.
|
|
247
|
+
*
|
|
248
|
+
*/
|
|
249
|
+
export const createConnectionStageReachedEvent = (stage, attributes) => {
|
|
250
|
+
return {
|
|
251
|
+
action: 'connection.stage.reached',
|
|
252
|
+
actionSubject: stage,
|
|
253
|
+
attributes,
|
|
254
|
+
source: 'connection.stage.reached',
|
|
255
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Creates an operational event for the end-to-end round trip time to a
|
|
260
|
+
* specific remote participant.
|
|
261
|
+
* @param participantId the ID of the remote participant.
|
|
262
|
+
* @param region the region of the remote participant
|
|
263
|
+
* @param rtt the rtt
|
|
264
|
+
*/
|
|
265
|
+
export const createE2eRttEvent = (participantId, region, rtt) => {
|
|
266
|
+
return {
|
|
267
|
+
attributes: {
|
|
268
|
+
'participant_id': participantId,
|
|
269
|
+
region,
|
|
270
|
+
rtt
|
|
271
|
+
},
|
|
272
|
+
name: 'e2e_rtt',
|
|
273
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* Creates an event which indicates that the focus has left the MUC.
|
|
278
|
+
*/
|
|
279
|
+
export const createFocusLeftEvent = () => {
|
|
280
|
+
return {
|
|
281
|
+
action: 'focus.left',
|
|
282
|
+
actionSubject: 'focus.left',
|
|
283
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Creates an event related to a getUserMedia call.
|
|
288
|
+
*
|
|
289
|
+
* @param action the type of the result that the event represents: 'error',
|
|
290
|
+
* 'success', 'warning', etc.
|
|
291
|
+
* @param attributes the attributes to attach to the event.
|
|
292
|
+
*/
|
|
293
|
+
export const createGetUserMediaEvent = (action, attributes = {}) => {
|
|
294
|
+
return {
|
|
295
|
+
action,
|
|
296
|
+
attributes,
|
|
297
|
+
source: 'get.user.media',
|
|
298
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Creates an event which indicates that the JVB ICE connection has failed event after 3 retries.
|
|
303
|
+
*
|
|
304
|
+
* @param action - The action type of the event.
|
|
305
|
+
* @param attributes - The attributes to be added to the event.
|
|
306
|
+
* @returns - The event object.
|
|
307
|
+
*/
|
|
308
|
+
export const createJvbIceFailedEvent = (action, attributes = {}) => {
|
|
309
|
+
return {
|
|
310
|
+
action,
|
|
311
|
+
attributes,
|
|
312
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Creates an event related to remote participant connection status changes.
|
|
317
|
+
*
|
|
318
|
+
* @param attributes the attributes to attach to the event.
|
|
319
|
+
*/
|
|
320
|
+
export const createParticipantConnectionStatusEvent = (attributes = {}) => {
|
|
321
|
+
return {
|
|
322
|
+
action: 'duration',
|
|
323
|
+
attributes,
|
|
324
|
+
source: 'peer.conn.status',
|
|
325
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* Creates an event related to remote track streaming status changes.
|
|
330
|
+
*
|
|
331
|
+
* @param attributes the attributes to attach to the event.
|
|
332
|
+
*/
|
|
333
|
+
export const createTrackStreamingStatusEvent = (attributes = {}) => {
|
|
334
|
+
return {
|
|
335
|
+
action: 'duration',
|
|
336
|
+
attributes,
|
|
337
|
+
source: 'track.streaming.status',
|
|
338
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* Creates an event for a Jingle-related event.
|
|
343
|
+
* @param action the action of the event
|
|
344
|
+
* @param attributes attributes to add to the event.
|
|
345
|
+
*/
|
|
346
|
+
export const createJingleEvent = (action, attributes = {}) => {
|
|
347
|
+
return {
|
|
348
|
+
action,
|
|
349
|
+
attributes,
|
|
350
|
+
source: 'jingle',
|
|
351
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* Creates an event which indicates that a local track was not able to read
|
|
356
|
+
* data from its source (a camera or a microphone).
|
|
357
|
+
*
|
|
358
|
+
* @param mediaType the media type of the local track ('audio' or
|
|
359
|
+
* 'video').
|
|
360
|
+
*/
|
|
361
|
+
export const createNoDataFromSourceEvent = (mediaType, value) => {
|
|
362
|
+
return {
|
|
363
|
+
action: 'track.no.data.from.source',
|
|
364
|
+
attributes: {
|
|
365
|
+
'media_type': mediaType,
|
|
366
|
+
value
|
|
367
|
+
},
|
|
368
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* Creates an event for a p2p-related event.
|
|
373
|
+
* @param action the action of the event
|
|
374
|
+
* @param attributes attributes to add to the event.
|
|
375
|
+
*/
|
|
376
|
+
export const createP2PEvent = (action, attributes = {}) => {
|
|
377
|
+
return {
|
|
378
|
+
action,
|
|
379
|
+
attributes,
|
|
380
|
+
source: 'p2p',
|
|
381
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* Indicates that we received a remote command to mute.
|
|
386
|
+
*/
|
|
387
|
+
export const createRemotelyMutedEvent = (mediaType) => {
|
|
388
|
+
return {
|
|
389
|
+
action: 'remotely.muted',
|
|
390
|
+
mediaType,
|
|
391
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* Creates an event which contains RTP statistics such as RTT and packet loss.
|
|
396
|
+
*
|
|
397
|
+
* All average RTP stats are currently reported under 1 event name, but with
|
|
398
|
+
* different properties that allows to distinguish between a P2P call, a
|
|
399
|
+
* call relayed through TURN or the JVB, and multiparty vs 1:1.
|
|
400
|
+
*
|
|
401
|
+
* The structure of the event is:
|
|
402
|
+
*
|
|
403
|
+
* {
|
|
404
|
+
* p2p: true,
|
|
405
|
+
* conferenceSize: 2,
|
|
406
|
+
* localCandidateType: "relay",
|
|
407
|
+
* remoteCandidateType: "relay",
|
|
408
|
+
* transportType: "udp",
|
|
409
|
+
*
|
|
410
|
+
* // Average RTT of 200ms
|
|
411
|
+
* "rtt.avg": 200,
|
|
412
|
+
* "rtt.samples": "[100, 200, 300]",
|
|
413
|
+
*
|
|
414
|
+
* // Average packet loss of 10%
|
|
415
|
+
* "packet.loss.avg": 10,
|
|
416
|
+
* "packet.loss.samples": '[5, 10, 15]'
|
|
417
|
+
*
|
|
418
|
+
* // Difference in milliseconds in the end-to-end RTT between p2p and jvb.
|
|
419
|
+
* // The e2e RTT through jvb is 15ms shorter:
|
|
420
|
+
* "rtt.diff": 15,
|
|
421
|
+
*
|
|
422
|
+
* // End-to-end RTT through JVB is ms.
|
|
423
|
+
* "end2end.rtt.avg" = 100
|
|
424
|
+
* }
|
|
425
|
+
*
|
|
426
|
+
* Note that the value of the "samples" properties are (JSON encoded) strings,
|
|
427
|
+
* and not JSON arrays, as events' attributes can not be nested. The samples are
|
|
428
|
+
* currently included for debug purposes only and can be removed anytime soon
|
|
429
|
+
* from the structure.
|
|
430
|
+
*
|
|
431
|
+
* Also note that not all of values are present in each event, as values are
|
|
432
|
+
* obtained and calculated as part of different process/event pipe. For example
|
|
433
|
+
* {@link ConnectionAvgStats} instances are doing the reports for each
|
|
434
|
+
* {@link TraceablePeerConnection} and work independently from the main stats
|
|
435
|
+
* pipe.
|
|
436
|
+
*/
|
|
437
|
+
export const createRtpStatsEvent = (attributes) => {
|
|
438
|
+
return {
|
|
439
|
+
action: 'rtp.stats',
|
|
440
|
+
attributes,
|
|
441
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* Creates an event which contains the round trip time (RTT) to a set of
|
|
446
|
+
* regions.
|
|
447
|
+
*
|
|
448
|
+
* @param attributes
|
|
449
|
+
*/
|
|
450
|
+
export const createRttByRegionEvent = (attributes) => {
|
|
451
|
+
return {
|
|
452
|
+
action: 'rtt.by.region',
|
|
453
|
+
attributes,
|
|
454
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
/**
|
|
458
|
+
* Creates an event which contains the local and remote ICE candidate types
|
|
459
|
+
* for the transport that is currently selected.
|
|
460
|
+
*
|
|
461
|
+
* @param attributes
|
|
462
|
+
*/
|
|
463
|
+
export const createTransportStatsEvent = (attributes) => {
|
|
464
|
+
return {
|
|
465
|
+
action: 'transport.stats',
|
|
466
|
+
attributes,
|
|
467
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* Creates an event which contains information about the audio output problem (the user id of the affected participant,
|
|
472
|
+
* the local audio levels and the remote audio levels that triggered the event).
|
|
473
|
+
*
|
|
474
|
+
* @param userID - The user id of the affected participant.
|
|
475
|
+
* @param localAudioLevels - The local audio levels.
|
|
476
|
+
* @param remoteAudioLevels - The audio levels received from the participant.
|
|
477
|
+
*/
|
|
478
|
+
export const createAudioOutputProblemEvent = (userID, localAudioLevels, remoteAudioLevels) => {
|
|
479
|
+
return {
|
|
480
|
+
action: 'audio.output.problem',
|
|
481
|
+
attributes: {
|
|
482
|
+
localAudioLevels,
|
|
483
|
+
remoteAudioLevels,
|
|
484
|
+
userID
|
|
485
|
+
},
|
|
486
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* Creates an event which contains an information related to the bridge channel close event.
|
|
491
|
+
*
|
|
492
|
+
* @param code - A code from {@link https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent}
|
|
493
|
+
* @param reason - A string which describes the reason for closing the bridge channel.
|
|
494
|
+
*/
|
|
495
|
+
export const createBridgeChannelClosedEvent = (code, reason) => {
|
|
496
|
+
return {
|
|
497
|
+
action: 'bridge-channel.error',
|
|
498
|
+
attributes: {
|
|
499
|
+
code,
|
|
500
|
+
reason
|
|
501
|
+
},
|
|
502
|
+
type: AnalyticsEvents.TYPE_OPERATIONAL
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
/**
|
|
506
|
+
* Creates an event which indicates the Time To First Media (TTFM).
|
|
507
|
+
* It is measured in milliseconds relative to the beginning of the document's
|
|
508
|
+
* lifetime (i.e. the origin used by window.performance.now()), and it excludes
|
|
509
|
+
* the following:
|
|
510
|
+
* 1. The delay due to getUserMedia()
|
|
511
|
+
* 2. The period between the MUC being joined and the reception of the Jingle
|
|
512
|
+
* session-initiate from jicofo. This is because jicofo will not start a Jingle
|
|
513
|
+
* session until there are at least 2 participants in the room.
|
|
514
|
+
*
|
|
515
|
+
* @param attributes the attributes to add to the event. Currently used fields:
|
|
516
|
+
* mediaType: the media type of the local track ('audio' or 'video').
|
|
517
|
+
* muted: whether the track has ever been muted (?)
|
|
518
|
+
* value: the TTMF in milliseconds.
|
|
519
|
+
*/
|
|
520
|
+
export const createTtfmEvent = (attributes) => createConnectionStageReachedEvent('ttfm', attributes);
|
|
521
|
+
//# sourceMappingURL=AnalyticsEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnalyticsEvents.js","sourceRoot":"","sources":["../../../../service/statistics/AnalyticsEvents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,MAAM,CAAN,IAAY,eAiMX;AAjMD,WAAY,eAAe;IAEvB;;;OAGG;IACH,oDAAiC,CAAA;IAEjC;;;OAGG;IACH,sEAAmD,CAAA;IAEnD;;;OAGG;IACH,0EAAuD,CAAA;IAEvD;;;;OAIG;IACH,wEAAqD,CAAA;IAErD;;;OAGG;IACH,wDAAqC,CAAA;IAErC;;OAEG;IACH,2DAAwC,CAAA;IAExC;;;OAGG;IACH,kDAA+B,CAAA;IAE/B;;;OAGG;IACH,yDAAsC,CAAA;IAEtC;;OAEG;IACH,+CAA4B,CAAA;IAE5B;;;OAGG;IACH,6DAA0C,CAAA;IAE1C;;;;;;;;;;;;;;;;;;;OAmBG;IACH,wDAAqC,CAAA;IAErC;;;;;;;;;OASG;IACH,sEAAmD,CAAA;IAEnD;;;;;;OAMG;IACH,wCAAqB,CAAA;IAErB;;;;;;;;;;;;;OAaG;IACH,gDAA6B,CAAA;IAE7B;;;;;;;;OAQG;IACH,sFAAmE,CAAA;IA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notifies about audio level in RTP statistics by SSRC.
|
|
5
|
+
*
|
|
6
|
+
* @param ssrc - The synchronization source identifier (SSRC) of the
|
|
7
|
+
* endpoint/participant whose audio level is being reported.
|
|
8
|
+
* @param {number} audioLevel - The audio level of <tt>ssrc</tt> according to
|
|
9
|
+
* RTP statistics.
|
|
10
|
+
* @param {boolean} isLocal - <tt>true</tt> if <tt>ssrc</tt> identifies the
|
|
11
|
+
* local endpoint/participant; otherwise, <tt>false</tt>.
|
|
12
|
+
*/
|
|
13
|
+
StatisticsEvents["AUDIO_LEVEL"] = "statistics.audioLevel";
|
|
14
|
+
/**
|
|
15
|
+
* An event fired just before the statistics module gets disposes and it's
|
|
16
|
+
* the last chance to submit logs.
|
|
17
|
+
*/
|
|
18
|
+
StatisticsEvents["BEFORE_DISPOSED"] = "statistics.before_disposed";
|
|
19
|
+
/**
|
|
20
|
+
* An event carrying all statistics by ssrc.
|
|
21
|
+
*/
|
|
22
|
+
StatisticsEvents["BYTE_SENT_STATS"] = "statistics.byte_sent_stats";
|
|
23
|
+
/**
|
|
24
|
+
* An event carrying connection statistics.
|
|
25
|
+
*
|
|
26
|
+
* @param {object} connectionStats - The connection statistics carried by the
|
|
27
|
+
* event such as <tt>bandwidth</tt>, <tt>bitrate</tt>, <tt>packetLoss</tt>,
|
|
28
|
+
* <tt>resolution</tt>, and <tt>transport</tt>.
|
|
29
|
+
*/
|
|
30
|
+
StatisticsEvents["CONNECTION_STATS"] = "statistics.connectionstats";
|
|
31
|
+
/**
|
|
32
|
+
* An event carrying the encode time stats for all the local video sources.
|
|
33
|
+
*/
|
|
34
|
+
StatisticsEvents["ENCODE_TIME_STATS"] = "statistics.encode_time_stats";
|
|
35
|
+
})(StatisticsEvents || (StatisticsEvents = {}));
|
|
36
|
+
//# sourceMappingURL=Events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Events.js","sourceRoot":"","sources":["../../../../service/statistics/Events.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAsCX;AAtCD,WAAY,gBAAgB;IAExB;;;;;;;;;OASG;IACH,yDAAqC,CAAA;IAErC;;;OAGG;IACH,kEAA8C,CAAA;IAE9C;;OAEG;IACH,kEAA8C,CAAA;IAE9C;;;;;;OAMG;IACH,mEAA+C,CAAA;IAE/C;;OAEG;IACH,sEAAkD,CAAA;AACtD,CAAC,EAtCW,gBAAgB,KAAhB,gBAAgB,QAsC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../service/statistics/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC"}
|