@webex/plugin-meetings 2.59.7 → 2.59.8-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/browser-detection.js +2 -2
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +2 -2
- package/dist/common/collection.js.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +0 -2
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +2 -2
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/locus-info/controlsUtils.js +6 -6
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +18 -18
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/parser.js +2 -2
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/meeting/index.js +28 -51
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +2 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +4 -4
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +2 -2
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meetings/collection.js +2 -2
- package/dist/meetings/collection.js.map +1 -1
- package/dist/members/index.js +2 -2
- package/dist/members/index.js.map +1 -1
- package/dist/metrics/constants.js +0 -2
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +2 -2
- package/dist/metrics/index.js.map +1 -1
- package/dist/reachability/index.js +9 -2
- package/dist/reachability/index.js.map +1 -1
- package/dist/roap/index.js +12 -13
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +44 -130
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/statsAnalyzer/global.js +12 -4
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.js +14 -56
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +15 -15
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/package.json +22 -21
- package/src/config.ts +2 -2
- package/src/constants.ts +0 -2
- package/src/meeting/index.ts +0 -35
- package/src/metrics/constants.ts +0 -2
- package/src/roap/index.ts +10 -14
- package/src/roap/turnDiscovery.ts +20 -48
- package/src/statsAnalyzer/global.ts +10 -2
- package/src/statsAnalyzer/index.ts +17 -80
- package/test/unit/spec/meeting/index.js +6 -77
- package/test/unit/spec/roap/index.ts +80 -84
- package/test/unit/spec/roap/turnDiscovery.ts +0 -21
- package/test/unit/spec/stats-analyzer/index.js +0 -151
- package/dist/common/browser-detection.d.ts +0 -9
- package/dist/common/collection.d.ts +0 -48
- package/dist/common/config.d.ts +0 -2
- package/dist/common/errors/captcha-error.d.ts +0 -15
- package/dist/common/errors/intent-to-join.d.ts +0 -16
- package/dist/common/errors/join-meeting.d.ts +0 -17
- package/dist/common/errors/media.d.ts +0 -15
- package/dist/common/errors/parameter.d.ts +0 -15
- package/dist/common/errors/password-error.d.ts +0 -15
- package/dist/common/errors/permission.d.ts +0 -14
- package/dist/common/errors/reconnection-in-progress.d.ts +0 -9
- package/dist/common/errors/reconnection.d.ts +0 -15
- package/dist/common/errors/stats.d.ts +0 -15
- package/dist/common/errors/webex-errors.d.ts +0 -81
- package/dist/common/errors/webex-meetings-error.d.ts +0 -20
- package/dist/common/events/events-scope.d.ts +0 -17
- package/dist/common/events/events.d.ts +0 -12
- package/dist/common/events/trigger-proxy.d.ts +0 -2
- package/dist/common/events/util.d.ts +0 -2
- package/dist/common/logs/logger-config.d.ts +0 -2
- package/dist/common/logs/logger-proxy.d.ts +0 -2
- package/dist/common/logs/request.d.ts +0 -34
- package/dist/common/queue.d.ts +0 -32
- package/dist/config.d.ts +0 -73
- package/dist/constants.d.ts +0 -926
- package/dist/controls-options-manager/constants.d.ts +0 -4
- package/dist/controls-options-manager/enums.d.ts +0 -5
- package/dist/controls-options-manager/index.d.ts +0 -120
- package/dist/controls-options-manager/util.d.ts +0 -7
- package/dist/index.d.ts +0 -4
- package/dist/locus-info/controlsUtils.d.ts +0 -2
- package/dist/locus-info/embeddedAppsUtils.d.ts +0 -2
- package/dist/locus-info/fullState.d.ts +0 -2
- package/dist/locus-info/hostUtils.d.ts +0 -2
- package/dist/locus-info/index.d.ts +0 -269
- package/dist/locus-info/infoUtils.d.ts +0 -2
- package/dist/locus-info/mediaSharesUtils.d.ts +0 -2
- package/dist/locus-info/parser.d.ts +0 -212
- package/dist/locus-info/selfUtils.d.ts +0 -2
- package/dist/media/index.d.ts +0 -32
- package/dist/media/properties.d.ts +0 -108
- package/dist/media/util.d.ts +0 -2
- package/dist/mediaQualityMetrics/config.d.ts +0 -233
- package/dist/meeting/effectsState.d.ts +0 -42
- package/dist/meeting/in-meeting-actions.d.ts +0 -79
- package/dist/meeting/index.d.ts +0 -1622
- package/dist/meeting/muteState.d.ts +0 -116
- package/dist/meeting/request.d.ts +0 -255
- package/dist/meeting/state.d.ts +0 -9
- package/dist/meeting/util.d.ts +0 -2
- package/dist/meeting-info/collection.d.ts +0 -20
- package/dist/meeting-info/index.d.ts +0 -57
- package/dist/meeting-info/meeting-info-v2.d.ts +0 -93
- package/dist/meeting-info/request.d.ts +0 -22
- package/dist/meeting-info/util.d.ts +0 -2
- package/dist/meeting-info/utilv2.d.ts +0 -2
- package/dist/meetings/collection.d.ts +0 -23
- package/dist/meetings/index.d.ts +0 -296
- package/dist/meetings/request.d.ts +0 -27
- package/dist/meetings/util.d.ts +0 -18
- package/dist/member/index.d.ts +0 -147
- package/dist/member/member.types.d.ts +0 -11
- package/dist/member/util.d.ts +0 -2
- package/dist/members/collection.d.ts +0 -24
- package/dist/members/index.d.ts +0 -298
- package/dist/members/request.d.ts +0 -50
- package/dist/members/util.d.ts +0 -2
- package/dist/metrics/config.d.ts +0 -169
- package/dist/metrics/constants.d.ts +0 -59
- package/dist/metrics/index.d.ts +0 -152
- package/dist/networkQualityMonitor/index.d.ts +0 -70
- package/dist/peer-connection-manager/index.d.ts +0 -6
- package/dist/peer-connection-manager/util.d.ts +0 -6
- package/dist/personal-meeting-room/index.d.ts +0 -47
- package/dist/personal-meeting-room/request.d.ts +0 -14
- package/dist/personal-meeting-room/util.d.ts +0 -2
- package/dist/reachability/index.d.ts +0 -139
- package/dist/reachability/request.d.ts +0 -35
- package/dist/reactions/reactions.d.ts +0 -4
- package/dist/reactions/reactions.type.d.ts +0 -32
- package/dist/reconnection-manager/index.d.ts +0 -112
- package/dist/recording-controller/enums.d.ts +0 -7
- package/dist/recording-controller/index.d.ts +0 -193
- package/dist/recording-controller/util.d.ts +0 -13
- package/dist/roap/collection.d.ts +0 -10
- package/dist/roap/handler.d.ts +0 -47
- package/dist/roap/index.d.ts +0 -116
- package/dist/roap/request.d.ts +0 -35
- package/dist/roap/state.d.ts +0 -9
- package/dist/roap/turnDiscovery.d.ts +0 -81
- package/dist/roap/util.d.ts +0 -2
- package/dist/statsAnalyzer/global.d.ts +0 -118
- package/dist/statsAnalyzer/index.d.ts +0 -193
- package/dist/statsAnalyzer/mqaUtil.d.ts +0 -22
- package/dist/transcription/index.d.ts +0 -64
package/dist/metrics/index.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Metrics handles all the call metrics events
|
|
3
|
-
* @export
|
|
4
|
-
* @class Metrics
|
|
5
|
-
*/
|
|
6
|
-
declare class Metrics {
|
|
7
|
-
static instance: Metrics;
|
|
8
|
-
_events: any;
|
|
9
|
-
keys: any;
|
|
10
|
-
meetingCollection: any;
|
|
11
|
-
webex: any;
|
|
12
|
-
/**
|
|
13
|
-
* Create Metrics Object
|
|
14
|
-
* @constructor
|
|
15
|
-
* @public
|
|
16
|
-
* @memberof Meetings
|
|
17
|
-
*/
|
|
18
|
-
constructor();
|
|
19
|
-
/**
|
|
20
|
-
* Initializes the Metrics singleton with a meeting Collection.
|
|
21
|
-
*
|
|
22
|
-
* @param {Object} meetingCollection meetings object
|
|
23
|
-
* @param {Object} webex webex SDK object
|
|
24
|
-
*
|
|
25
|
-
* @returns {void}
|
|
26
|
-
*/
|
|
27
|
-
initialSetup(meetingCollection: object, webex: object): void;
|
|
28
|
-
/**
|
|
29
|
-
* poste Meeting event metrics
|
|
30
|
-
* @param {object} options {meetingId/meeting} as a json object
|
|
31
|
-
* @param {Meeting} options.meeting Meeting object
|
|
32
|
-
* @param {String} options.meetingId
|
|
33
|
-
* @param {object} options.data
|
|
34
|
-
* @param {object} options.event
|
|
35
|
-
* @returns {object} null
|
|
36
|
-
*/
|
|
37
|
-
postEvent(options: {
|
|
38
|
-
meeting?: any;
|
|
39
|
-
meetingId?: string;
|
|
40
|
-
data?: object;
|
|
41
|
-
event?: any;
|
|
42
|
-
} | any): void;
|
|
43
|
-
/**
|
|
44
|
-
* Docs for Call analyzer metrics
|
|
45
|
-
* https://sqbu-github.cisco.com/WebExSquared/call-analyzer/wiki
|
|
46
|
-
* https://sqbu-github.cisco.com/WebExSquared/event-dictionary/blob/master/diagnostic-events.raml
|
|
47
|
-
*/
|
|
48
|
-
initPayload(eventType: any, identifiers: any, options: any): any;
|
|
49
|
-
/**
|
|
50
|
-
* get the payload specific for a media quality event through call analyzer
|
|
51
|
-
* @param {String} eventType the event name
|
|
52
|
-
* @param {Object} identifiers contains the identifiers needed for CA
|
|
53
|
-
* @param {String} identifiers.correlationId
|
|
54
|
-
* @param {String} identifiers.locusUrl
|
|
55
|
-
* @param {String} identifiers.locusId
|
|
56
|
-
* @param {Object} options
|
|
57
|
-
* @param {Object} options.intervalData
|
|
58
|
-
* @param {String} options.clientType
|
|
59
|
-
* @returns {Object}
|
|
60
|
-
* @public
|
|
61
|
-
* @memberof Metrics
|
|
62
|
-
*/
|
|
63
|
-
initMediaPayload(eventType: string, identifiers: {
|
|
64
|
-
correlationId: string;
|
|
65
|
-
locusUrl: string;
|
|
66
|
-
locusId: string;
|
|
67
|
-
}, options?: {
|
|
68
|
-
intervalData: object;
|
|
69
|
-
clientType: string;
|
|
70
|
-
} | any): {
|
|
71
|
-
eventId: any;
|
|
72
|
-
version: number;
|
|
73
|
-
origin: {
|
|
74
|
-
audioSetupDelay: any;
|
|
75
|
-
videoSetupDelay: any;
|
|
76
|
-
name: string;
|
|
77
|
-
networkType: any;
|
|
78
|
-
userAgent: string;
|
|
79
|
-
clientInfo: {
|
|
80
|
-
clientType: any;
|
|
81
|
-
clientVersion: string;
|
|
82
|
-
localNetworkPrefix: string;
|
|
83
|
-
os: any;
|
|
84
|
-
osVersion: any;
|
|
85
|
-
subClientType: any;
|
|
86
|
-
browser: any;
|
|
87
|
-
browserVersion: any;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
originTime: {
|
|
91
|
-
triggered: string;
|
|
92
|
-
};
|
|
93
|
-
senderCountryCode: any;
|
|
94
|
-
event: {
|
|
95
|
-
name: string;
|
|
96
|
-
canProceed: boolean;
|
|
97
|
-
identifiers: {
|
|
98
|
-
correlationId: string;
|
|
99
|
-
locusUrl: string;
|
|
100
|
-
locusId: string;
|
|
101
|
-
};
|
|
102
|
-
intervals: any[];
|
|
103
|
-
joinTimes: any;
|
|
104
|
-
eventData: {
|
|
105
|
-
webClientDomain: any;
|
|
106
|
-
};
|
|
107
|
-
sourceMetadata: {
|
|
108
|
-
applicationSoftwareType: string;
|
|
109
|
-
applicationSoftwareVersion: any;
|
|
110
|
-
mediaEngineSoftwareType: any;
|
|
111
|
-
mediaEngineSoftwareVersion: any;
|
|
112
|
-
startTime: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* This function Parses a Locus error and returns a diagnostic event payload.
|
|
118
|
-
* It should keep updating from:
|
|
119
|
-
* https://sqbu-github.cisco.com/WebExSquared/spark-client-framework/blob/master/spark-client-framework/Adapters/TelephonyAdapter/TelephonyAdapter.cpp#L920
|
|
120
|
-
*
|
|
121
|
-
* @param {Object} err the error Object from Locus response
|
|
122
|
-
* @param {boolean} showToUser true if a toast is shown to user
|
|
123
|
-
* @returns {{showToUser: boolean, category: string, errorDescription: string,
|
|
124
|
-
* errorCode: number, errorData: *, fatal: boolean, name: string}}
|
|
125
|
-
*/
|
|
126
|
-
parseLocusError(err: any, showToUser: boolean): any;
|
|
127
|
-
generateErrorPayload(errorCode: any, shownToUser: any, name: any, err: any): any;
|
|
128
|
-
/**
|
|
129
|
-
* Returns a formated string of the user agent.
|
|
130
|
-
*
|
|
131
|
-
* @returns {string} formatted user agent information
|
|
132
|
-
*/
|
|
133
|
-
userAgentToString(): string;
|
|
134
|
-
/**
|
|
135
|
-
* Uploads given metric to the Metrics service as an Behavioral metric.
|
|
136
|
-
* Metadata about the environment such as browser, OS, SDK and their versions
|
|
137
|
-
* are automatically added when the metric is sent.
|
|
138
|
-
*
|
|
139
|
-
* The Metrics service will send an Behavioral metric to InfluxDB for
|
|
140
|
-
* aggregation.
|
|
141
|
-
* See https://confluence-eng-gpk2.cisco.com/conf/display/WBXT/Getting+started+with+Metrics+Service.
|
|
142
|
-
*
|
|
143
|
-
* @param {string} metricName Name of the metric (measurement) to send
|
|
144
|
-
* @param {Object} metricFields Key-valye pairs of data or values about this metric
|
|
145
|
-
* @param {Object} metricTags Key-value pairs of metric metadata
|
|
146
|
-
*
|
|
147
|
-
* @returns {void}
|
|
148
|
-
*/
|
|
149
|
-
sendBehavioralMetric(metricName: string, metricFields?: object, metricTags?: object): void;
|
|
150
|
-
}
|
|
151
|
-
declare const instance: Metrics;
|
|
152
|
-
export default instance;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import EventsScope from '../common/events/events-scope';
|
|
2
|
-
/**
|
|
3
|
-
* Meeting - network quality event
|
|
4
|
-
* Emitted on each interval of retrieving stats Analyzer data
|
|
5
|
-
* @event network:quality
|
|
6
|
-
* @type {Object}
|
|
7
|
-
* @property {string} mediaType {video|audio}
|
|
8
|
-
* @property {number} networkQualityScore - value determined in determineUplinkNetworkQuality
|
|
9
|
-
* @memberof NetworkQualityMonitor
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* NetworkQualityMonitor class that will emit events based on detected quality
|
|
13
|
-
*
|
|
14
|
-
* @class NetworkQualityMonitor
|
|
15
|
-
* @extends {EventsScope}
|
|
16
|
-
*/
|
|
17
|
-
export default class NetworkQualityMonitor extends EventsScope {
|
|
18
|
-
config: any;
|
|
19
|
-
frequencyTypes: any;
|
|
20
|
-
indicatorTypes: any;
|
|
21
|
-
mediaType: any;
|
|
22
|
-
networkQualityScore: any;
|
|
23
|
-
networkQualityStatus: any;
|
|
24
|
-
/**
|
|
25
|
-
* Creates a new instance of NetworkQualityMonitor
|
|
26
|
-
* @constructor
|
|
27
|
-
* @public
|
|
28
|
-
* @param {Object} config
|
|
29
|
-
* @property {Object} indicatorTypes - network properties used to evaluate network quality used as constants
|
|
30
|
-
* @property {Object} frequencyTypes - frequency properties used as constants {uplink|send} {downlink|receive}
|
|
31
|
-
* @property {number} networkQualityScore - 0|1 1 is acceptable 0 is bad/unknown
|
|
32
|
-
* @property {Object} networkQualityStatus - hash object based on indicatorTypes and frequencyTypes
|
|
33
|
-
* @property {string} mediaType - audio|video
|
|
34
|
-
*/
|
|
35
|
-
constructor(config: any);
|
|
36
|
-
/**
|
|
37
|
-
* emits NETWORK_QUALITY event on meeting with payload of media type and uplinkNetworkQuality score
|
|
38
|
-
*
|
|
39
|
-
* @memberof NetworkQualityMonitor
|
|
40
|
-
* @returns {void}
|
|
41
|
-
*/
|
|
42
|
-
emitNetworkQuality(): void;
|
|
43
|
-
/**
|
|
44
|
-
* invokes emitNetworkQuality method resets values back to default
|
|
45
|
-
* @returns {void}
|
|
46
|
-
* @memberof NetworkQualityMonitor
|
|
47
|
-
*/
|
|
48
|
-
updateNetworkQualityStatus(): void;
|
|
49
|
-
/**
|
|
50
|
-
* filter data to determine uplink network quality, invoked on same interval as stats analyzer remote-inbout-rtp
|
|
51
|
-
* @param {Object} configObj
|
|
52
|
-
* @param {string} configObj.mediaType {audio|video}
|
|
53
|
-
* @param {RTCStats} configObj.remoteRtpResults RTC stats remote obj
|
|
54
|
-
* @param {Object} configObj.statsAnalyzerCurrentStats statsResults
|
|
55
|
-
* @returns {void}
|
|
56
|
-
* @public
|
|
57
|
-
* @memberof NetworkQualityMonitor
|
|
58
|
-
*/
|
|
59
|
-
determineUplinkNetworkQuality({ mediaType, remoteRtpResults, statsAnalyzerCurrentStats, }: {
|
|
60
|
-
mediaType: string;
|
|
61
|
-
remoteRtpResults: any;
|
|
62
|
-
statsAnalyzerCurrentStats: object;
|
|
63
|
-
}): void;
|
|
64
|
-
/**
|
|
65
|
-
* Get the current status of network quaility object - networkQualityStatus
|
|
66
|
-
* @returns {Object}
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
get networkQualityStats(): any;
|
|
70
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { StatelessWebexPlugin } from '@webex/webex-core';
|
|
2
|
-
/**
|
|
3
|
-
* @class PersonalMeetingRoom
|
|
4
|
-
*/
|
|
5
|
-
export default class PersonalMeetingRoom extends StatelessWebexPlugin {
|
|
6
|
-
link: any;
|
|
7
|
-
meetingInfo: any;
|
|
8
|
-
name: any;
|
|
9
|
-
personalMeetingRoomRequest: any;
|
|
10
|
-
pmr: any;
|
|
11
|
-
sipUri: any;
|
|
12
|
-
userId: any;
|
|
13
|
-
meetingLink: any;
|
|
14
|
-
number: any;
|
|
15
|
-
namespace: string;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param {Object} attrs
|
|
19
|
-
* @param {Object} options
|
|
20
|
-
*/
|
|
21
|
-
constructor(attrs: any, options: any);
|
|
22
|
-
/**
|
|
23
|
-
* claims a pmr and updates the cached PMR values
|
|
24
|
-
* @param {String} link
|
|
25
|
-
* @param {String} pin
|
|
26
|
-
* @param {Boolean} [preferred] defaults to true to set this claimed PMR as the preferred
|
|
27
|
-
* @returns {Promise}
|
|
28
|
-
* @public
|
|
29
|
-
* @memberof PersonalMeetingRoom
|
|
30
|
-
*/
|
|
31
|
-
claim(link: string, pin: string, preferred?: boolean): any;
|
|
32
|
-
/**
|
|
33
|
-
* @param {Object} body the response body from meeting info request
|
|
34
|
-
* @returns {undefined}
|
|
35
|
-
* @private
|
|
36
|
-
* @memberof PersonalMeetingRoom
|
|
37
|
-
*/
|
|
38
|
-
private set;
|
|
39
|
-
/**
|
|
40
|
-
* TODO: implement TTL for syncing and caching so to not request again and again
|
|
41
|
-
* @param {Object} options
|
|
42
|
-
* @returns {Promise}
|
|
43
|
-
* @public
|
|
44
|
-
* @memberof PersonalMeetingRoom
|
|
45
|
-
*/
|
|
46
|
-
get(): any;
|
|
47
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StatelessWebexPlugin } from '@webex/webex-core';
|
|
2
|
-
/**
|
|
3
|
-
* @class MeetingInfoRequest
|
|
4
|
-
*/
|
|
5
|
-
export default class PersonalMeetingRoomRequest extends StatelessWebexPlugin {
|
|
6
|
-
namespace: string;
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @param {Object} options with format of {userId, passcode, meetingAddress, preferred}
|
|
10
|
-
* @returns {Promise} returns a promise that resolves/rejects the result of the request
|
|
11
|
-
* @memberof PersonalMeetingRoomRequest
|
|
12
|
-
*/
|
|
13
|
-
claimPmr(options: any): any;
|
|
14
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @class Reachability
|
|
6
|
-
* @export
|
|
7
|
-
*/
|
|
8
|
-
export default class Reachability {
|
|
9
|
-
webex: object;
|
|
10
|
-
reachabilityRequest: any;
|
|
11
|
-
clusterLatencyResults: any;
|
|
12
|
-
/**
|
|
13
|
-
* Creates an instance of Reachability.
|
|
14
|
-
* @param {object} webex
|
|
15
|
-
* @memberof Reachability
|
|
16
|
-
*/
|
|
17
|
-
constructor(webex: object);
|
|
18
|
-
/**
|
|
19
|
-
* fetches reachability data
|
|
20
|
-
* @returns {Object} reachability data
|
|
21
|
-
* @public
|
|
22
|
-
* @async
|
|
23
|
-
* @memberof Reachability
|
|
24
|
-
*/
|
|
25
|
-
gatherReachability(): Promise<unknown>;
|
|
26
|
-
/**
|
|
27
|
-
* fetches reachability data and checks for cluster reachability
|
|
28
|
-
* @returns {boolean}
|
|
29
|
-
* @public
|
|
30
|
-
* @memberof Reachability
|
|
31
|
-
*/
|
|
32
|
-
isAnyClusterReachable(): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Generate peerConnection config settings
|
|
35
|
-
* @param {object} cluster
|
|
36
|
-
* @returns {object} peerConnectionConfig
|
|
37
|
-
* @private
|
|
38
|
-
* @memberof Reachability
|
|
39
|
-
*/
|
|
40
|
-
private buildPeerConnectionConfig;
|
|
41
|
-
/**
|
|
42
|
-
* Creates an RTCPeerConnection
|
|
43
|
-
* @param {object} cluster
|
|
44
|
-
* @returns {RTCPeerConnection} peerConnection
|
|
45
|
-
* @private
|
|
46
|
-
* @memberof Reachability
|
|
47
|
-
*/
|
|
48
|
-
private createPeerConnection;
|
|
49
|
-
/**
|
|
50
|
-
* Gets total elapsed time
|
|
51
|
-
* @param {RTCPeerConnection} peerConnection
|
|
52
|
-
* @returns {Number} Milliseconds
|
|
53
|
-
* @private
|
|
54
|
-
* @memberof Reachability
|
|
55
|
-
*/
|
|
56
|
-
private getElapsedTime;
|
|
57
|
-
/**
|
|
58
|
-
* creates offer and generates localSDP
|
|
59
|
-
* @param {object} clusterList cluster List
|
|
60
|
-
* @returns {Promise} Reachability latency results
|
|
61
|
-
* @private
|
|
62
|
-
* @memberof Reachability
|
|
63
|
-
*/
|
|
64
|
-
private getLocalSDPForClusters;
|
|
65
|
-
/**
|
|
66
|
-
* Get list of all unreachable clusters
|
|
67
|
-
* @returns {array} Unreachable clusters
|
|
68
|
-
* @private
|
|
69
|
-
* @memberof Reachability
|
|
70
|
-
*/
|
|
71
|
-
private getUnreachablClusters;
|
|
72
|
-
/**
|
|
73
|
-
* Attach an event handler for the icegatheringstatechange
|
|
74
|
-
* event and measure latency.
|
|
75
|
-
* @param {RTCPeerConnection} peerConnection
|
|
76
|
-
* @returns {undefined}
|
|
77
|
-
* @private
|
|
78
|
-
* @memberof Reachability
|
|
79
|
-
*/
|
|
80
|
-
private handleIceGatheringStateChange;
|
|
81
|
-
/**
|
|
82
|
-
* Attach an event handler for the icecandidate
|
|
83
|
-
* event and measure latency.
|
|
84
|
-
* @param {RTCPeerConnection} peerConnection
|
|
85
|
-
* @returns {undefined}
|
|
86
|
-
* @private
|
|
87
|
-
* @memberof Reachability
|
|
88
|
-
*/
|
|
89
|
-
private handleOnIceCandidate;
|
|
90
|
-
/**
|
|
91
|
-
* An event handler on an RTCPeerConnection when the state of the ICE
|
|
92
|
-
* candidate gathering process changes. Used to measure connection
|
|
93
|
-
* speed.
|
|
94
|
-
* @private
|
|
95
|
-
* @param {RTCPeerConnection} peerConnection
|
|
96
|
-
* @param {number} timeout
|
|
97
|
-
* @returns {Promise}
|
|
98
|
-
*/
|
|
99
|
-
private iceGatheringState;
|
|
100
|
-
/**
|
|
101
|
-
* Make a log of unreachable clusters.
|
|
102
|
-
* @returns {undefined}
|
|
103
|
-
* @private
|
|
104
|
-
* @memberof Reachability
|
|
105
|
-
*/
|
|
106
|
-
private logUnreachableClusters;
|
|
107
|
-
/**
|
|
108
|
-
* Calculates time to establish connection
|
|
109
|
-
* @param {array} iceResults iceResults
|
|
110
|
-
* @returns {object} reachabilityMap
|
|
111
|
-
* @private
|
|
112
|
-
* @memberof Reachability
|
|
113
|
-
*/
|
|
114
|
-
private parseIceResultsToReachabilityResults;
|
|
115
|
-
/**
|
|
116
|
-
* fetches reachability data
|
|
117
|
-
* @param {object} clusterList
|
|
118
|
-
* @returns {Promise<localSDPData>} reachability check results
|
|
119
|
-
* @private
|
|
120
|
-
* @memberof Reachability
|
|
121
|
-
*/
|
|
122
|
-
private performReachabilityCheck;
|
|
123
|
-
/**
|
|
124
|
-
* Records latency and closes the peerConnection
|
|
125
|
-
* @param {RTCPeerConnection} peerConnection
|
|
126
|
-
* @param {number} elapsed Latency in milliseconds
|
|
127
|
-
* @returns {undefined}
|
|
128
|
-
* @private
|
|
129
|
-
* @memberof Reachability
|
|
130
|
-
*/
|
|
131
|
-
private setLatencyAndClose;
|
|
132
|
-
/**
|
|
133
|
-
* utility function
|
|
134
|
-
* @returns {undefined}
|
|
135
|
-
* @private
|
|
136
|
-
* @memberof Reachability
|
|
137
|
-
*/
|
|
138
|
-
private setup;
|
|
139
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface ClusterNode {
|
|
2
|
-
isVideoMesh: boolean;
|
|
3
|
-
udp: Array<string>;
|
|
4
|
-
tcp: Array<string>;
|
|
5
|
-
xtls: Array<string>;
|
|
6
|
-
}
|
|
7
|
-
export type ClusterList = {
|
|
8
|
-
[key: string]: ClusterNode;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* @class ReachabilityRequest
|
|
12
|
-
*/
|
|
13
|
-
declare class ReachabilityRequest {
|
|
14
|
-
webex: any;
|
|
15
|
-
/**
|
|
16
|
-
* Creates an instance of ReachabilityRequest.
|
|
17
|
-
* @param {object} webex
|
|
18
|
-
* @memberof ReachabilityRequest
|
|
19
|
-
*/
|
|
20
|
-
constructor(webex: object);
|
|
21
|
-
/**
|
|
22
|
-
* gets the cluster information
|
|
23
|
-
*
|
|
24
|
-
* @param {boolean} includeVideoMesh whether to include the video mesh clusters in the result or not
|
|
25
|
-
* @returns {Promise}
|
|
26
|
-
*/
|
|
27
|
-
getClusters: () => Promise<ClusterList>;
|
|
28
|
-
/**
|
|
29
|
-
* gets remote SDP For Clusters
|
|
30
|
-
* @param {Object} localSDPList localSDPs for the cluster
|
|
31
|
-
* @returns {Object}
|
|
32
|
-
*/
|
|
33
|
-
remoteSDPForClusters: (localSDPList: object) => any;
|
|
34
|
-
}
|
|
35
|
-
export default ReachabilityRequest;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export type EmoticonData = {
|
|
2
|
-
type: string;
|
|
3
|
-
codepoints?: string;
|
|
4
|
-
shortcodes?: string;
|
|
5
|
-
};
|
|
6
|
-
export type SkinTone = EmoticonData;
|
|
7
|
-
export type Reaction = EmoticonData & {
|
|
8
|
-
tone?: SkinTone;
|
|
9
|
-
};
|
|
10
|
-
export declare enum ReactionType {
|
|
11
|
-
smile = "smile",
|
|
12
|
-
sad = "sad",
|
|
13
|
-
wow = "wow",
|
|
14
|
-
haha = "haha",
|
|
15
|
-
celebrate = "celebrate",
|
|
16
|
-
clap = "clap",
|
|
17
|
-
thumbs_up = "thumbs_up",
|
|
18
|
-
thumbs_down = "thumbs_down",
|
|
19
|
-
heart = "heart",
|
|
20
|
-
fire = "fire",
|
|
21
|
-
prayer = "prayer",
|
|
22
|
-
speed_up = "speed_up",
|
|
23
|
-
slow_down = "slow_down"
|
|
24
|
-
}
|
|
25
|
-
export declare enum SkinToneType {
|
|
26
|
-
normal = "normal",
|
|
27
|
-
light = "light",
|
|
28
|
-
medium_light = "medium_light",
|
|
29
|
-
medium = "medium",
|
|
30
|
-
medium_dark = "medium_dark",
|
|
31
|
-
dark = "dark"
|
|
32
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
|
-
*/
|
|
4
|
-
import Meeting from '../meeting';
|
|
5
|
-
/**
|
|
6
|
-
* @export
|
|
7
|
-
* @class ReconnectionManager
|
|
8
|
-
*/
|
|
9
|
-
export default class ReconnectionManager {
|
|
10
|
-
autoRejoinEnabled: any;
|
|
11
|
-
iceState: any;
|
|
12
|
-
maxRejoinAttempts: any;
|
|
13
|
-
meeting: any;
|
|
14
|
-
rejoinAttempts: any;
|
|
15
|
-
shareStatus: any;
|
|
16
|
-
status: any;
|
|
17
|
-
tryCount: any;
|
|
18
|
-
webex: any;
|
|
19
|
-
/**
|
|
20
|
-
* @param {Meeting} meeting
|
|
21
|
-
*/
|
|
22
|
-
constructor(meeting: Meeting);
|
|
23
|
-
/**
|
|
24
|
-
* Sets the iceState to connected and clears any disconnect timeouts and
|
|
25
|
-
* related timeout data within the iceState.
|
|
26
|
-
*
|
|
27
|
-
* @returns {undefined}
|
|
28
|
-
* @public
|
|
29
|
-
* @memberof ReconnectionManager
|
|
30
|
-
*/
|
|
31
|
-
iceReconnected(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Set the iceState to disconnected and generates a timeout that waits for the
|
|
34
|
-
* iceState to reconnect and then resolves. If the ice state is already
|
|
35
|
-
* processing a reconnect, it immediately resolves. Rejects if the timeout
|
|
36
|
-
* duration is reached.
|
|
37
|
-
*
|
|
38
|
-
* @returns {Promise<undefined>}
|
|
39
|
-
* @public
|
|
40
|
-
* @memberof ReconnectionManager
|
|
41
|
-
*/
|
|
42
|
-
waitForIceReconnect(): Promise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* @returns {undefined}
|
|
45
|
-
* @public
|
|
46
|
-
* @memberof ReconnectionManager
|
|
47
|
-
*/
|
|
48
|
-
reset(): void;
|
|
49
|
-
/**
|
|
50
|
-
* @returns {undefined}
|
|
51
|
-
* @public
|
|
52
|
-
* @memberof ReconnectionManager
|
|
53
|
-
*/
|
|
54
|
-
cleanUp(): void;
|
|
55
|
-
/**
|
|
56
|
-
* @returns {Boolean}
|
|
57
|
-
* @throws {ReconnectionError}
|
|
58
|
-
* @private
|
|
59
|
-
* @memberof ReconnectionManager
|
|
60
|
-
*/
|
|
61
|
-
private validate;
|
|
62
|
-
/**
|
|
63
|
-
* Initiates a media reconnect for the active meeting
|
|
64
|
-
* @param {Object} reconnectOptions
|
|
65
|
-
* @param {boolean} [reconnectOptions.networkDisconnect=false] indicates if a network disconnect event happened
|
|
66
|
-
* @param {boolean} [reconnectOptions.networkRetry=false] indicates if we are retrying the reconnect
|
|
67
|
-
* @returns {Promise}
|
|
68
|
-
* @public
|
|
69
|
-
* @memberof ReconnectionManager
|
|
70
|
-
*/
|
|
71
|
-
reconnect({ networkDisconnect, networkRetry, }?: {
|
|
72
|
-
networkDisconnect?: boolean;
|
|
73
|
-
networkRetry?: boolean;
|
|
74
|
-
}): any;
|
|
75
|
-
/**
|
|
76
|
-
* @param {Object} reconnectOptions
|
|
77
|
-
* @param {boolean} [reconnectOptions.networkDisconnect=false] indicates if a network disconnect event happened
|
|
78
|
-
* @returns {Promise}
|
|
79
|
-
* @throws {NeedsRetryError}
|
|
80
|
-
* @private
|
|
81
|
-
* @memberof ReconnectionManager
|
|
82
|
-
*/
|
|
83
|
-
private executeReconnection;
|
|
84
|
-
/**
|
|
85
|
-
* Rejoins a meeting after detecting the member was in a LEFT state
|
|
86
|
-
*
|
|
87
|
-
* @async
|
|
88
|
-
* @param {boolean} wasSharing
|
|
89
|
-
* @returns {Promise}
|
|
90
|
-
*/
|
|
91
|
-
rejoinMeeting(wasSharing?: boolean): Promise<void>;
|
|
92
|
-
/**
|
|
93
|
-
* @returns {Promise}
|
|
94
|
-
* @private
|
|
95
|
-
* @memberof ReconnectionManager
|
|
96
|
-
*/
|
|
97
|
-
reconnectMedia(): Promise<any>;
|
|
98
|
-
/**
|
|
99
|
-
* Attempt to Reconnect Mercury Websocket
|
|
100
|
-
* @returns {Promise}
|
|
101
|
-
* @private
|
|
102
|
-
* @memberof ReconnectionManager
|
|
103
|
-
*/
|
|
104
|
-
private reconnectMercuryWebSocket;
|
|
105
|
-
/**
|
|
106
|
-
* @param {Meeting} meeting
|
|
107
|
-
* @returns {undefined}
|
|
108
|
-
* @private
|
|
109
|
-
* @memberof ReconnectionManager
|
|
110
|
-
*/
|
|
111
|
-
private static setupPeerConnection;
|
|
112
|
-
}
|