@webex/plugin-meetings 3.2.0 → 3.3.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.
Files changed (162) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +1 -1
  3. package/dist/constants.js +2 -4
  4. package/dist/constants.js.map +1 -1
  5. package/dist/interpretation/index.js +1 -1
  6. package/dist/interpretation/siLanguage.js +1 -1
  7. package/dist/mediaQualityMetrics/config.js +10 -10
  8. package/dist/mediaQualityMetrics/config.js.map +1 -1
  9. package/dist/meeting/index.js +8 -21
  10. package/dist/meeting/index.js.map +1 -1
  11. package/dist/meetings/index.js +1 -6
  12. package/dist/meetings/index.js.map +1 -1
  13. package/dist/reachability/index.js +9 -82
  14. package/dist/reachability/index.js.map +1 -1
  15. package/dist/statsAnalyzer/index.js +2 -4
  16. package/dist/statsAnalyzer/index.js.map +1 -1
  17. package/dist/statsAnalyzer/mqaUtil.js +0 -14
  18. package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
  19. package/dist/types/constants.d.ts +1 -2
  20. package/dist/types/mediaQualityMetrics/config.d.ts +2 -8
  21. package/dist/types/meeting/index.d.ts +0 -8
  22. package/dist/types/reachability/index.d.ts +0 -11
  23. package/dist/webinar/index.js +1 -1
  24. package/package.json +21 -21
  25. package/src/constants.ts +1 -2
  26. package/src/mediaQualityMetrics/config.ts +7 -13
  27. package/src/meeting/index.ts +9 -23
  28. package/src/meetings/index.ts +2 -7
  29. package/src/reachability/index.ts +0 -57
  30. package/src/statsAnalyzer/index.ts +3 -6
  31. package/src/statsAnalyzer/mqaUtil.ts +0 -18
  32. package/test/unit/spec/meeting/index.js +8 -28
  33. package/test/unit/spec/meetings/index.js +15 -38
  34. package/test/unit/spec/reachability/index.ts +0 -266
  35. package/test/unit/spec/stats-analyzer/index.js +8 -89
  36. package/dist/annotation/annotation.types.d.ts +0 -42
  37. package/dist/annotation/constants.d.ts +0 -31
  38. package/dist/annotation/index.d.ts +0 -117
  39. package/dist/breakouts/breakout.d.ts +0 -8
  40. package/dist/breakouts/collection.d.ts +0 -5
  41. package/dist/breakouts/edit-lock-error.d.ts +0 -15
  42. package/dist/breakouts/events.d.ts +0 -8
  43. package/dist/breakouts/index.d.ts +0 -5
  44. package/dist/breakouts/request.d.ts +0 -22
  45. package/dist/breakouts/utils.d.ts +0 -15
  46. package/dist/common/browser-detection.d.ts +0 -9
  47. package/dist/common/collection.d.ts +0 -48
  48. package/dist/common/config.d.ts +0 -2
  49. package/dist/common/errors/captcha-error.d.ts +0 -15
  50. package/dist/common/errors/intent-to-join.d.ts +0 -16
  51. package/dist/common/errors/join-meeting.d.ts +0 -17
  52. package/dist/common/errors/media.d.ts +0 -15
  53. package/dist/common/errors/no-meeting-info.d.ts +0 -14
  54. package/dist/common/errors/parameter.d.ts +0 -15
  55. package/dist/common/errors/password-error.d.ts +0 -15
  56. package/dist/common/errors/permission.d.ts +0 -14
  57. package/dist/common/errors/reclaim-host-role-errors.d.ts +0 -60
  58. package/dist/common/errors/reconnection-in-progress.d.ts +0 -9
  59. package/dist/common/errors/reconnection-in-progress.js +0 -34
  60. package/dist/common/errors/reconnection-in-progress.js.map +0 -1
  61. package/dist/common/errors/reconnection.d.ts +0 -15
  62. package/dist/common/errors/stats.d.ts +0 -15
  63. package/dist/common/errors/webex-errors.d.ts +0 -93
  64. package/dist/common/errors/webex-meetings-error.d.ts +0 -20
  65. package/dist/common/events/events-scope.d.ts +0 -17
  66. package/dist/common/events/events.d.ts +0 -12
  67. package/dist/common/events/trigger-proxy.d.ts +0 -2
  68. package/dist/common/events/util.d.ts +0 -2
  69. package/dist/common/logs/logger-config.d.ts +0 -2
  70. package/dist/common/logs/logger-proxy.d.ts +0 -2
  71. package/dist/common/logs/request.d.ts +0 -36
  72. package/dist/common/queue.d.ts +0 -34
  73. package/dist/config.d.ts +0 -73
  74. package/dist/constants.d.ts +0 -1088
  75. package/dist/controls-options-manager/constants.d.ts +0 -4
  76. package/dist/controls-options-manager/enums.d.ts +0 -15
  77. package/dist/controls-options-manager/index.d.ts +0 -136
  78. package/dist/controls-options-manager/types.d.ts +0 -43
  79. package/dist/controls-options-manager/util.d.ts +0 -1
  80. package/dist/index.d.ts +0 -7
  81. package/dist/interceptors/index.d.ts +0 -2
  82. package/dist/interceptors/locusRetry.d.ts +0 -27
  83. package/dist/interpretation/collection.d.ts +0 -5
  84. package/dist/interpretation/index.d.ts +0 -5
  85. package/dist/interpretation/siLanguage.d.ts +0 -5
  86. package/dist/locus-info/controlsUtils.d.ts +0 -2
  87. package/dist/locus-info/embeddedAppsUtils.d.ts +0 -2
  88. package/dist/locus-info/fullState.d.ts +0 -2
  89. package/dist/locus-info/hostUtils.d.ts +0 -2
  90. package/dist/locus-info/index.d.ts +0 -322
  91. package/dist/locus-info/infoUtils.d.ts +0 -2
  92. package/dist/locus-info/mediaSharesUtils.d.ts +0 -2
  93. package/dist/locus-info/parser.d.ts +0 -272
  94. package/dist/locus-info/selfUtils.d.ts +0 -2
  95. package/dist/media/MediaConnectionAwaiter.d.ts +0 -61
  96. package/dist/media/index.d.ts +0 -34
  97. package/dist/media/properties.d.ts +0 -93
  98. package/dist/media/util.d.ts +0 -2
  99. package/dist/mediaQualityMetrics/config.d.ts +0 -241
  100. package/dist/meeting/in-meeting-actions.d.ts +0 -167
  101. package/dist/meeting/index.d.ts +0 -1825
  102. package/dist/meeting/locusMediaRequest.d.ts +0 -74
  103. package/dist/meeting/muteState.d.ts +0 -178
  104. package/dist/meeting/request.d.ts +0 -295
  105. package/dist/meeting/request.type.d.ts +0 -11
  106. package/dist/meeting/state.d.ts +0 -9
  107. package/dist/meeting/util.d.ts +0 -119
  108. package/dist/meeting/voicea-meeting.d.ts +0 -16
  109. package/dist/meeting-info/collection.d.ts +0 -20
  110. package/dist/meeting-info/index.d.ts +0 -69
  111. package/dist/meeting-info/meeting-info-v2.d.ts +0 -123
  112. package/dist/meeting-info/request.d.ts +0 -22
  113. package/dist/meeting-info/util.d.ts +0 -2
  114. package/dist/meeting-info/utilv2.d.ts +0 -2
  115. package/dist/meetings/collection.d.ts +0 -40
  116. package/dist/meetings/index.d.ts +0 -398
  117. package/dist/meetings/meetings.types.d.ts +0 -4
  118. package/dist/meetings/request.d.ts +0 -27
  119. package/dist/meetings/util.d.ts +0 -18
  120. package/dist/member/index.d.ts +0 -160
  121. package/dist/member/types.d.ts +0 -32
  122. package/dist/member/util.d.ts +0 -2
  123. package/dist/members/collection.d.ts +0 -29
  124. package/dist/members/index.d.ts +0 -353
  125. package/dist/members/request.d.ts +0 -114
  126. package/dist/members/types.d.ts +0 -25
  127. package/dist/members/util.d.ts +0 -215
  128. package/dist/metrics/constants.d.ts +0 -70
  129. package/dist/metrics/index.d.ts +0 -45
  130. package/dist/multistream/mediaRequestManager.d.ts +0 -119
  131. package/dist/multistream/receiveSlot.d.ts +0 -68
  132. package/dist/multistream/receiveSlotManager.d.ts +0 -56
  133. package/dist/multistream/remoteMedia.d.ts +0 -72
  134. package/dist/multistream/remoteMediaGroup.d.ts +0 -49
  135. package/dist/multistream/remoteMediaManager.d.ts +0 -300
  136. package/dist/multistream/sendSlotManager.d.ts +0 -69
  137. package/dist/networkQualityMonitor/index.d.ts +0 -70
  138. package/dist/personal-meeting-room/index.d.ts +0 -47
  139. package/dist/personal-meeting-room/request.d.ts +0 -14
  140. package/dist/personal-meeting-room/util.d.ts +0 -2
  141. package/dist/reachability/clusterReachability.d.ts +0 -110
  142. package/dist/reachability/index.d.ts +0 -109
  143. package/dist/reachability/request.d.ts +0 -39
  144. package/dist/reachability/util.d.ts +0 -15
  145. package/dist/reactions/constants.d.ts +0 -3
  146. package/dist/reactions/reactions.d.ts +0 -4
  147. package/dist/reactions/reactions.type.d.ts +0 -52
  148. package/dist/reconnection-manager/index.d.ts +0 -136
  149. package/dist/recording-controller/enums.d.ts +0 -7
  150. package/dist/recording-controller/index.d.ts +0 -207
  151. package/dist/recording-controller/util.d.ts +0 -14
  152. package/dist/roap/index.d.ts +0 -86
  153. package/dist/roap/request.d.ts +0 -39
  154. package/dist/roap/turnDiscovery.d.ts +0 -155
  155. package/dist/rtcMetrics/constants.d.ts +0 -4
  156. package/dist/rtcMetrics/index.d.ts +0 -61
  157. package/dist/statsAnalyzer/global.d.ts +0 -36
  158. package/dist/statsAnalyzer/index.d.ts +0 -217
  159. package/dist/statsAnalyzer/mqaUtil.d.ts +0 -48
  160. package/dist/transcription/index.d.ts +0 -64
  161. package/dist/webinar/collection.d.ts +0 -16
  162. package/dist/webinar/index.d.ts +0 -5
@@ -1,110 +0,0 @@
1
- import { ClusterNode } from './request';
2
- export type TransportResult = {
3
- result: 'reachable' | 'unreachable' | 'untested';
4
- latencyInMilliseconds?: number;
5
- clientMediaIPs?: string[];
6
- };
7
- export type ClusterReachabilityResult = {
8
- udp: TransportResult;
9
- tcp: TransportResult;
10
- xtls: TransportResult;
11
- };
12
- /**
13
- * A class that handles reachability checks for a single cluster.
14
- */
15
- export declare class ClusterReachability {
16
- private numUdpUrls;
17
- private numTcpUrls;
18
- private numXTlsUrls;
19
- private result;
20
- private pc?;
21
- private defer;
22
- private startTimestamp;
23
- readonly isVideoMesh: boolean;
24
- readonly name: any;
25
- /**
26
- * Constructor for ClusterReachability
27
- * @param {string} name cluster name
28
- * @param {ClusterNode} clusterInfo information about the media cluster
29
- */
30
- constructor(name: string, clusterInfo: ClusterNode);
31
- /**
32
- * Gets total elapsed time, can be called only after start() is called
33
- * @returns {Number} Milliseconds
34
- */
35
- private getElapsedTime;
36
- /**
37
- * Generate peerConnection config settings
38
- * @param {ClusterNode} cluster
39
- * @returns {RTCConfiguration} peerConnectionConfig
40
- */
41
- private buildPeerConnectionConfig;
42
- /**
43
- * Creates an RTCPeerConnection
44
- * @param {ClusterNode} clusterInfo information about the media cluster
45
- * @returns {RTCPeerConnection} peerConnection
46
- */
47
- private createPeerConnection;
48
- /**
49
- * @returns {ClusterReachabilityResult} reachability result for this cluster
50
- */
51
- getResult(): ClusterReachabilityResult;
52
- /**
53
- * Closes the peerConnection
54
- *
55
- * @returns {void}
56
- */
57
- private closePeerConnection;
58
- /**
59
- * Resolves the defer, indicating that reachability checks for this cluster are completed
60
- *
61
- * @returns {void}
62
- */
63
- private finishReachabilityCheck;
64
- /**
65
- * Adds public IP (client media IPs)
66
- * @param {string} protocol
67
- * @param {string} publicIP
68
- * @returns {void}
69
- */
70
- private addPublicIP;
71
- /**
72
- * Registers a listener for the iceGatheringStateChange event
73
- *
74
- * @returns {void}
75
- */
76
- private registerIceGatheringStateChangeListener;
77
- /**
78
- * Checks if we have the results for all the protocols (UDP and TCP)
79
- *
80
- * @returns {boolean} true if we have all results, false otherwise
81
- */
82
- private haveWeGotAllResults;
83
- /**
84
- * Stores the latency in the result for the given protocol and marks it as reachable
85
- *
86
- * @param {string} protocol
87
- * @param {number} latency
88
- * @returns {void}
89
- */
90
- private storeLatencyResult;
91
- /**
92
- * Registers a listener for the icecandidate event
93
- *
94
- * @returns {void}
95
- */
96
- private registerIceCandidateListener;
97
- /**
98
- * Starts the process of doing UDP and TCP reachability checks on the media cluster.
99
- * XTLS reachability checking is not supported.
100
- *
101
- * @returns {Promise}
102
- */
103
- start(): Promise<ClusterReachabilityResult>;
104
- /**
105
- * Starts the process of gathering ICE candidates
106
- *
107
- * @returns {Promise} promise that's resolved once reachability checks for this cluster are completed or timeout is reached
108
- */
109
- private gatherIceCandidates;
110
- }
@@ -1,109 +0,0 @@
1
- /*!
2
- * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
- */
4
- import ReachabilityRequest from './request';
5
- import { ClusterReachability, ClusterReachabilityResult } from './clusterReachability';
6
- export type ReachabilityMetrics = {
7
- reachability_public_udp_success: number;
8
- reachability_public_udp_failed: number;
9
- reachability_public_tcp_success: number;
10
- reachability_public_tcp_failed: number;
11
- reachability_public_xtls_success: number;
12
- reachability_public_xtls_failed: number;
13
- reachability_vmn_udp_success: number;
14
- reachability_vmn_udp_failed: number;
15
- reachability_vmn_tcp_success: number;
16
- reachability_vmn_tcp_failed: number;
17
- reachability_vmn_xtls_success: number;
18
- reachability_vmn_xtls_failed: number;
19
- };
20
- /**
21
- * This is the type that matches what backend expects us to send to them. It is a bit weird, because
22
- * it uses strings instead of booleans and numbers, but that's what they require.
23
- */
24
- export type TransportResultForBackend = {
25
- reachable?: 'true' | 'false';
26
- latencyInMilliseconds?: string;
27
- clientMediaIPs?: string[];
28
- untested?: 'true';
29
- };
30
- export type ReachabilityResultForBackend = {
31
- udp: TransportResultForBackend;
32
- tcp: TransportResultForBackend;
33
- xtls: TransportResultForBackend;
34
- };
35
- export type ReachabilityResultsForBackend = Record<string, ReachabilityResultForBackend>;
36
- export type ReachabilityResults = Record<string, ClusterReachabilityResult & {
37
- isVideoMesh?: boolean;
38
- }>;
39
- /**
40
- * @class Reachability
41
- * @export
42
- */
43
- export default class Reachability {
44
- namespace: string;
45
- webex: object;
46
- reachabilityRequest: ReachabilityRequest;
47
- clusterReachability: {
48
- [key: string]: ClusterReachability;
49
- };
50
- /**
51
- * Creates an instance of Reachability.
52
- * @param {object} webex
53
- * @memberof Reachability
54
- */
55
- constructor(webex: object);
56
- /**
57
- * Gets a list of media clusters from the backend and performs reachability checks on all the clusters
58
- * @returns {Promise<ReachabilityResults>} reachability results
59
- * @public
60
- * @memberof Reachability
61
- */
62
- gatherReachability(): Promise<ReachabilityResults>;
63
- /**
64
- * Returns statistics about last reachability results. The returned value is an object
65
- * with a flat list of properties so that it can be easily sent with metrics
66
- *
67
- * @returns {Promise} Promise with metrics values, it never rejects/throws.
68
- */
69
- getReachabilityMetrics(): Promise<ReachabilityMetrics>;
70
- /**
71
- * Maps our internal transport result to the format that backend expects
72
- * @param {TransportResult} transportResult
73
- * @returns {TransportResultForBackend}
74
- */
75
- private mapTransportResultToBackendDataFormat;
76
- /**
77
- * Reachability results as an object in the format that backend expects
78
- *
79
- * @returns {any} reachability results that need to be sent to the backend
80
- */
81
- getReachabilityResults(): Promise<ReachabilityResultsForBackend | undefined>;
82
- /**
83
- * fetches reachability data and checks for cluster reachability
84
- * @returns {boolean}
85
- * @public
86
- * @memberof Reachability
87
- */
88
- isAnyPublicClusterReachable(): Promise<boolean>;
89
- /**
90
- * Get list of all unreachable clusters
91
- * @returns {array} Unreachable clusters
92
- * @private
93
- * @memberof Reachability
94
- */
95
- private getUnreachableClusters;
96
- /**
97
- * Make a log of unreachable clusters.
98
- * @returns {undefined}
99
- * @private
100
- * @memberof Reachability
101
- */
102
- private logUnreachableClusters;
103
- /**
104
- * Performs reachability checks for all clusters
105
- * @param {ClusterList} clusterList
106
- * @returns {Promise<ReachabilityResults>} reachability check results
107
- */
108
- private performReachabilityChecks;
109
- }
@@ -1,39 +0,0 @@
1
- import { IP_VERSION } from '../constants';
2
- export interface ClusterNode {
3
- isVideoMesh: boolean;
4
- udp: Array<string>;
5
- tcp: Array<string>;
6
- xtls: Array<string>;
7
- }
8
- export type ClusterList = {
9
- [key: string]: ClusterNode;
10
- };
11
- /**
12
- * @class ReachabilityRequest
13
- */
14
- declare class ReachabilityRequest {
15
- webex: any;
16
- /**
17
- * Creates an instance of ReachabilityRequest.
18
- * @param {object} webex
19
- * @memberof ReachabilityRequest
20
- */
21
- constructor(webex: object);
22
- /**
23
- * Gets the cluster information
24
- *
25
- * @param {IP_VERSION} ipVersion information about current ip network we're on
26
- * @returns {Promise}
27
- */
28
- getClusters: (ipVersion?: IP_VERSION) => Promise<{
29
- clusters: ClusterList;
30
- joinCookie: any;
31
- }>;
32
- /**
33
- * gets remote SDP For Clusters
34
- * @param {Object} localSDPList localSDPs for the cluster
35
- * @returns {Object}
36
- */
37
- remoteSDPForClusters: (localSDPList: object) => any;
38
- }
39
- export default ReachabilityRequest;
@@ -1,15 +0,0 @@
1
- /**
2
- * Converts a stun url to a turn url
3
- *
4
- * @param {string} stunUrl url of a stun server
5
- * @param {'tcp'|'udp'} protocol what protocol to use for the turn server
6
- * @returns {string} url of a turn server
7
- */
8
- export declare function convertStunUrlToTurn(stunUrl: string, protocol: 'udp' | 'tcp'): string;
9
- /**
10
- * Converts a stun url to a turns url
11
- *
12
- * @param {string} stunUrl url of a stun server
13
- * @returns {string} url of a turns server
14
- */
15
- export declare function convertStunUrlToTurnTls(stunUrl: string): string;
@@ -1,3 +0,0 @@
1
- export declare const REACTION_RELAY_TYPES: {
2
- readonly REACTION: "react";
3
- };
@@ -1,4 +0,0 @@
1
- import { Reaction, ReactionServerType, SkinTone, SkinToneType } from './reactions.type';
2
- declare const Reactions: Record<ReactionServerType, Reaction>;
3
- declare const SkinTones: Record<SkinToneType, SkinTone>;
4
- export { Reactions, SkinTones };
@@ -1,52 +0,0 @@
1
- import { REACTION_RELAY_TYPES } from './constants';
2
- export type EmoticonData = {
3
- type: string;
4
- codepoints?: string;
5
- shortcodes?: string;
6
- };
7
- export type SkinTone = EmoticonData;
8
- export type Reaction = EmoticonData & {
9
- tone?: SkinTone;
10
- };
11
- export declare enum ReactionServerType {
12
- smile = "smile",
13
- sad = "sad",
14
- wow = "wow",
15
- haha = "haha",
16
- celebrate = "celebrate",
17
- clap = "clap",
18
- thumb_up = "thumb_up",
19
- thumb_down = "thumb_down",
20
- heart = "heart",
21
- fire = "fire",
22
- prayer = "prayer",
23
- speed_up = "speed_up",
24
- slow_down = "slow_down"
25
- }
26
- export declare enum SkinToneType {
27
- normal = "normal",
28
- light = "light",
29
- medium_light = "medium_light",
30
- medium = "medium",
31
- medium_dark = "medium_dark",
32
- dark = "dark"
33
- }
34
- export type Sender = {
35
- participantId: string;
36
- };
37
- export type ProcessedReaction = {
38
- reaction: Reaction;
39
- sender: {
40
- id: Sender['participantId'];
41
- name: string;
42
- };
43
- };
44
- type RelayEventData = {
45
- relayType: (typeof REACTION_RELAY_TYPES)['REACTION'];
46
- reaction: Reaction;
47
- sender: Sender;
48
- };
49
- export type RelayEvent = {
50
- data: RelayEventData;
51
- };
52
- export {};
@@ -1,136 +0,0 @@
1
- /*!
2
- * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
- */
4
- import { RECONNECTION_STATE } from '../constants';
5
- import Meeting from '../meeting';
6
- /**
7
- * @export
8
- * @class ReconnectionManager
9
- */
10
- export default class ReconnectionManager {
11
- autoRejoinEnabled: any;
12
- iceState: any;
13
- maxRejoinAttempts: any;
14
- meeting: any;
15
- rejoinAttempts: any;
16
- shareStatus: any;
17
- status: any;
18
- tryCount: any;
19
- webex: any;
20
- /**
21
- * @param {Meeting} meeting
22
- */
23
- constructor(meeting: Meeting);
24
- /**
25
- * @public
26
- * @memberof ReconnectionManager
27
- * @returns {void}
28
- */
29
- resetReconnectionTimer(): void;
30
- /**
31
- * Sets the iceState to connected and clears any disconnect timeouts and
32
- * related timeout data within the iceState.
33
- *
34
- * @returns {undefined}
35
- * @public
36
- * @memberof ReconnectionManager
37
- */
38
- iceReconnected(): void;
39
- /**
40
- * Set the iceState to disconnected and generates a timeout that waits for the
41
- * iceState to reconnect and then resolves. If the ice state is already
42
- * processing a reconnect, it immediately resolves. Rejects if the timeout
43
- * duration is reached.
44
- *
45
- * @returns {Promise<undefined>}
46
- * @public
47
- * @memberof ReconnectionManager
48
- */
49
- waitForIceReconnect(): Promise<void>;
50
- /**
51
- * @returns {undefined}
52
- * @public
53
- * @memberof ReconnectionManager
54
- */
55
- reset(): void;
56
- /**
57
- * @returns {undefined}
58
- * @public
59
- * @memberof ReconnectionManager
60
- */
61
- cleanUp(): void;
62
- /**
63
- * Stop the local share stream.
64
- *
65
- * @param {string} reason a {@link SHARE_STOPPED_REASON}
66
- * @returns {undefined}
67
- * @private
68
- * @memberof ReconnectionManager
69
- */
70
- private stopLocalShareStream;
71
- /**
72
- * @public
73
- * @memberof ReconnectionManager
74
- * @returns {Boolean} true if reconnection operation is in progress
75
- */
76
- isReconnectInProgress(): boolean;
77
- /**
78
- * Sets the reconnection status
79
- *
80
- * @public
81
- * @param {RECONNECTION_STATE} status
82
- * @memberof ReconnectionManager
83
- * @returns {undefined}
84
- */
85
- setStatus(status: RECONNECTION_STATE): void;
86
- /**
87
- * @returns {Boolean}
88
- * @throws {ReconnectionError}
89
- * @private
90
- * @memberof ReconnectionManager
91
- */
92
- private validate;
93
- /**
94
- * Initiates a media reconnect for the active meeting
95
- * @param {Object} reconnectOptions
96
- * @param {boolean} [reconnectOptions.networkDisconnect=false] indicates if a network disconnect event happened
97
- * @param {boolean} [reconnectOptions.networkRetry=false] indicates if we are retrying the reconnect
98
- * @returns {Promise}
99
- * @public
100
- * @memberof ReconnectionManager
101
- */
102
- reconnect({ networkDisconnect, networkRetry, }?: {
103
- networkDisconnect?: boolean;
104
- networkRetry?: boolean;
105
- }): any;
106
- /**
107
- * @param {Object} reconnectOptions
108
- * @param {boolean} [reconnectOptions.networkDisconnect=false] indicates if a network disconnect event happened
109
- * @returns {Promise}
110
- * @throws {NeedsRetryError}
111
- * @private
112
- * @memberof ReconnectionManager
113
- */
114
- private executeReconnection;
115
- /**
116
- * Rejoins a meeting after detecting the member was in a LEFT state
117
- *
118
- * @async
119
- * @param {boolean} wasSharing
120
- * @returns {Promise}
121
- */
122
- rejoinMeeting(wasSharing?: boolean): Promise<void>;
123
- /**
124
- * @returns {Promise}
125
- * @private
126
- * @memberof ReconnectionManager
127
- */
128
- reconnectMedia(): Promise<void>;
129
- /**
130
- * Attempt to Reconnect Mercury Websocket
131
- * @returns {Promise}
132
- * @private
133
- * @memberof ReconnectionManager
134
- */
135
- private reconnectMercuryWebSocket;
136
- }
@@ -1,7 +0,0 @@
1
- declare enum RecordingAction {
2
- Start = "Start",
3
- Stop = "Stop",
4
- Pause = "Pause",
5
- Resume = "Resume"
6
- }
7
- export default RecordingAction;
@@ -1,207 +0,0 @@
1
- import { SELF_POLICY } from '../constants';
2
- import MeetingRequest from '../meeting/request';
3
- /**
4
- * @description Recording manages the recording functionality of the meeting object, there should only be one instantation of recording per meeting
5
- * @export
6
- * @private
7
- * @class Recording
8
- */
9
- export default class RecordingController {
10
- /**
11
- * @instance
12
- * @type {MeetingRequest}
13
- * @private
14
- * @memberof RecordingController
15
- */
16
- private request;
17
- /**
18
- * @instance
19
- * @type {Array}
20
- * @private
21
- * @memberof RecordingInfo
22
- */
23
- private displayHints;
24
- /**
25
- * @instance
26
- * @type {Object}
27
- * @private
28
- * @memberof RecordingInfo
29
- */
30
- private selfUserPolicies;
31
- /**
32
- * @instance
33
- * @type {string}
34
- * @private
35
- * @memberof RecordingInfo
36
- */
37
- private serviceUrl;
38
- /**
39
- * @instance
40
- * @type {string}
41
- * @private
42
- * @memberof RecordingInfo
43
- */
44
- private sessionId;
45
- /**
46
- * @instance
47
- * @type {string}
48
- * @private
49
- * @memberof RecordingInfo
50
- */
51
- private locusUrl;
52
- /**
53
- * @instance
54
- * @type {string}
55
- * @private
56
- * @memberof RecordingInfo
57
- */
58
- private locusId;
59
- /**
60
- * @param {MeetingRequest} request
61
- * @param {Object} options
62
- * @constructor
63
- * @memberof RecordingController
64
- */
65
- constructor(request: MeetingRequest, options?: {
66
- serviceUrl?: string;
67
- sessionId: string;
68
- locusUrl: string;
69
- displayHints?: Array<string>;
70
- });
71
- /**
72
- * @param {MeetingRequest} request
73
- * @returns {void}
74
- * @private
75
- * @memberof RecordingController
76
- */
77
- private initialize;
78
- /**
79
- * @param {Object} options
80
- * @returns {void}
81
- * @public
82
- * @memberof RecordingController
83
- */
84
- set(options?: {
85
- serviceUrl?: string;
86
- sessionId: string;
87
- locusUrl: string;
88
- displayHints?: Array<string>;
89
- }): void;
90
- /**
91
- * @param {string} url
92
- * @returns {void}
93
- * @public
94
- * @memberof RecordingController
95
- */
96
- setLocusUrl(url: string): void;
97
- /**
98
- * @param {Array} hints
99
- * @returns {void}
100
- * @public
101
- * @memberof RecordingController
102
- */
103
- setDisplayHints(hints: Array<string>): void;
104
- /**
105
- * @param {Object} selfUserPolicies
106
- * @returns {void}
107
- * @public
108
- * @memberof RecordingController
109
- */
110
- setUserPolicy(selfUserPolicies: Record<SELF_POLICY, boolean>): void;
111
- /**
112
- * @param {string} id
113
- * @returns {void}
114
- * @public
115
- * @memberof RecordingController
116
- */
117
- setSessionId(id: string): void;
118
- /**
119
- * @param {string} url
120
- * @returns {void}
121
- * @public
122
- * @memberof RecordingController
123
- */
124
- setServiceUrl(url: string): void;
125
- /**
126
- * @returns {string}
127
- * @public
128
- * @memberof RecordingController
129
- */
130
- getLocusUrl(): string;
131
- /**
132
- * @returns {string}
133
- * @public
134
- * @memberof RecordingController
135
- */
136
- getLocusId(): string;
137
- /**
138
- * @returns {string}
139
- * @public
140
- * @memberof RecordingController
141
- */
142
- getSessionId(): string;
143
- /**
144
- * @returns {string}
145
- * @public
146
- * @memberof RecordingController
147
- */
148
- getServiceUrl(): string;
149
- /**
150
- * @returns {Array}
151
- * @public
152
- * @memberof RecordingController
153
- */
154
- getDisplayHints(): string[];
155
- /**
156
- * @param {Object} options
157
- * @returns {void}
158
- * @private
159
- * @memberof RecordingController
160
- */
161
- private extract;
162
- /**
163
- * @param {RecordingAction} action
164
- * @private
165
- * @memberof RecordingController
166
- * @returns {Promise}
167
- */
168
- private recordingService;
169
- /**
170
- * @param {RecordingAction} action
171
- * @private
172
- * @memberof RecordingController
173
- * @returns {Promise}
174
- */
175
- private recordingControls;
176
- /**
177
- * @param {RecordingAction} action
178
- * @private
179
- * @memberof RecordingController
180
- * @returns {Promise}
181
- */
182
- private recordingFacade;
183
- /**
184
- * @private
185
- * @memberof RecordingController
186
- * @returns {Promise}
187
- */
188
- startRecording(): Promise<any>;
189
- /**
190
- * @private
191
- * @memberof RecordingController
192
- * @returns {Promise}
193
- */
194
- stopRecording(): Promise<any>;
195
- /**
196
- * @private
197
- * @memberof RecordingController
198
- * @returns {Promise}
199
- */
200
- pauseRecording(): Promise<any>;
201
- /**
202
- * @private
203
- * @memberof RecordingController
204
- * @returns {Promise}
205
- */
206
- resumeRecording(): Promise<any>;
207
- }
@@ -1,14 +0,0 @@
1
- import { SELF_POLICY } from '../constants';
2
- import RecordingAction from './enums';
3
- declare const _default: {
4
- canUserStart: (displayHints: string[], userPolicies: Record<SELF_POLICY, boolean>) => boolean;
5
- canUserPause: (displayHints: string[], userPolicies: Record<SELF_POLICY, boolean>) => boolean;
6
- canUserResume: (displayHints: string[], userPolicies: Record<SELF_POLICY, boolean>) => boolean;
7
- canUserStop: (displayHints: string[], userPolicies: Record<SELF_POLICY, boolean>) => boolean;
8
- deriveRecordingStates: (action: RecordingAction) => {
9
- recording: boolean;
10
- paused: boolean;
11
- };
12
- extractLocusId: (url: string) => string;
13
- };
14
- export default _default;