@webex/plugin-meetings 2.37.0 → 2.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/UPGRADING.md +9 -9
  2. package/browsers.js +19 -24
  3. package/dist/common/browser-detection.js +1 -20
  4. package/dist/common/browser-detection.js.map +1 -1
  5. package/dist/common/collection.js +5 -20
  6. package/dist/common/collection.js.map +1 -1
  7. package/dist/common/config.js +0 -7
  8. package/dist/common/config.js.map +1 -1
  9. package/dist/common/errors/captcha-error.js +5 -26
  10. package/dist/common/errors/captcha-error.js.map +1 -1
  11. package/dist/common/errors/intent-to-join.js +5 -26
  12. package/dist/common/errors/intent-to-join.js.map +1 -1
  13. package/dist/common/errors/join-meeting.js +6 -27
  14. package/dist/common/errors/join-meeting.js.map +1 -1
  15. package/dist/common/errors/media.js +5 -26
  16. package/dist/common/errors/media.js.map +1 -1
  17. package/dist/common/errors/parameter.js +5 -33
  18. package/dist/common/errors/parameter.js.map +1 -1
  19. package/dist/common/errors/password-error.js +5 -26
  20. package/dist/common/errors/password-error.js.map +1 -1
  21. package/dist/common/errors/permission.js +4 -25
  22. package/dist/common/errors/permission.js.map +1 -1
  23. package/dist/common/errors/reconnection-in-progress.js +0 -17
  24. package/dist/common/errors/reconnection-in-progress.js.map +1 -1
  25. package/dist/common/errors/reconnection.js +5 -26
  26. package/dist/common/errors/reconnection.js.map +1 -1
  27. package/dist/common/errors/stats.js +5 -26
  28. package/dist/common/errors/stats.js.map +1 -1
  29. package/dist/common/errors/webex-errors.js +7 -46
  30. package/dist/common/errors/webex-errors.js.map +1 -1
  31. package/dist/common/errors/webex-meetings-error.js +1 -24
  32. package/dist/common/errors/webex-meetings-error.js.map +1 -1
  33. package/dist/common/events/events-scope.js +0 -22
  34. package/dist/common/events/events-scope.js.map +1 -1
  35. package/dist/common/events/events.js +0 -23
  36. package/dist/common/events/events.js.map +1 -1
  37. package/dist/common/events/trigger-proxy.js +0 -12
  38. package/dist/common/events/trigger-proxy.js.map +1 -1
  39. package/dist/common/events/util.js +0 -15
  40. package/dist/common/events/util.js.map +1 -1
  41. package/dist/common/logs/logger-config.js +0 -4
  42. package/dist/common/logs/logger-config.js.map +1 -1
  43. package/dist/common/logs/logger-proxy.js +1 -8
  44. package/dist/common/logs/logger-proxy.js.map +1 -1
  45. package/dist/common/logs/request.js +35 -61
  46. package/dist/common/logs/request.js.map +1 -1
  47. package/dist/common/queue.js +4 -14
  48. package/dist/common/queue.js.map +1 -1
  49. package/dist/config.js +1 -5
  50. package/dist/config.js.map +1 -1
  51. package/dist/constants.js +46 -42
  52. package/dist/constants.js.map +1 -1
  53. package/dist/index.js +1 -17
  54. package/dist/index.js.map +1 -1
  55. package/dist/locus-info/controlsUtils.js +10 -28
  56. package/dist/locus-info/controlsUtils.js.map +1 -1
  57. package/dist/locus-info/embeddedAppsUtils.js +3 -26
  58. package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
  59. package/dist/locus-info/fullState.js +0 -15
  60. package/dist/locus-info/fullState.js.map +1 -1
  61. package/dist/locus-info/hostUtils.js +4 -12
  62. package/dist/locus-info/hostUtils.js.map +1 -1
  63. package/dist/locus-info/index.js +101 -193
  64. package/dist/locus-info/index.js.map +1 -1
  65. package/dist/locus-info/infoUtils.js +0 -37
  66. package/dist/locus-info/infoUtils.js.map +1 -1
  67. package/dist/locus-info/mediaSharesUtils.js +12 -38
  68. package/dist/locus-info/mediaSharesUtils.js.map +1 -1
  69. package/dist/locus-info/parser.js +87 -123
  70. package/dist/locus-info/parser.js.map +1 -1
  71. package/dist/locus-info/selfUtils.js +16 -81
  72. package/dist/locus-info/selfUtils.js.map +1 -1
  73. package/dist/media/index.js +74 -137
  74. package/dist/media/index.js.map +1 -1
  75. package/dist/media/properties.js +64 -110
  76. package/dist/media/properties.js.map +1 -1
  77. package/dist/media/util.js +3 -17
  78. package/dist/media/util.js.map +1 -1
  79. package/dist/mediaQualityMetrics/config.js +10 -12
  80. package/dist/mediaQualityMetrics/config.js.map +1 -1
  81. package/dist/meeting/effectsState.js +120 -192
  82. package/dist/meeting/effectsState.js.map +1 -1
  83. package/dist/meeting/in-meeting-actions.js +0 -13
  84. package/dist/meeting/in-meeting-actions.js.map +1 -1
  85. package/dist/meeting/index.js +812 -1487
  86. package/dist/meeting/index.js.map +1 -1
  87. package/dist/meeting/muteState.js +31 -78
  88. package/dist/meeting/muteState.js.map +1 -1
  89. package/dist/meeting/request.js +157 -227
  90. package/dist/meeting/request.js.map +1 -1
  91. package/dist/meeting/state.js +21 -31
  92. package/dist/meeting/state.js.map +1 -1
  93. package/dist/meeting/util.js +25 -169
  94. package/dist/meeting/util.js.map +1 -1
  95. package/dist/meeting-info/collection.js +3 -25
  96. package/dist/meeting-info/collection.js.map +1 -1
  97. package/dist/meeting-info/index.js +10 -33
  98. package/dist/meeting-info/index.js.map +1 -1
  99. package/dist/meeting-info/meeting-info-v2.js +179 -268
  100. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  101. package/dist/meeting-info/request.js +1 -16
  102. package/dist/meeting-info/request.js.map +1 -1
  103. package/dist/meeting-info/util.js +98 -183
  104. package/dist/meeting-info/util.js.map +1 -1
  105. package/dist/meeting-info/utilv2.js +137 -228
  106. package/dist/meeting-info/utilv2.js.map +1 -1
  107. package/dist/meetings/collection.js +3 -21
  108. package/dist/meetings/collection.js.map +1 -1
  109. package/dist/meetings/index.js +451 -570
  110. package/dist/meetings/index.js.map +1 -1
  111. package/dist/meetings/request.js +7 -30
  112. package/dist/meetings/request.js.map +1 -1
  113. package/dist/meetings/util.js +94 -148
  114. package/dist/meetings/util.js.map +1 -1
  115. package/dist/member/index.js +49 -89
  116. package/dist/member/index.js.map +1 -1
  117. package/dist/member/util.js +17 -68
  118. package/dist/member/util.js.map +1 -1
  119. package/dist/members/collection.js +2 -12
  120. package/dist/members/collection.js.map +1 -1
  121. package/dist/members/index.js +68 -184
  122. package/dist/members/index.js.map +1 -1
  123. package/dist/members/request.js +21 -56
  124. package/dist/members/request.js.map +1 -1
  125. package/dist/members/util.js +9 -38
  126. package/dist/members/util.js.map +1 -1
  127. package/dist/metrics/config.js +0 -2
  128. package/dist/metrics/config.js.map +1 -1
  129. package/dist/metrics/constants.js +1 -2
  130. package/dist/metrics/constants.js.map +1 -1
  131. package/dist/metrics/index.js +48 -136
  132. package/dist/metrics/index.js.map +1 -1
  133. package/dist/networkQualityMonitor/index.js +28 -57
  134. package/dist/networkQualityMonitor/index.js.map +1 -1
  135. package/dist/peer-connection-manager/index.js +60 -190
  136. package/dist/peer-connection-manager/index.js.map +1 -1
  137. package/dist/peer-connection-manager/util.js +10 -24
  138. package/dist/peer-connection-manager/util.js.map +1 -1
  139. package/dist/personal-meeting-room/index.js +10 -45
  140. package/dist/personal-meeting-room/index.js.map +1 -1
  141. package/dist/personal-meeting-room/request.js +2 -33
  142. package/dist/personal-meeting-room/request.js.map +1 -1
  143. package/dist/personal-meeting-room/util.js +0 -13
  144. package/dist/personal-meeting-room/util.js.map +1 -1
  145. package/dist/reachability/index.js +100 -166
  146. package/dist/reachability/index.js.map +1 -1
  147. package/dist/reachability/request.js +2 -18
  148. package/dist/reachability/request.js.map +1 -1
  149. package/dist/reactions/reactions.js +0 -2
  150. package/dist/reactions/reactions.js.map +1 -1
  151. package/dist/reactions/reactions.type.js +0 -5
  152. package/dist/reactions/reactions.type.js.map +1 -1
  153. package/dist/reconnection-manager/index.js +294 -468
  154. package/dist/reconnection-manager/index.js.map +1 -1
  155. package/dist/roap/collection.js +1 -12
  156. package/dist/roap/collection.js.map +1 -1
  157. package/dist/roap/handler.js +15 -85
  158. package/dist/roap/handler.js.map +1 -1
  159. package/dist/roap/index.js +42 -94
  160. package/dist/roap/index.js.map +1 -1
  161. package/dist/roap/request.js +81 -148
  162. package/dist/roap/request.js.map +1 -1
  163. package/dist/roap/state.js +2 -39
  164. package/dist/roap/state.js.map +1 -1
  165. package/dist/roap/turnDiscovery.js +8 -52
  166. package/dist/roap/turnDiscovery.js.map +1 -1
  167. package/dist/roap/util.js +0 -26
  168. package/dist/roap/util.js.map +1 -1
  169. package/dist/statsAnalyzer/global.js +0 -2
  170. package/dist/statsAnalyzer/global.js.map +1 -1
  171. package/dist/statsAnalyzer/index.js +68 -168
  172. package/dist/statsAnalyzer/index.js.map +1 -1
  173. package/dist/statsAnalyzer/mqaUtil.js +54 -53
  174. package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
  175. package/dist/transcription/index.js +13 -45
  176. package/dist/transcription/index.js.map +1 -1
  177. package/internal-README.md +7 -6
  178. package/package.json +17 -17
  179. package/src/common/browser-detection.ts +9 -6
  180. package/src/common/collection.ts +3 -1
  181. package/src/common/errors/captcha-error.ts +6 -6
  182. package/src/common/errors/intent-to-join.ts +6 -6
  183. package/src/common/errors/join-meeting.ts +12 -8
  184. package/src/common/errors/media.ts +6 -6
  185. package/src/common/errors/parameter.ts +9 -6
  186. package/src/common/errors/password-error.ts +6 -6
  187. package/src/common/errors/permission.ts +5 -5
  188. package/src/common/errors/reconnection.ts +6 -6
  189. package/src/common/errors/stats.ts +6 -6
  190. package/src/common/errors/webex-errors.ts +7 -5
  191. package/src/common/errors/webex-meetings-error.ts +1 -1
  192. package/src/common/events/events-scope.ts +5 -1
  193. package/src/common/events/events.ts +5 -1
  194. package/src/common/events/trigger-proxy.ts +8 -3
  195. package/src/common/events/util.ts +1 -2
  196. package/src/common/logs/logger-proxy.ts +21 -10
  197. package/src/common/logs/request.ts +11 -8
  198. package/src/config.ts +11 -11
  199. package/src/constants.ts +138 -119
  200. package/src/index.js +1 -1
  201. package/src/locus-info/controlsUtils.ts +34 -24
  202. package/src/locus-info/fullState.ts +15 -11
  203. package/src/locus-info/hostUtils.ts +4 -3
  204. package/src/locus-info/index.ts +25 -34
  205. package/src/locus-info/infoUtils.ts +12 -4
  206. package/src/locus-info/mediaSharesUtils.ts +4 -4
  207. package/src/locus-info/parser.ts +45 -68
  208. package/src/locus-info/selfUtils.ts +106 -57
  209. package/src/media/index.ts +118 -109
  210. package/src/media/properties.ts +26 -20
  211. package/src/media/util.ts +2 -2
  212. package/src/mediaQualityMetrics/config.ts +46 -46
  213. package/src/meeting/effectsState.ts +35 -35
  214. package/src/meeting/in-meeting-actions.ts +7 -3
  215. package/src/meeting/index.ts +1435 -1210
  216. package/src/meeting/muteState.ts +62 -31
  217. package/src/meeting/request.ts +160 -113
  218. package/src/meeting/state.ts +45 -30
  219. package/src/meeting/util.ts +131 -90
  220. package/src/meeting-info/collection.ts +2 -1
  221. package/src/meeting-info/index.ts +32 -30
  222. package/src/meeting-info/meeting-info-v2.ts +106 -108
  223. package/src/meeting-info/request.ts +9 -3
  224. package/src/meeting-info/util.ts +54 -46
  225. package/src/meeting-info/utilv2.ts +59 -53
  226. package/src/meetings/collection.ts +1 -1
  227. package/src/meetings/index.ts +513 -441
  228. package/src/meetings/request.ts +26 -24
  229. package/src/meetings/util.ts +26 -23
  230. package/src/member/index.ts +55 -49
  231. package/src/member/util.ts +26 -13
  232. package/src/members/collection.ts +0 -1
  233. package/src/members/index.ts +172 -121
  234. package/src/members/request.ts +46 -14
  235. package/src/members/util.ts +44 -42
  236. package/src/metrics/config.ts +254 -81
  237. package/src/metrics/constants.ts +0 -2
  238. package/src/metrics/index.ts +84 -71
  239. package/src/networkQualityMonitor/index.ts +20 -23
  240. package/src/peer-connection-manager/index.ts +321 -241
  241. package/src/peer-connection-manager/util.ts +4 -2
  242. package/src/personal-meeting-room/index.ts +12 -16
  243. package/src/personal-meeting-room/request.ts +10 -3
  244. package/src/personal-meeting-room/util.ts +3 -3
  245. package/src/reachability/index.ts +61 -59
  246. package/src/reachability/request.ts +36 -32
  247. package/src/reactions/reactions.ts +4 -4
  248. package/src/reactions/reactions.type.ts +2 -3
  249. package/src/reconnection-manager/index.ts +159 -98
  250. package/src/roap/collection.ts +2 -4
  251. package/src/roap/handler.ts +63 -32
  252. package/src/roap/index.ts +78 -58
  253. package/src/roap/request.ts +69 -54
  254. package/src/roap/state.ts +17 -11
  255. package/src/roap/turnDiscovery.ts +60 -31
  256. package/src/roap/util.ts +39 -31
  257. package/src/statsAnalyzer/global.ts +30 -33
  258. package/src/statsAnalyzer/index.ts +397 -169
  259. package/src/statsAnalyzer/mqaUtil.ts +178 -72
  260. package/src/transcription/index.ts +34 -32
  261. package/test/integration/spec/journey.js +666 -462
  262. package/test/integration/spec/space-meeting.js +318 -203
  263. package/test/integration/spec/transcription.js +6 -7
  264. package/test/unit/spec/common/browser-detection.js +9 -28
  265. package/test/unit/spec/fixture/locus.js +92 -90
  266. package/test/unit/spec/locus-info/controlsUtils.js +5 -5
  267. package/test/unit/spec/locus-info/embeddedAppsUtils.js +8 -6
  268. package/test/unit/spec/locus-info/index.js +1 -2
  269. package/test/unit/spec/locus-info/infoUtils.js +24 -31
  270. package/test/unit/spec/locus-info/lib/BasicSeqCmp.json +88 -430
  271. package/test/unit/spec/locus-info/lib/SeqCmp.json +513 -685
  272. package/test/unit/spec/locus-info/parser.js +3 -9
  273. package/test/unit/spec/locus-info/selfConstant.js +72 -103
  274. package/test/unit/spec/locus-info/selfUtils.js +21 -12
  275. package/test/unit/spec/meeting/effectsState.js +33 -45
  276. package/test/unit/spec/meeting/in-meeting-actions.ts +2 -3
  277. package/test/unit/spec/meeting/index.js +1141 -649
  278. package/test/unit/spec/meeting/muteState.js +42 -33
  279. package/test/unit/spec/meeting/request.js +56 -45
  280. package/test/unit/spec/meeting/utils.js +66 -49
  281. package/test/unit/spec/meeting-info/meetinginfov2.js +100 -73
  282. package/test/unit/spec/meeting-info/request.js +7 -9
  283. package/test/unit/spec/meeting-info/util.js +11 -12
  284. package/test/unit/spec/meeting-info/utilv2.js +110 -74
  285. package/test/unit/spec/meetings/collection.js +1 -1
  286. package/test/unit/spec/meetings/index.js +438 -257
  287. package/test/unit/spec/meetings/utils.js +14 -12
  288. package/test/unit/spec/member/index.js +0 -1
  289. package/test/unit/spec/member/util.js +5 -6
  290. package/test/unit/spec/members/index.js +84 -35
  291. package/test/unit/spec/members/request.js +29 -20
  292. package/test/unit/spec/members/utils.js +8 -5
  293. package/test/unit/spec/metrics/index.js +16 -21
  294. package/test/unit/spec/networkQualityMonitor/index.js +21 -15
  295. package/test/unit/spec/peerconnection-manager/index.js +88 -58
  296. package/test/unit/spec/peerconnection-manager/utils.js +5 -4
  297. package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +7 -8
  298. package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +2 -7
  299. package/test/unit/spec/reachability/index.ts +9 -11
  300. package/test/unit/spec/reconnection-manager/index.js +14 -17
  301. package/test/unit/spec/roap/index.ts +18 -8
  302. package/test/unit/spec/roap/turnDiscovery.ts +22 -19
  303. package/test/unit/spec/roap/util.js +3 -3
  304. package/test/unit/spec/stats-analyzer/index.js +29 -24
  305. package/test/utils/cmr.js +44 -42
  306. package/test/utils/testUtils.js +83 -74
  307. package/test/utils/webex-config.js +18 -18
  308. package/test/utils/webex-test-users.js +53 -50
package/src/constants.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // @ts-ignore
2
- import { hydraTypes } from '@webex/common';
2
+ import {hydraTypes} from '@webex/common';
3
3
 
4
4
  // *********** LOWERCASE / CAMELCASE STRINGS ************
5
5
 
@@ -136,14 +136,14 @@ export const _MOVE_MEDIA_ = 'MOVE_MEDIA';
136
136
  export const PARTICIPANT_DELTAS = {
137
137
  TARGETS: {
138
138
  AUDIO: 'audio',
139
- VIDEO: 'video'
139
+ VIDEO: 'video',
140
140
  },
141
141
  STATES: {
142
142
  DISABLED: 'disabled',
143
143
  MUTED: 'muted',
144
144
  UNKNOWN: 'unknown',
145
- UNMUTED: 'unmuted'
146
- }
145
+ UNMUTED: 'unmuted',
146
+ },
147
147
  };
148
148
 
149
149
  // *********** STRING HELPERS ***********
@@ -201,21 +201,26 @@ export const DIALER_REGEX = {
201
201
  // modified from https://github.com/kirm/sip.js base
202
202
  // and with https://tools.ietf.org/html/rfc3261
203
203
  // requires the @ symbol
204
- SIP_ADDRESS: /^(sips?)?:?(?:([^\s>:@]+)(?::([^\s@>]+))?@)([\w\-.]+)(?::(\d+))?((?:;[^\s=?>;]+(?:=[^\s?;]+)?)*)(?:\?(([^\s&=>]+=[^\s&=>]+)(&[^\s&=>]+=[^\s&=>]+)*))?$/,
204
+ SIP_ADDRESS:
205
+ /^(sips?)?:?(?:([^\s>:@]+)(?::([^\s@>]+))?@)([\w\-.]+)(?::(\d+))?((?:;[^\s=?>;]+(?:=[^\s?;]+)?)*)(?:\?(([^\s&=>]+=[^\s&=>]+)(&[^\s&=>]+=[^\s&=>]+)*))?$/,
205
206
  // standard telephony num regex
206
- PHONE_NUMBER: /^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$/,
207
- E164_FORMAT: /^\+[1-9]\d{1,14}$/
207
+ PHONE_NUMBER:
208
+ /^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$/,
209
+ E164_FORMAT: /^\+[1-9]\d{1,14}$/,
208
210
  };
209
211
 
210
212
  // eslint-disable-next-line max-len
211
213
  export const IPV4_REGEX = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}|.local/g;
212
214
 
213
- export const VALID_EMAIL_ADDRESS = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
214
- export const VALID_PMR_ADDRESS = /([a-z0-9][-a-z0-9, '.']{0,62})@([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com/i;
215
- export const VALID_PMR_LINK = /(https:\/\/)?([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com\/(meet|join)\/([a-z0-9][-a-z0-9, '.']{0,62})\/?/i;
215
+ export const VALID_EMAIL_ADDRESS =
216
+ /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
217
+ export const VALID_PMR_ADDRESS =
218
+ /([a-z0-9][-a-z0-9, '.']{0,62})@([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com/i;
219
+ export const VALID_PMR_LINK =
220
+ /(https:\/\/)?([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com\/(meet|join)\/([a-z0-9][-a-z0-9, '.']{0,62})\/?/i;
216
221
  export const VALID_PIN = /([0-9]{4,6})/;
217
- export const UUID_REG = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
218
-
222
+ export const UUID_REG =
223
+ /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
219
224
 
220
225
  // ******************** OBJECTS ********************
221
226
  // Please alphabetize, and keep objects organized
@@ -223,7 +228,7 @@ export const UUID_REG = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f
223
228
  // TODO: move all api params to API section
224
229
  export const API = {
225
230
  CALLIOPEDISCOVERY: 'calliopeDiscovery',
226
- LOCUS: 'locus'
231
+ LOCUS: 'locus',
227
232
  };
228
233
 
229
234
  export const CALENDAR_EVENTS = {
@@ -231,26 +236,38 @@ export const CALENDAR_EVENTS = {
231
236
  UPDATE: 'event:calendar.meeting.update',
232
237
  CREATE_MINIMAL: 'event:calendar.meeting.create.minimal',
233
238
  UPDATE_MINIMAL: 'event:calendar.meeting.update.minimal',
234
- DELETE: 'event:calendar.meeting.delete'
239
+ DELETE: 'event:calendar.meeting.delete',
235
240
  };
236
241
 
237
242
  export const DEFAULT_GET_STATS_FILTER = {
238
- types: ['track', 'transport', 'candidate-pair', 'outbound-rtp', 'outboundrtp', 'inbound-rtp', 'inboundrtp', 'remote-inbound-rtp', 'remote-outbound-rtp', 'remote-candidate', 'local-candidate', 'media-source']
243
+ types: [
244
+ 'track',
245
+ 'transport',
246
+ 'candidate-pair',
247
+ 'outbound-rtp',
248
+ 'outboundrtp',
249
+ 'inbound-rtp',
250
+ 'inboundrtp',
251
+ 'remote-inbound-rtp',
252
+ 'remote-outbound-rtp',
253
+ 'remote-candidate',
254
+ 'local-candidate',
255
+ 'media-source',
256
+ ],
239
257
  };
240
258
 
241
-
242
259
  export const RECORDING_STATE = {
243
260
  RECORDING: 'recording',
244
261
  IDLE: 'idle',
245
262
  PAUSED: 'paused',
246
- RESUMED: 'resumed'
263
+ RESUMED: 'resumed',
247
264
  };
248
265
 
249
266
  export const SHARE_STATUS = {
250
267
  NO_SHARE: 'no_share',
251
268
  REMOTE_SHARE_ACTIVE: 'remote_share_active',
252
269
  LOCAL_SHARE_ACTIVE: 'local_share_active',
253
- WHITEBOARD_SHARE_ACTIVE: 'whiteboard_share_active'
270
+ WHITEBOARD_SHARE_ACTIVE: 'whiteboard_share_active',
254
271
  };
255
272
 
256
273
  // TODO: do we want to scope by meeting, members when they come off those objects themselves?
@@ -312,7 +329,7 @@ export const EVENT_TRIGGERS = {
312
329
  MEETINGS_NETWORK_CONNECTED: 'network:connected',
313
330
  MEETING_SELF_LEFT: 'meeting:self:left',
314
331
  NETWORK_QUALITY: 'network:quality',
315
- MEDIA_NEGOTIATED: 'media:negotiated'
332
+ MEDIA_NEGOTIATED: 'media:negotiated',
316
333
  };
317
334
 
318
335
  export const EVENT_TYPES = {
@@ -324,7 +341,7 @@ export const EVENT_TYPES = {
324
341
  REMOTE_VIDEO: 'remoteVideo',
325
342
  REMOTE_SHARE: 'remoteShare',
326
343
  LOCAL_SHARE: 'localShare',
327
- ERROR: 'error'
344
+ ERROR: 'error',
328
345
  };
329
346
 
330
347
  // Handles the reason when meeting gets destroyed
@@ -338,7 +355,7 @@ export const MEETING_REMOVED_REASON = {
338
355
  CLIENT_LEAVE_REQUEST: 'CLIENT_LEAVE_REQUEST', // You triggered leave meeting
339
356
  USER_ENDED_SHARE_STREAMS: 'USER_ENDED_SHARE_STREAMS', // user triggered stop share
340
357
  NO_MEETINGS_TO_SYNC: 'NO_MEETINGS_TO_SYNC', // After the syncMeeting no meeting exists
341
- MEETING_CONNECTION_FAILED: 'MEETING_CONNECTION_FAILED' // meeting failed to connect due to ice failures or firewall issue
358
+ MEETING_CONNECTION_FAILED: 'MEETING_CONNECTION_FAILED', // meeting failed to connect due to ice failures or firewall issue
342
359
  };
343
360
 
344
361
  // One one one calls ends for the following reasons
@@ -347,12 +364,12 @@ export const MEETING_REMOVED_REASON = {
347
364
  export const CALL_REMOVED_REASON = {
348
365
  CALL_INACTIVE: 'CALL_INACTIVE', // partner and you leave the call
349
366
  PARTNER_LEFT: 'PARTNER_LEFT', // partner left the call
350
- SELF_LEFT: 'SELF_LEFT'// you left/declined the call
367
+ SELF_LEFT: 'SELF_LEFT', // you left/declined the call
351
368
  };
352
369
 
353
370
  export const SHARE_STOPPED_REASON = {
354
371
  SELF_STOPPED: 'SELF_STOPPED',
355
- MEETING_REJOIN: 'MEETING_REJOIN'
372
+ MEETING_REJOIN: 'MEETING_REJOIN',
356
373
  };
357
374
 
358
375
  export const EVENTS = {
@@ -372,66 +389,70 @@ export const EVENTS = {
372
389
  LOCUS_INFO_UPDATE_SELF: 'LOCUS_INFO_UPDATE_SELF',
373
390
  LOCUS_INFO_UPDATE_URL: 'LOCUS_INFO_UPDATE_URL',
374
391
  LOCUS_INFO_CAN_ASSIGN_HOST: 'LOCUS_INFO_CAN_ASSIGN_HOST',
375
- DISCONNECT_DUE_TO_INACTIVITY: 'DISCONNECT_DUE_TO_INACTIVITY'
392
+ DISCONNECT_DUE_TO_INACTIVITY: 'DISCONNECT_DUE_TO_INACTIVITY',
376
393
  };
377
394
 
378
395
  export const MEDIA_STATE = {
379
396
  active: 'active',
380
- inactive: 'inactive'
397
+ inactive: 'inactive',
381
398
  };
382
399
 
383
400
  export const ERROR_DICTIONARY = {
384
401
  PARAMETER: {
385
402
  NAME: 'ParameterError',
386
- MESSAGE: 'The parameters passed to the function, or object properties needed in the function were null, missing where required, or otherwise incorrect.',
387
- CODE: 0
403
+ MESSAGE:
404
+ 'The parameters passed to the function, or object properties needed in the function were null, missing where required, or otherwise incorrect.',
405
+ CODE: 0,
388
406
  },
389
407
  INTENT_TO_JOIN: {
390
408
  NAME: 'IntentToJoinError',
391
- MESSAGE: 'The meeting is locked. This is expected behavior. Call #join again with pin and/or moderator option',
392
- CODE: 1
409
+ MESSAGE:
410
+ 'The meeting is locked. This is expected behavior. Call #join again with pin and/or moderator option',
411
+ CODE: 1,
393
412
  },
394
413
  JOIN_MEETING: {
395
414
  NAME: 'JoinMeetingError',
396
415
  MESSAGE: 'There was an issue joining the meeting, meeting could be in a bad state.',
397
- CODE: 2
416
+ CODE: 2,
398
417
  },
399
418
  RECONNECTION: {
400
419
  NAME: 'ReconnectionError',
401
- MESSAGE: 'There was an error in the reconnection flow, the meeting may not reconnect, disconnect and dial again.',
402
- CODE: 3
420
+ MESSAGE:
421
+ 'There was an error in the reconnection flow, the meeting may not reconnect, disconnect and dial again.',
422
+ CODE: 3,
403
423
  },
404
424
  MEDIA: {
405
425
  NAME: 'MediaError',
406
426
  MESSAGE: 'There was an error with media, the meeting may not have live audio, video or share.',
407
- CODE: 4
427
+ CODE: 4,
408
428
  },
409
429
  PERMISSION: {
410
430
  NAME: 'PermissionError',
411
- MESSAGE: 'Not allowed to execute the function, some properties on server, or local client state do not allow you to complete this action.',
412
- CODE: 5
431
+ MESSAGE:
432
+ 'Not allowed to execute the function, some properties on server, or local client state do not allow you to complete this action.',
433
+ CODE: 5,
413
434
  },
414
435
  STATS: {
415
436
  NAME: 'StatsError',
416
437
  MESSAGE: 'An error occurred with getStats, stats may not continue for this data stream.',
417
- CODE: 6
438
+ CODE: 6,
418
439
  },
419
440
  PASSWORD: {
420
441
  NAME: 'PasswordError',
421
442
  MESSAGE: 'Password is required, please use verifyPassword()',
422
- CODE: 7
443
+ CODE: 7,
423
444
  },
424
445
  CAPTCHA: {
425
446
  NAME: 'CaptchaError',
426
447
  MESSAGE: 'Captcha is required.',
427
- CODE: 8
428
- }
448
+ CODE: 8,
449
+ },
429
450
  };
430
451
 
431
452
  export const FLOOR_ACTION = {
432
453
  GRANTED: 'GRANTED',
433
454
  RELEASED: 'RELEASED',
434
- ACCEPTED: 'ACCEPTED'
455
+ ACCEPTED: 'ACCEPTED',
435
456
  };
436
457
 
437
458
  export const FULL_STATE = {
@@ -439,21 +460,21 @@ export const FULL_STATE = {
439
460
  INACTIVE: 'INACTIVE',
440
461
  ACTIVE: 'ACTIVE',
441
462
  TERMINATING: 'TERMINATING',
442
- UNKNOWN: 'UNKNOWN'
463
+ UNKNOWN: 'UNKNOWN',
443
464
  };
444
465
 
445
466
  export const HTTP_VERBS = {
446
467
  PUT: 'PUT',
447
468
  POST: 'POST',
448
469
  GET: 'GET',
449
- PATCH: 'PATCH'
470
+ PATCH: 'PATCH',
450
471
  };
451
472
 
452
473
  // https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceGatheringState
453
474
  export const ICE_GATHERING_STATE = {
454
475
  NEW: 'new',
455
476
  GATHERING: 'gathering',
456
- COMPLETE: 'complete'
477
+ COMPLETE: 'complete',
457
478
  };
458
479
 
459
480
  // https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceConnectionState
@@ -463,7 +484,7 @@ export const ICE_STATE = {
463
484
  CLOSED: 'closed',
464
485
  COMPLETED: 'completed',
465
486
  FAILED: 'failed',
466
- DISCONNECTED: 'disconnected'
487
+ DISCONNECTED: 'disconnected',
467
488
  };
468
489
 
469
490
  export const CONNECTION_STATE = {
@@ -472,14 +493,14 @@ export const CONNECTION_STATE = {
472
493
  CONNECTED: 'connected',
473
494
  CLOSED: 'closed',
474
495
  FAILED: 'failed',
475
- DISCONNECTED: 'disconnected'
496
+ DISCONNECTED: 'disconnected',
476
497
  };
477
498
 
478
499
  export const LOCUS = {
479
500
  STATE: {
480
501
  INACTIVE: 'INACTIVE',
481
502
  ENDED: 'ENDED',
482
- INITIALIZING: 'INITIALIZING'
503
+ INITIALIZING: 'INITIALIZING',
483
504
  },
484
505
  SEQUENCE: {
485
506
  UN_DEF: 'undef',
@@ -487,9 +508,9 @@ export const LOCUS = {
487
508
  DEF: 'def',
488
509
  NA: 'na',
489
510
  RANGE_START: 'rangeStart',
490
- RANGE_END: 'rangeEnd'
511
+ RANGE_END: 'rangeEnd',
491
512
  },
492
- SYNCDEBUG: 'sync_debug'
513
+ SYNCDEBUG: 'sync_debug',
493
514
  };
494
515
 
495
516
  export const LOCUSINFO = {
@@ -518,7 +539,7 @@ export const LOCUSINFO = {
518
539
  EMBEDDED_APPS_UPDATED: 'EMBEDDED_APPS_UPDATED',
519
540
  SELF_CANNOT_VIEW_PARTICIPANT_LIST_CHANGE: 'SELF_CANNOT_VIEW_PARTICIPANT_LIST_CHANGE',
520
541
  SELF_IS_SHARING_BLOCKED_CHANGE: 'SELF_IS_SHARING_BLOCKED_CHANGE',
521
- }
542
+ },
522
543
  };
523
544
 
524
545
  export const LOCUSEVENT = {
@@ -553,7 +574,7 @@ export const LOCUSEVENT = {
553
574
  RECORDING_START_FAILED: 'locus.recording_start_failed',
554
575
  RECORDING_STOPPED: 'locus.recording_stopped',
555
576
 
556
- SELF_CHANGED: 'locus.self_changed'
577
+ SELF_CHANGED: 'locus.self_changed',
557
578
  };
558
579
 
559
580
  export const MEDIA_TRACK_CONSTRAINT = {
@@ -563,8 +584,8 @@ export const MEDIA_TRACK_CONSTRAINT = {
563
584
  // The cursor should only be visible while moving, then removed.
564
585
  MOTION: 'motion',
565
586
  // The cursor should never be visible in the generated stream.
566
- NEVER: 'never'
567
- }
587
+ NEVER: 'never',
588
+ },
568
589
  };
569
590
 
570
591
  export const MEETING_ERRORS = {
@@ -587,7 +608,8 @@ export const MEETING_ERRORS = {
587
608
  INVALID_LOCUS_ID: 'INVALID_LOCUS_ID',
588
609
  EMPTY_SCHEDULED_MEETING_START_TIME: 'EMPTY_SCHEDULED_MEETING_START_TIME',
589
610
  INVALID_SCHEDULED_MEETING_DURATION_MINUTES: 'INVALID_SCHEDULED_MEETING_DURATION_MINUTES',
590
- INVALID_SCHEDULED_MEETING_REMINDER_DURATION_MINUTES: 'INVALID_SCHEDULED_MEETING_REMINDER_DURATION_MINUTES',
611
+ INVALID_SCHEDULED_MEETING_REMINDER_DURATION_MINUTES:
612
+ 'INVALID_SCHEDULED_MEETING_REMINDER_DURATION_MINUTES',
591
613
  EMPTY_SCHEDULED_MEETING_ORGANIZER: 'EMPTY_SCHEDULED_MEETING_ORGANIZER',
592
614
  INVALID_MEETING_ID_FORMAT: 'INVALID_MEETING_ID_FORMAT',
593
615
  INVALID_SIP_URL_FORMAT: 'INVALID_SIP_URL_FORMAT',
@@ -668,13 +690,12 @@ export const MEETING_ERRORS = {
668
690
  SERVICE_UNAVAILABLE: 'SERVICE_UNAVAILABLE',
669
691
 
670
692
  SOCKET_TIMEOUT: 'SOCKET_TIMEOUT',
671
- NO_HTTP_RESPONSE: 'NO_HTTP_RESPONSE'
693
+ NO_HTTP_RESPONSE: 'NO_HTTP_RESPONSE',
672
694
  };
673
695
 
674
-
675
696
  export const MEETING_END_REASON = {
676
697
  INACTIVE: 'INACTIVE',
677
- MEDIA_RELEASED: 'MEDIA_RELEASED'
698
+ MEDIA_RELEASED: 'MEDIA_RELEASED',
678
699
  };
679
700
 
680
701
  export const DISPLAY_HINTS = {
@@ -706,7 +727,7 @@ export const DISPLAY_HINTS = {
706
727
 
707
728
  export const SELF_ROLES = {
708
729
  COHOST: 'COHOST',
709
- MODERATOR: 'MODERATOR'
730
+ MODERATOR: 'MODERATOR',
710
731
  };
711
732
 
712
733
  export const MEETING_STATE = {
@@ -721,8 +742,8 @@ export const MEETING_STATE = {
721
742
  TERMINATING: 'TERMINATING',
722
743
  LEFT: 'LEFT',
723
744
  ENDED: 'ENDED',
724
- ERROR: 'ERROR'
725
- }
745
+ ERROR: 'ERROR',
746
+ },
726
747
  };
727
748
 
728
749
  export const MEETING_STATE_MACHINE = {
@@ -734,7 +755,7 @@ export const MEETING_STATE_MACHINE = {
734
755
  DECLINE: 'decline',
735
756
  LEAVE: 'leave',
736
757
  END: 'end',
737
- RESET: 'reset'
758
+ RESET: 'reset',
738
759
  },
739
760
  STATES: {
740
761
  ERROR: 'ERROR',
@@ -743,35 +764,35 @@ export const MEETING_STATE_MACHINE = {
743
764
  DECLINED: 'DECLINED',
744
765
  RINGING: 'RINGING',
745
766
  JOINED: 'JOINED',
746
- ANSWERED: 'ANSWERED'
747
- }
767
+ ANSWERED: 'ANSWERED',
768
+ },
748
769
  };
749
770
 
750
771
  export const MEETING_AUDIO_STATE_MACHINE = {
751
772
  TRANSITIONS: {
752
773
  TOGGLE: 'toggle',
753
- INIT: 'init'
774
+ INIT: 'init',
754
775
  },
755
776
  STATES: {
756
777
  MUTE_SELF: 'SELF_AUDIO_OFF',
757
- UNMUTE_SELF: 'SELF_AUDIO_ON'
758
- }
778
+ UNMUTE_SELF: 'SELF_AUDIO_ON',
779
+ },
759
780
  };
760
781
 
761
782
  export const MEETING_VIDEO_STATE_MACHINE = {
762
783
  TRANSITIONS: {
763
784
  TOGGLE: 'toggle',
764
- INIT: 'init'
785
+ INIT: 'init',
765
786
  },
766
787
  STATES: {
767
788
  MUTE_SELF: 'SELF_VIDEO_OFF',
768
- UNMUTE_SELF: 'SELF_VIDEO_ON'
769
- }
789
+ UNMUTE_SELF: 'SELF_VIDEO_ON',
790
+ },
770
791
  };
771
792
 
772
793
  export const PEER_CONNECTION_STATE = {
773
794
  CLOSED: 'closed',
774
- FAILED: 'failed'
795
+ FAILED: 'failed',
775
796
  };
776
797
 
777
798
  export const RECONNECTION = {
@@ -780,23 +801,23 @@ export const RECONNECTION = {
780
801
  COMPLETE: 'COMPLETE',
781
802
  FAILURE: 'FAILURE',
782
803
  DEFAULT_TRY_COUNT: 0,
783
- DEFAULT_STATUS: ''
784
- }
804
+ DEFAULT_STATUS: '',
805
+ },
785
806
  };
786
807
 
787
808
  export const RESOURCE = {
788
809
  CLUSTERS: 'clusters',
789
810
  REACHABILITY: 'reachability',
790
- LOCI: 'loci'
811
+ LOCI: 'loci',
791
812
  };
792
813
 
793
814
  export const REACHABILITY = {
794
- localStorage: 'reachability.result'
815
+ localStorage: 'reachability.result',
795
816
  };
796
817
 
797
818
  export const ROAP = {
798
819
  ROAP_TRANSITIONS: {
799
- STEP: 'step'
820
+ STEP: 'step',
800
821
  },
801
822
  ROAP_TYPES: {
802
823
  OFFER: 'OFFER',
@@ -819,7 +840,7 @@ export const ROAP = {
819
840
  IDLE_LOCAL_OFFER: 'IDLE_LOCAL_OFFER',
820
841
  IDLE_REMOTE_OFFER: 'IDLE_REMOTE_OFFER',
821
842
  GLARE: 'GLARE',
822
- ERROR: 'ERROR'
843
+ ERROR: 'ERROR',
823
844
  },
824
845
  ROAP_SIGNAL: {
825
846
  RX_OFFER: 'RX_OFFER',
@@ -828,7 +849,7 @@ export const ROAP = {
828
849
  TX_ANSWER: 'TX_ANSWER',
829
850
  RX_OK: 'RX_OK',
830
851
  TX_OK: 'TX_OK',
831
- GLARE_RESOLVED: 'GLARE_RESOLVED'
852
+ GLARE_RESOLVED: 'GLARE_RESOLVED',
832
853
  },
833
854
  RECEIVE_ROAP_MSG: 'RECEIVE_ROAP_MSG',
834
855
  SEND_ROAP_MSG: 'SEND_ROAP_MSG',
@@ -838,12 +859,12 @@ export const ROAP = {
838
859
  ROAP_MERCURY: 'event:locus.message.roap',
839
860
  ROAP_VERSION: '2',
840
861
  RX_: 'RX_',
841
- TX_: 'TX_'
862
+ TX_: 'TX_',
842
863
  };
843
864
 
844
865
  export const MediaContent = {
845
866
  main: 'main',
846
- slides: 'slides'
867
+ slides: 'slides',
847
868
  };
848
869
 
849
870
  export const SDP = {
@@ -859,20 +880,20 @@ export const SDP = {
859
880
  // Edonus repeated key frames request
860
881
  PERIODIC_KEYFRAME: 'a=periodic-keyframes:20',
861
882
  CARRIAGE_RETURN: '\r\n',
862
- BAD_MEDIA_PORTS: [0]
883
+ BAD_MEDIA_PORTS: [0],
863
884
  };
864
885
 
865
886
  export const NETWORK_STATUS = {
866
887
  DISCONNECTED: 'DISCONNECTED',
867
888
  RECONNECTING: 'RECONNECTING',
868
- CONNECTED: 'CONNECTED'
889
+ CONNECTED: 'CONNECTED',
869
890
  };
870
891
 
871
892
  export const NETWORK_TYPE = {
872
893
  VPN: 'vpn',
873
894
  UNKNOWN: 'unknown',
874
895
  WIFI: 'wifi',
875
- ETHERNET: 'ethernet'
896
+ ETHERNET: 'ethernet',
876
897
  };
877
898
 
878
899
  export const STATS = {
@@ -896,7 +917,7 @@ export const MQA_STATS = {
896
917
  isMain: false, // always true for share sender
897
918
  mariFecEnabled: false, // unavailable
898
919
  mariQosEnabled: false, // unavailable
899
- multistreamEnabled: false // unavailable
920
+ multistreamEnabled: false, // unavailable
900
921
  },
901
922
  availableBitrate: 0,
902
923
  dtlsBitrate: 0, // unavailable
@@ -915,7 +936,7 @@ export const MQA_STATS = {
915
936
  rtpPackets: 0,
916
937
  stunBitrate: 0, // unavailable
917
938
  stunPackets: 0, // unavailable
918
- transportType: 'UDP' // TODO: parse the transport type from the SDP and save globally
939
+ transportType: 'UDP', // TODO: parse the transport type from the SDP and save globally
919
940
  },
920
941
  streams: [
921
942
  {
@@ -927,7 +948,7 @@ export const MQA_STATS = {
927
948
  rtpPackets: 0,
928
949
  ssci: 0, // unavailable
929
950
  transmittedBitrate: 0,
930
- transmittedFrameRate: 0
951
+ transmittedFrameRate: 0,
931
952
  },
932
953
  h264CodecProfile: 'BP', // TODO: parse the profile level from h264 in the SDP and save globally
933
954
  localConfigurationChanges: 0, // unavailable
@@ -937,9 +958,9 @@ export const MQA_STATS = {
937
958
  transmittedFrameSize: 0, // unavailable
938
959
  transmittedHeight: 0,
939
960
  transmittedKeyFrames: 0,
940
- transmittedWidth: 0
941
- }
942
- ]
961
+ transmittedWidth: 0,
962
+ },
963
+ ],
943
964
  },
944
965
  intervalMetadata: {
945
966
  memoryUsage: {
@@ -950,14 +971,14 @@ export const MQA_STATS = {
950
971
  processMaximumMemoryBytes: 0,
951
972
  processMaximumMemoryUsage: 0,
952
973
  systemAverageMemoryUsage: 0,
953
- systemMaximumMemoryUsage: 0
974
+ systemMaximumMemoryUsage: 0,
954
975
  },
955
976
  peerReflexiveIP: 'NULL', // TODO: save after ice trickling completes and use as a global variable
956
977
  processAverageCPU: 0,
957
978
  processMaximumCPU: 0,
958
979
  systemAverageCPU: 0,
959
- systemMaximumCPU: 0
960
- }
980
+ systemMaximumCPU: 0,
981
+ },
961
982
  };
962
983
 
963
984
  // ****** MEDIA QUALITY CONSTANTS ****** //
@@ -972,56 +993,55 @@ export const QUALITY_LEVELS = {
972
993
  '1080p': '1080p',
973
994
  };
974
995
 
975
-
976
996
  export const AVAILABLE_RESOLUTIONS = {
977
997
  '360p': {
978
998
  video: {
979
999
  width: {
980
1000
  max: 640,
981
- ideal: 640
1001
+ ideal: 640,
982
1002
  },
983
1003
  height: {
984
1004
  max: 360,
985
- ideal: 360
986
- }
987
- }
1005
+ ideal: 360,
1006
+ },
1007
+ },
988
1008
  },
989
1009
  '480p': {
990
1010
  video: {
991
1011
  width: {
992
1012
  max: 640,
993
- ideal: 640
1013
+ ideal: 640,
994
1014
  },
995
1015
  height: {
996
1016
  max: 480,
997
- ideal: 480
998
- }
999
- }
1017
+ ideal: 480,
1018
+ },
1019
+ },
1000
1020
  },
1001
1021
  '720p': {
1002
1022
  video: {
1003
1023
  width: {
1004
1024
  max: 1280,
1005
- ideal: 1280
1025
+ ideal: 1280,
1006
1026
  },
1007
1027
  height: {
1008
1028
  max: 720,
1009
- ideal: 720
1010
- }
1011
- }
1029
+ ideal: 720,
1030
+ },
1031
+ },
1012
1032
  },
1013
1033
  '1080p': {
1014
1034
  video: {
1015
1035
  width: {
1016
1036
  max: 1920,
1017
- ideal: 1920
1037
+ ideal: 1920,
1018
1038
  },
1019
1039
  height: {
1020
1040
  max: 1080,
1021
- ideal: 1080
1022
- }
1023
- }
1024
- }
1041
+ ideal: 1080,
1042
+ },
1043
+ },
1044
+ },
1025
1045
  };
1026
1046
 
1027
1047
  export const VIDEO_RESOLUTIONS = {
@@ -1042,21 +1062,20 @@ export const REMOTE_VIDEO_CONSTRAINTS = {
1042
1062
  MAX_FS: {
1043
1063
  [QUALITY_LEVELS.LOW]: 1620,
1044
1064
  [QUALITY_LEVELS.MEDIUM]: 3600,
1045
- [QUALITY_LEVELS.HIGH]: 8192
1046
- }
1065
+ [QUALITY_LEVELS.HIGH]: 8192,
1066
+ },
1047
1067
  };
1048
1068
 
1049
1069
  /*
1050
- * mqa Interval for sending stats metrics
1051
- */
1070
+ * mqa Interval for sending stats metrics
1071
+ */
1052
1072
 
1053
1073
  export const MQA_INTEVAL = 60000; // mqa analyzer interval its fixed to 60000
1054
1074
 
1055
-
1056
1075
  export const MEDIA_DEVICES = {
1057
1076
  MICROPHONE: 'microphone',
1058
1077
  SPEAKER: 'speaker',
1059
- CAMERA: 'camera'
1078
+ CAMERA: 'camera',
1060
1079
  };
1061
1080
 
1062
1081
  export const METRICS_JOIN_TIMES_MAX_DURATION = 1200000;
@@ -1067,31 +1086,31 @@ export const PSTN_STATUS = {
1067
1086
  LEFT: 'LEFT', // user has disconnected from the pstn device
1068
1087
  TRANSFERRING: 'TRANSFERRING', // usually happens in dial-out after the CONNECTED state
1069
1088
  SUCCESS: 'SUCCESS', // happens after the transfer (TRANSFERRING) is successful
1070
- UNKNOWN: '' // placeholder if we haven't been told what the status is
1089
+ UNKNOWN: '', // placeholder if we haven't been told what the status is
1071
1090
  };
1072
1091
 
1073
1092
  export const PASSWORD_STATUS = {
1074
1093
  NOT_REQUIRED: 'NOT_REQUIRED', // password is not required to join the meeting
1075
1094
  REQUIRED: 'REQUIRED', // client needs to provide the password by calling verifyPassword() before calling join()
1076
1095
  UNKNOWN: 'UNKNOWN', // we are waiting for information from the backend if password is required or not
1077
- VERIFIED: 'VERIFIED' // client has already provided the password and it has been verified, client can proceed to call join()
1096
+ VERIFIED: 'VERIFIED', // client has already provided the password and it has been verified, client can proceed to call join()
1078
1097
  };
1079
1098
 
1080
1099
  export const MEETING_INFO_FAILURE_REASON = {
1081
1100
  NONE: 'NONE', // meeting info was retrieved succesfully
1082
1101
  WRONG_PASSWORD: 'WRONG_PASSWORD', // meeting requires password and no password or wrong one was provided
1083
1102
  WRONG_CAPTCHA: 'WRONG_CAPTCHA', // wbxappapi requires a captcha code or a wrong captcha code was provided
1084
- OTHER: 'OTHER' // any other error (network, etc)
1103
+ OTHER: 'OTHER', // any other error (network, etc)
1085
1104
  };
1086
1105
 
1087
1106
  export const BNR_STATUS = {
1088
1107
  SHOULD_ENABLE: 'SHOULD_ENABLE',
1089
1108
  ENABLED: 'ENABLED',
1090
1109
  SHOULD_DISABLE: 'SHOULD_DISABLE',
1091
- NOT_ENABLED: 'NOT_ENABLED'
1110
+ NOT_ENABLED: 'NOT_ENABLED',
1092
1111
  };
1093
1112
 
1094
1113
  export const EMBEDDED_APP_TYPES = {
1095
1114
  SLIDO: 'SLIDO',
1096
- OTHER: 'OTHER'
1115
+ OTHER: 'OTHER',
1097
1116
  };