@webex/plugin-meetings 2.59.3-next.1 → 2.59.4
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/.eslintrc.js +6 -6
- package/LICENSE +1 -1
- package/README.md +1204 -1204
- package/UPGRADING.md +287 -287
- package/babel.config.js +3 -3
- package/browsers.js +108 -108
- package/dist/common/browser-detection.d.ts +9 -9
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.d.ts +48 -48
- package/dist/common/collection.js +43 -43
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.d.ts +2 -2
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.d.ts +15 -15
- package/dist/common/errors/captcha-error.js +7 -7
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.d.ts +16 -16
- package/dist/common/errors/intent-to-join.js +7 -7
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.d.ts +17 -17
- package/dist/common/errors/join-meeting.js +8 -8
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.d.ts +15 -15
- package/dist/common/errors/media.js +7 -7
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.d.ts +15 -15
- package/dist/common/errors/parameter.js +7 -7
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.d.ts +15 -15
- package/dist/common/errors/password-error.js +7 -7
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.d.ts +14 -14
- package/dist/common/errors/permission.js +6 -6
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reconnection-in-progress.d.ts +9 -9
- package/dist/common/errors/reconnection-in-progress.js +6 -6
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.d.ts +15 -15
- package/dist/common/errors/reconnection.js +7 -7
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.d.ts +15 -15
- package/dist/common/errors/stats.js +7 -7
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.d.ts +81 -81
- package/dist/common/errors/webex-errors.js +42 -42
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.d.ts +20 -20
- package/dist/common/errors/webex-meetings-error.js +12 -12
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.d.ts +17 -17
- package/dist/common/events/events-scope.js +10 -10
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.d.ts +12 -12
- package/dist/common/events/events.js +4 -4
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.d.ts +2 -2
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.d.ts +2 -2
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.d.ts +2 -2
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.d.ts +2 -2
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.d.ts +34 -34
- package/dist/common/logs/request.js +18 -18
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.d.ts +32 -32
- package/dist/common/queue.js +18 -18
- package/dist/common/queue.js.map +1 -1
- package/dist/config.d.ts +73 -73
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +926 -924
- package/dist/constants.js +11 -9
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.d.ts +4 -4
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.d.ts +5 -5
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.d.ts +120 -120
- package/dist/controls-options-manager/index.js +81 -81
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.d.ts +7 -7
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js.map +1 -1
- package/dist/locus-info/controlsUtils.d.ts +2 -2
- package/dist/locus-info/controlsUtils.js +21 -21
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.d.ts +2 -2
- package/dist/locus-info/embeddedAppsUtils.js +14 -14
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.d.ts +2 -2
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.d.ts +2 -2
- package/dist/locus-info/hostUtils.js +19 -19
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.d.ts +269 -269
- package/dist/locus-info/index.js +180 -180
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.d.ts +2 -2
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.d.ts +2 -2
- package/dist/locus-info/mediaSharesUtils.js +50 -50
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.d.ts +212 -212
- package/dist/locus-info/parser.js +136 -136
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.d.ts +2 -2
- package/dist/locus-info/selfUtils.js +52 -52
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.d.ts +32 -32
- package/dist/media/index.js +145 -145
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.d.ts +108 -108
- package/dist/media/properties.js +49 -49
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.d.ts +2 -2
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.d.ts +233 -233
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/effectsState.d.ts +42 -42
- package/dist/meeting/effectsState.js +24 -24
- package/dist/meeting/effectsState.js.map +1 -1
- package/dist/meeting/in-meeting-actions.d.ts +79 -79
- package/dist/meeting/in-meeting-actions.js +11 -11
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.d.ts +1621 -1621
- package/dist/meeting/index.js +1538 -1518
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.d.ts +116 -116
- package/dist/meeting/muteState.js +85 -85
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.d.ts +255 -255
- package/dist/meeting/request.js +141 -141
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.d.ts +9 -9
- package/dist/meeting/state.js +30 -30
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.d.ts +2 -2
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.d.ts +20 -20
- package/dist/meeting-info/collection.js +11 -11
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.d.ts +57 -57
- package/dist/meeting-info/index.js +50 -50
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.d.ts +93 -93
- package/dist/meeting-info/meeting-info-v2.js +52 -52
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.d.ts +22 -22
- package/dist/meeting-info/request.js +14 -14
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.d.ts +2 -2
- package/dist/meeting-info/util.js +9 -9
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.d.ts +2 -2
- package/dist/meeting-info/utilv2.js +20 -20
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.d.ts +23 -23
- package/dist/meetings/collection.js +14 -14
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.d.ts +296 -296
- package/dist/meetings/index.js +259 -259
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.d.ts +27 -27
- package/dist/meetings/request.js +15 -15
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.d.ts +18 -18
- package/dist/meetings/util.js +29 -29
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.d.ts +147 -147
- package/dist/member/index.js +214 -214
- package/dist/member/index.js.map +1 -1
- package/dist/member/member.types.d.ts +11 -11
- package/dist/member/member.types.js.map +1 -1
- package/dist/member/util.d.ts +2 -2
- package/dist/member/util.js +60 -60
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.d.ts +24 -24
- package/dist/members/collection.js +11 -11
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.d.ts +298 -298
- package/dist/members/index.js +275 -275
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.d.ts +50 -50
- package/dist/members/request.js +27 -27
- package/dist/members/request.js.map +1 -1
- package/dist/members/util.d.ts +2 -2
- package/dist/members/util.js +21 -21
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.d.ts +169 -169
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/constants.d.ts +59 -57
- package/dist/metrics/constants.js +2 -0
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.d.ts +152 -152
- package/dist/metrics/index.js +90 -90
- package/dist/metrics/index.js.map +1 -1
- package/dist/networkQualityMonitor/index.d.ts +70 -70
- package/dist/networkQualityMonitor/index.js +65 -65
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/peer-connection-manager/index.d.ts +6 -6
- package/dist/peer-connection-manager/index.js +87 -87
- package/dist/peer-connection-manager/index.js.map +1 -1
- package/dist/peer-connection-manager/util.d.ts +6 -6
- package/dist/peer-connection-manager/util.js +9 -9
- package/dist/peer-connection-manager/util.js.map +1 -1
- package/dist/personal-meeting-room/index.d.ts +47 -47
- package/dist/personal-meeting-room/index.js +67 -67
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.d.ts +14 -14
- package/dist/personal-meeting-room/request.js +7 -7
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.d.ts +2 -2
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.d.ts +139 -139
- package/dist/reachability/index.js +110 -110
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.d.ts +35 -35
- package/dist/reachability/request.js +15 -15
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/reactions.d.ts +4 -4
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.d.ts +32 -32
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.d.ts +112 -112
- package/dist/reconnection-manager/index.js +112 -112
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.d.ts +7 -7
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.d.ts +193 -193
- package/dist/recording-controller/index.js +127 -127
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.d.ts +13 -13
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/collection.d.ts +10 -10
- package/dist/roap/collection.js.map +1 -1
- package/dist/roap/handler.d.ts +47 -47
- package/dist/roap/handler.js +27 -27
- package/dist/roap/handler.js.map +1 -1
- package/dist/roap/index.d.ts +116 -116
- package/dist/roap/index.js +111 -111
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.d.ts +35 -35
- package/dist/roap/request.js +17 -17
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/state.d.ts +9 -9
- package/dist/roap/state.js +14 -14
- package/dist/roap/state.js.map +1 -1
- package/dist/roap/turnDiscovery.d.ts +67 -67
- package/dist/roap/turnDiscovery.js +46 -46
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/util.d.ts +2 -2
- package/dist/roap/util.js.map +1 -1
- package/dist/statsAnalyzer/global.d.ts +118 -126
- package/dist/statsAnalyzer/global.js +4 -12
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.d.ts +193 -190
- package/dist/statsAnalyzer/index.js +182 -140
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.d.ts +22 -22
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.d.ts +64 -64
- package/dist/transcription/index.js +42 -42
- package/dist/transcription/index.js.map +1 -1
- package/internal-README.md +172 -172
- package/jest.config.js +3 -3
- package/package.json +21 -22
- package/process +1 -1
- package/src/common/browser-detection.ts +39 -39
- package/src/common/collection.ts +94 -94
- package/src/common/config.ts +9 -9
- package/src/common/errors/captcha-error.ts +25 -25
- package/src/common/errors/intent-to-join.ts +27 -27
- package/src/common/errors/join-meeting.ts +32 -32
- package/src/common/errors/media.ts +25 -25
- package/src/common/errors/parameter.ts +33 -33
- package/src/common/errors/password-error.ts +25 -25
- package/src/common/errors/permission.ts +24 -24
- package/src/common/errors/reconnection-in-progress.ts +8 -8
- package/src/common/errors/reconnection.ts +25 -25
- package/src/common/errors/stats.ts +25 -25
- package/src/common/errors/webex-errors.ts +140 -140
- package/src/common/errors/webex-meetings-error.ts +35 -35
- package/src/common/events/events-scope.ts +30 -30
- package/src/common/events/events.ts +25 -25
- package/src/common/events/trigger-proxy.ts +25 -25
- package/src/common/events/util.ts +39 -39
- package/src/common/logs/logger-config.ts +8 -8
- package/src/common/logs/logger-proxy.ts +44 -44
- package/src/common/logs/request.ts +65 -65
- package/src/common/queue.ts +50 -50
- package/src/config.ts +96 -96
- package/src/constants.ts +1123 -1121
- package/src/controls-options-manager/constants.ts +5 -5
- package/src/controls-options-manager/enums.ts +6 -6
- package/src/controls-options-manager/index.ts +183 -183
- package/src/controls-options-manager/util.ts +20 -20
- package/src/index.js +15 -15
- package/src/locus-info/controlsUtils.ts +112 -112
- package/src/locus-info/embeddedAppsUtils.ts +57 -57
- package/src/locus-info/fullState.ts +69 -69
- package/src/locus-info/hostUtils.ts +60 -60
- package/src/locus-info/index.ts +1303 -1303
- package/src/locus-info/infoUtils.ts +101 -101
- package/src/locus-info/mediaSharesUtils.ts +173 -173
- package/src/locus-info/parser.ts +680 -680
- package/src/locus-info/selfUtils.ts +428 -428
- package/src/media/index.ts +675 -675
- package/src/media/properties.ts +313 -313
- package/src/media/util.ts +37 -37
- package/src/mediaQualityMetrics/config.ts +382 -382
- package/src/meeting/effectsState.ts +209 -209
- package/src/meeting/in-meeting-actions.ts +153 -153
- package/src/meeting/index.ts +6572 -6537
- package/src/meeting/muteState.ts +365 -365
- package/src/meeting/request.ts +810 -810
- package/src/meeting/state.ts +194 -194
- package/src/meeting/util.ts +530 -530
- package/src/meeting-info/collection.ts +41 -41
- package/src/meeting-info/index.ts +137 -137
- package/src/meeting-info/meeting-info-v2.ts +273 -273
- package/src/meeting-info/request.ts +46 -46
- package/src/meeting-info/util.ts +314 -314
- package/src/meeting-info/utilv2.ts +324 -324
- package/src/meetings/collection.ts +43 -43
- package/src/meetings/index.ts +1128 -1128
- package/src/meetings/request.ts +81 -81
- package/src/meetings/util.ts +181 -181
- package/src/member/index.ts +446 -446
- package/src/member/member.types.ts +13 -13
- package/src/member/util.ts +286 -286
- package/src/members/collection.ts +40 -40
- package/src/members/index.ts +900 -900
- package/src/members/request.ts +175 -175
- package/src/members/util.ts +260 -260
- package/src/metrics/config.ts +485 -485
- package/src/metrics/constants.ts +63 -61
- package/src/metrics/index.ts +543 -543
- package/src/networkQualityMonitor/index.ts +211 -211
- package/src/peer-connection-manager/index.ts +847 -847
- package/src/peer-connection-manager/util.ts +119 -119
- package/src/personal-meeting-room/index.ts +157 -157
- package/src/personal-meeting-room/request.ts +48 -48
- package/src/personal-meeting-room/util.ts +49 -49
- package/src/reachability/index.ts +478 -478
- package/src/reachability/request.ts +81 -81
- package/src/reactions/reactions.ts +104 -104
- package/src/reactions/reactions.type.ts +36 -36
- package/src/reconnection-manager/index.ts +622 -622
- package/src/recording-controller/enums.ts +8 -8
- package/src/recording-controller/index.ts +315 -315
- package/src/recording-controller/util.ts +58 -58
- package/src/roap/collection.ts +62 -62
- package/src/roap/handler.ts +294 -294
- package/src/roap/index.ts +413 -413
- package/src/roap/request.ts +229 -229
- package/src/roap/state.ts +156 -156
- package/src/roap/turnDiscovery.ts +283 -283
- package/src/roap/util.ts +100 -100
- package/src/statsAnalyzer/global.ts +120 -128
- package/src/statsAnalyzer/index.ts +1329 -1266
- package/src/statsAnalyzer/mqaUtil.ts +290 -290
- package/src/transcription/index.ts +154 -154
- package/test/integration/spec/journey.js +941 -941
- package/test/integration/spec/space-meeting.js +457 -457
- package/test/integration/spec/transcription.js +55 -55
- package/test/unit/spec/common/browser-detection.js +119 -119
- package/test/unit/spec/common/queue.js +69 -69
- package/test/unit/spec/controls-options-manager/index.js +123 -123
- package/test/unit/spec/controls-options-manager/util.js +65 -65
- package/test/unit/spec/fixture/locus.js +406 -406
- package/test/unit/spec/locus-info/controlsUtils.js +82 -82
- package/test/unit/spec/locus-info/embeddedAppsUtils.js +104 -104
- package/test/unit/spec/locus-info/index.js +1272 -1272
- package/test/unit/spec/locus-info/infoUtils.js +138 -138
- package/test/unit/spec/locus-info/lib/BasicSeqCmp.json +975 -975
- package/test/unit/spec/locus-info/lib/SeqCmp.json +522 -522
- package/test/unit/spec/locus-info/lib/selfConstant.js +286 -286
- package/test/unit/spec/locus-info/parser.js +298 -298
- package/test/unit/spec/locus-info/selfUtils.js +185 -185
- package/test/unit/spec/media/properties.ts +305 -305
- package/test/unit/spec/meeting/effectsState.js +281 -281
- package/test/unit/spec/meeting/in-meeting-actions.ts +90 -90
- package/test/unit/spec/meeting/index.js +5298 -5227
- package/test/unit/spec/meeting/muteState.js +430 -430
- package/test/unit/spec/meeting/request.js +317 -317
- package/test/unit/spec/meeting/utils.js +319 -319
- package/test/unit/spec/meeting-info/meetinginfov2.js +376 -376
- package/test/unit/spec/meeting-info/request.js +64 -64
- package/test/unit/spec/meeting-info/util.js +37 -37
- package/test/unit/spec/meeting-info/utilv2.js +330 -330
- package/test/unit/spec/meetings/collection.js +52 -52
- package/test/unit/spec/meetings/index.js +1375 -1375
- package/test/unit/spec/meetings/utils.js +66 -66
- package/test/unit/spec/member/index.js +47 -47
- package/test/unit/spec/member/util.js +80 -80
- package/test/unit/spec/members/index.js +364 -364
- package/test/unit/spec/members/request.js +200 -200
- package/test/unit/spec/members/utils.js +42 -42
- package/test/unit/spec/metrics/index.js +111 -111
- package/test/unit/spec/networkQualityMonitor/index.js +99 -99
- package/test/unit/spec/peerconnection-manager/index.js +218 -218
- package/test/unit/spec/peerconnection-manager/utils.js +49 -49
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +388 -388
- package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +29 -29
- package/test/unit/spec/reachability/index.ts +50 -50
- package/test/unit/spec/reconnection-manager/index.js +206 -206
- package/test/unit/spec/recording-controller/index.js +230 -230
- package/test/unit/spec/recording-controller/util.js +101 -101
- package/test/unit/spec/roap/index.ts +128 -128
- package/test/unit/spec/roap/turnDiscovery.ts +372 -372
- package/test/unit/spec/roap/util.js +30 -30
- package/test/unit/spec/stats-analyzer/index.js +438 -287
- package/test/utils/cmr.js +104 -104
- package/test/utils/testUtils.js +287 -287
- package/test/utils/webex-config.js +77 -77
- package/test/utils/webex-test-users.js +82 -82
- package/tsconfig.json +5 -5
package/dist/member/index.js
CHANGED
|
@@ -11,22 +11,22 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpe
|
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
12
12
|
var _constants = require("../constants");
|
|
13
13
|
var _util = _interopRequireDefault(require("./util"));
|
|
14
|
-
/*!
|
|
15
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
14
|
+
/*!
|
|
15
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
16
16
|
*/
|
|
17
|
-
/**
|
|
18
|
-
* @class Member
|
|
17
|
+
/**
|
|
18
|
+
* @class Member
|
|
19
19
|
*/
|
|
20
20
|
var Member = /*#__PURE__*/function () {
|
|
21
|
-
/**
|
|
22
|
-
* @param {Object} participant - the locus participant
|
|
23
|
-
* @param {Object} [options] - constructor params
|
|
24
|
-
* @param {String} options.selfId
|
|
25
|
-
* @param {String} options.hostId
|
|
26
|
-
* @param {String} options.contentSharingId
|
|
27
|
-
* @param {String} options.type
|
|
28
|
-
* @returns {Member}
|
|
29
|
-
* @memberof Member
|
|
21
|
+
/**
|
|
22
|
+
* @param {Object} participant - the locus participant
|
|
23
|
+
* @param {Object} [options] - constructor params
|
|
24
|
+
* @param {String} options.selfId
|
|
25
|
+
* @param {String} options.hostId
|
|
26
|
+
* @param {String} options.contentSharingId
|
|
27
|
+
* @param {String} options.type
|
|
28
|
+
* @returns {Member}
|
|
29
|
+
* @memberof Member
|
|
30
30
|
*/
|
|
31
31
|
function Member(participant) {
|
|
32
32
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -56,177 +56,177 @@ var Member = /*#__PURE__*/function () {
|
|
|
56
56
|
(0, _defineProperty2.default)(this, "status", void 0);
|
|
57
57
|
(0, _defineProperty2.default)(this, "type", void 0);
|
|
58
58
|
(0, _defineProperty2.default)(this, "namespace", _constants.MEETINGS);
|
|
59
|
-
/**
|
|
60
|
-
* The server participant object
|
|
61
|
-
* @instance
|
|
62
|
-
* @type {Object}
|
|
63
|
-
* @private
|
|
64
|
-
* @memberof Member
|
|
59
|
+
/**
|
|
60
|
+
* The server participant object
|
|
61
|
+
* @instance
|
|
62
|
+
* @type {Object}
|
|
63
|
+
* @private
|
|
64
|
+
* @memberof Member
|
|
65
65
|
*/
|
|
66
66
|
this.participant = null;
|
|
67
|
-
/**
|
|
68
|
-
* The member id
|
|
69
|
-
* @instance
|
|
70
|
-
* @type {String}
|
|
71
|
-
* @public
|
|
72
|
-
* @memberof Member
|
|
67
|
+
/**
|
|
68
|
+
* The member id
|
|
69
|
+
* @instance
|
|
70
|
+
* @type {String}
|
|
71
|
+
* @public
|
|
72
|
+
* @memberof Member
|
|
73
73
|
*/
|
|
74
74
|
this.id = null;
|
|
75
|
-
/**
|
|
76
|
-
* The member name
|
|
77
|
-
* @instance
|
|
78
|
-
* @type {String}
|
|
79
|
-
* @public
|
|
80
|
-
* @memberof Member
|
|
75
|
+
/**
|
|
76
|
+
* The member name
|
|
77
|
+
* @instance
|
|
78
|
+
* @type {String}
|
|
79
|
+
* @public
|
|
80
|
+
* @memberof Member
|
|
81
81
|
*/
|
|
82
82
|
this.name = null;
|
|
83
|
-
/**
|
|
84
|
-
* @instance
|
|
85
|
-
* @type {Boolean}
|
|
86
|
-
* @public
|
|
87
|
-
* @memberof Member
|
|
83
|
+
/**
|
|
84
|
+
* @instance
|
|
85
|
+
* @type {Boolean}
|
|
86
|
+
* @public
|
|
87
|
+
* @memberof Member
|
|
88
88
|
*/
|
|
89
89
|
this.isAudioMuted = null;
|
|
90
|
-
/**
|
|
91
|
-
* @instance
|
|
92
|
-
* @type {Boolean}
|
|
93
|
-
* @public
|
|
94
|
-
* @memberof Member
|
|
90
|
+
/**
|
|
91
|
+
* @instance
|
|
92
|
+
* @type {Boolean}
|
|
93
|
+
* @public
|
|
94
|
+
* @memberof Member
|
|
95
95
|
*/
|
|
96
96
|
this.isVideoMuted = null;
|
|
97
|
-
/**
|
|
98
|
-
* @instance
|
|
99
|
-
* @type {Boolean}
|
|
100
|
-
* @public
|
|
101
|
-
* @memberof Member
|
|
97
|
+
/**
|
|
98
|
+
* @instance
|
|
99
|
+
* @type {Boolean}
|
|
100
|
+
* @public
|
|
101
|
+
* @memberof Member
|
|
102
102
|
*/
|
|
103
103
|
this.isHandRaised = null;
|
|
104
|
-
/**
|
|
105
|
-
* @instance
|
|
106
|
-
* @type {Boolean}
|
|
107
|
-
* @public
|
|
108
|
-
* @memberof Member
|
|
104
|
+
/**
|
|
105
|
+
* @instance
|
|
106
|
+
* @type {Boolean}
|
|
107
|
+
* @public
|
|
108
|
+
* @memberof Member
|
|
109
109
|
*/
|
|
110
110
|
this.isSelf = null;
|
|
111
|
-
/**
|
|
112
|
-
* @instance
|
|
113
|
-
* @type {Boolean}
|
|
114
|
-
* @public
|
|
115
|
-
* @memberof Member
|
|
111
|
+
/**
|
|
112
|
+
* @instance
|
|
113
|
+
* @type {Boolean}
|
|
114
|
+
* @public
|
|
115
|
+
* @memberof Member
|
|
116
116
|
*/
|
|
117
117
|
this.isHost = null;
|
|
118
|
-
/**
|
|
119
|
-
* @instance
|
|
120
|
-
* @type {Boolean}
|
|
121
|
-
* @public
|
|
122
|
-
* @memberof Member
|
|
118
|
+
/**
|
|
119
|
+
* @instance
|
|
120
|
+
* @type {Boolean}
|
|
121
|
+
* @public
|
|
122
|
+
* @memberof Member
|
|
123
123
|
*/
|
|
124
124
|
this.isGuest = null;
|
|
125
|
-
/**
|
|
126
|
-
* @instance
|
|
127
|
-
* @type {Boolean}
|
|
128
|
-
* @public
|
|
129
|
-
* @memberof Member
|
|
125
|
+
/**
|
|
126
|
+
* @instance
|
|
127
|
+
* @type {Boolean}
|
|
128
|
+
* @public
|
|
129
|
+
* @memberof Member
|
|
130
130
|
*/
|
|
131
131
|
this.isInLobby = null;
|
|
132
|
-
/**
|
|
133
|
-
* @instance
|
|
134
|
-
* @type {Boolean}
|
|
135
|
-
* @public
|
|
136
|
-
* @memberof Member
|
|
132
|
+
/**
|
|
133
|
+
* @instance
|
|
134
|
+
* @type {Boolean}
|
|
135
|
+
* @public
|
|
136
|
+
* @memberof Member
|
|
137
137
|
*/
|
|
138
138
|
this.isInMeeting = null;
|
|
139
|
-
/**
|
|
140
|
-
* @instance
|
|
141
|
-
* @type {Boolean}
|
|
142
|
-
* @public
|
|
143
|
-
* @memberof Member
|
|
139
|
+
/**
|
|
140
|
+
* @instance
|
|
141
|
+
* @type {Boolean}
|
|
142
|
+
* @public
|
|
143
|
+
* @memberof Member
|
|
144
144
|
*/
|
|
145
145
|
this.isNotAdmitted = null;
|
|
146
|
-
/**
|
|
147
|
-
* @instance
|
|
148
|
-
* @type {Boolean}
|
|
149
|
-
* @public
|
|
150
|
-
* @memberof Member
|
|
146
|
+
/**
|
|
147
|
+
* @instance
|
|
148
|
+
* @type {Boolean}
|
|
149
|
+
* @public
|
|
150
|
+
* @memberof Member
|
|
151
151
|
*/
|
|
152
152
|
this.isContentSharing = null;
|
|
153
|
-
/**
|
|
154
|
-
* @instance
|
|
155
|
-
* @type {Boolean}
|
|
156
|
-
* @public
|
|
157
|
-
* @memberof Member
|
|
153
|
+
/**
|
|
154
|
+
* @instance
|
|
155
|
+
* @type {Boolean}
|
|
156
|
+
* @public
|
|
157
|
+
* @memberof Member
|
|
158
158
|
*/
|
|
159
159
|
this.status = null;
|
|
160
|
-
/**
|
|
161
|
-
* @instance
|
|
162
|
-
* @type {Boolean}
|
|
163
|
-
* @public
|
|
164
|
-
* @memberof Member
|
|
160
|
+
/**
|
|
161
|
+
* @instance
|
|
162
|
+
* @type {Boolean}
|
|
163
|
+
* @public
|
|
164
|
+
* @memberof Member
|
|
165
165
|
*/
|
|
166
166
|
this.isDevice = null;
|
|
167
|
-
/**
|
|
168
|
-
* @instance
|
|
169
|
-
* @type {Boolean}
|
|
170
|
-
* @public
|
|
171
|
-
* @memberof Member
|
|
167
|
+
/**
|
|
168
|
+
* @instance
|
|
169
|
+
* @type {Boolean}
|
|
170
|
+
* @public
|
|
171
|
+
* @memberof Member
|
|
172
172
|
*/
|
|
173
173
|
this.isUser = null;
|
|
174
|
-
/**
|
|
175
|
-
* Is this member associated to another user by way of pairing (typical of devices)
|
|
176
|
-
* @instance
|
|
177
|
-
* @type {String}
|
|
178
|
-
* @public
|
|
179
|
-
* @memberof Member
|
|
174
|
+
/**
|
|
175
|
+
* Is this member associated to another user by way of pairing (typical of devices)
|
|
176
|
+
* @instance
|
|
177
|
+
* @type {String}
|
|
178
|
+
* @public
|
|
179
|
+
* @memberof Member
|
|
180
180
|
*/
|
|
181
181
|
this.associatedUser = null;
|
|
182
|
-
/**
|
|
183
|
-
* @instance
|
|
184
|
-
* @type {Boolean}
|
|
185
|
-
* @public
|
|
186
|
-
* @memberof Member
|
|
182
|
+
/**
|
|
183
|
+
* @instance
|
|
184
|
+
* @type {Boolean}
|
|
185
|
+
* @public
|
|
186
|
+
* @memberof Member
|
|
187
187
|
*/
|
|
188
188
|
this.isRecording = null;
|
|
189
|
-
/**
|
|
190
|
-
* @instance
|
|
191
|
-
* @type {Boolean}
|
|
192
|
-
* @public
|
|
193
|
-
* @memberof Member
|
|
189
|
+
/**
|
|
190
|
+
* @instance
|
|
191
|
+
* @type {Boolean}
|
|
192
|
+
* @public
|
|
193
|
+
* @memberof Member
|
|
194
194
|
*/
|
|
195
195
|
this.isMutable = null;
|
|
196
|
-
/**
|
|
197
|
-
* @instance
|
|
198
|
-
* @type {Boolean}
|
|
199
|
-
* @public
|
|
200
|
-
* @memberof Member
|
|
196
|
+
/**
|
|
197
|
+
* @instance
|
|
198
|
+
* @type {Boolean}
|
|
199
|
+
* @public
|
|
200
|
+
* @memberof Member
|
|
201
201
|
*/
|
|
202
202
|
this.isRemovable = null;
|
|
203
|
-
/**
|
|
204
|
-
* @instance
|
|
205
|
-
* @type {String}
|
|
206
|
-
* @private
|
|
207
|
-
* @memberof Member
|
|
203
|
+
/**
|
|
204
|
+
* @instance
|
|
205
|
+
* @type {String}
|
|
206
|
+
* @private
|
|
207
|
+
* @memberof Member
|
|
208
208
|
*/
|
|
209
209
|
this.type = null;
|
|
210
|
-
/**
|
|
211
|
-
* @instance
|
|
212
|
-
* @type {Boolean}
|
|
213
|
-
* @public
|
|
214
|
-
* @memberof Member
|
|
210
|
+
/**
|
|
211
|
+
* @instance
|
|
212
|
+
* @type {Boolean}
|
|
213
|
+
* @public
|
|
214
|
+
* @memberof Member
|
|
215
215
|
*/
|
|
216
216
|
this.isModerator = null;
|
|
217
|
-
/**
|
|
218
|
-
* @instance
|
|
219
|
-
* @type {Boolean}
|
|
220
|
-
* @public
|
|
221
|
-
* @memberof Member
|
|
217
|
+
/**
|
|
218
|
+
* @instance
|
|
219
|
+
* @type {Boolean}
|
|
220
|
+
* @public
|
|
221
|
+
* @memberof Member
|
|
222
222
|
*/
|
|
223
223
|
this.isModeratorAssignmentProhibited = null;
|
|
224
|
-
/**
|
|
225
|
-
* @instance
|
|
226
|
-
* @type {IMediaStatus}
|
|
227
|
-
* @public
|
|
228
|
-
* @memberof Member
|
|
229
|
-
* @example {audio: MediaStatus.RECVONLY, video: MediaStatus.SENDRECV}
|
|
224
|
+
/**
|
|
225
|
+
* @instance
|
|
226
|
+
* @type {IMediaStatus}
|
|
227
|
+
* @public
|
|
228
|
+
* @memberof Member
|
|
229
|
+
* @example {audio: MediaStatus.RECVONLY, video: MediaStatus.SENDRECV}
|
|
230
230
|
*/
|
|
231
231
|
this.mediaStatus = {
|
|
232
232
|
audio: null,
|
|
@@ -239,12 +239,12 @@ var Member = /*#__PURE__*/function () {
|
|
|
239
239
|
this.processMember();
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
/**
|
|
243
|
-
* set all the participant values extracted directly from locus participant
|
|
244
|
-
* @param {Object} participant the locus participant object
|
|
245
|
-
* @returns {undefined}
|
|
246
|
-
* @private
|
|
247
|
-
* @memberof Member
|
|
242
|
+
/**
|
|
243
|
+
* set all the participant values extracted directly from locus participant
|
|
244
|
+
* @param {Object} participant the locus participant object
|
|
245
|
+
* @returns {undefined}
|
|
246
|
+
* @private
|
|
247
|
+
* @memberof Member
|
|
248
248
|
*/
|
|
249
249
|
(0, _createClass2.default)(Member, [{
|
|
250
250
|
key: "processParticipant",
|
|
@@ -267,13 +267,13 @@ var Member = /*#__PURE__*/function () {
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
/**
|
|
271
|
-
* Use the members options and participant values to set on the member
|
|
272
|
-
* @param {Object} participant the locus participant object
|
|
273
|
-
* @param {Object} options the passed in options, what was set on members
|
|
274
|
-
* @returns {undefined}
|
|
275
|
-
* @private
|
|
276
|
-
* @memberof Member
|
|
270
|
+
/**
|
|
271
|
+
* Use the members options and participant values to set on the member
|
|
272
|
+
* @param {Object} participant the locus participant object
|
|
273
|
+
* @param {Object} options the passed in options, what was set on members
|
|
274
|
+
* @returns {undefined}
|
|
275
|
+
* @private
|
|
276
|
+
* @memberof Member
|
|
277
277
|
*/
|
|
278
278
|
}, {
|
|
279
279
|
key: "processParticipantOptions",
|
|
@@ -287,11 +287,11 @@ var Member = /*#__PURE__*/function () {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
/**
|
|
291
|
-
* processes what already exists on the member to determine other info about the member
|
|
292
|
-
* @returns {undefined}
|
|
293
|
-
* @private
|
|
294
|
-
* @memberof Member
|
|
290
|
+
/**
|
|
291
|
+
* processes what already exists on the member to determine other info about the member
|
|
292
|
+
* @returns {undefined}
|
|
293
|
+
* @private
|
|
294
|
+
* @memberof Member
|
|
295
295
|
*/
|
|
296
296
|
}, {
|
|
297
297
|
key: "processMember",
|
|
@@ -303,12 +303,12 @@ var Member = /*#__PURE__*/function () {
|
|
|
303
303
|
this.mediaStatus = _util.default.extractMediaStatus(this.participant);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
/**
|
|
307
|
-
* set the status on member object
|
|
308
|
-
* @param {Object} participant the locus participant object
|
|
309
|
-
* @returns {undefined}
|
|
310
|
-
* @private
|
|
311
|
-
* @memberof Member
|
|
306
|
+
/**
|
|
307
|
+
* set the status on member object
|
|
308
|
+
* @param {Object} participant the locus participant object
|
|
309
|
+
* @returns {undefined}
|
|
310
|
+
* @private
|
|
311
|
+
* @memberof Member
|
|
312
312
|
*/
|
|
313
313
|
}, {
|
|
314
314
|
key: "processStatus",
|
|
@@ -333,12 +333,12 @@ var Member = /*#__PURE__*/function () {
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
/**
|
|
337
|
-
* set the isContentSharing on member
|
|
338
|
-
* @param {Boolean} flag
|
|
339
|
-
* @returns {undefined}
|
|
340
|
-
* @public
|
|
341
|
-
* @memberof Member
|
|
336
|
+
/**
|
|
337
|
+
* set the isContentSharing on member
|
|
338
|
+
* @param {Boolean} flag
|
|
339
|
+
* @returns {undefined}
|
|
340
|
+
* @public
|
|
341
|
+
* @memberof Member
|
|
342
342
|
*/
|
|
343
343
|
}, {
|
|
344
344
|
key: "setIsContentSharing",
|
|
@@ -346,12 +346,12 @@ var Member = /*#__PURE__*/function () {
|
|
|
346
346
|
this.isContentSharing = flag;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
/**
|
|
350
|
-
* set the isHost on member
|
|
351
|
-
* @param {Boolean} flag
|
|
352
|
-
* @returns {undefined}
|
|
353
|
-
* @public
|
|
354
|
-
* @memberof Member
|
|
349
|
+
/**
|
|
350
|
+
* set the isHost on member
|
|
351
|
+
* @param {Boolean} flag
|
|
352
|
+
* @returns {undefined}
|
|
353
|
+
* @public
|
|
354
|
+
* @memberof Member
|
|
355
355
|
*/
|
|
356
356
|
}, {
|
|
357
357
|
key: "setIsHost",
|
|
@@ -359,12 +359,12 @@ var Member = /*#__PURE__*/function () {
|
|
|
359
359
|
this.isHost = flag;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
/**
|
|
363
|
-
* set the isSelf on member
|
|
364
|
-
* @param {Boolean} flag
|
|
365
|
-
* @returns {undefined}
|
|
366
|
-
* @public
|
|
367
|
-
* @memberof Member
|
|
362
|
+
/**
|
|
363
|
+
* set the isSelf on member
|
|
364
|
+
* @param {Boolean} flag
|
|
365
|
+
* @returns {undefined}
|
|
366
|
+
* @public
|
|
367
|
+
* @memberof Member
|
|
368
368
|
*/
|
|
369
369
|
}, {
|
|
370
370
|
key: "setIsSelf",
|
|
@@ -372,13 +372,13 @@ var Member = /*#__PURE__*/function () {
|
|
|
372
372
|
this.isSelf = flag;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
/**
|
|
376
|
-
* determine if this member is content sharing
|
|
377
|
-
* @param {Object} participant
|
|
378
|
-
* @param {String} sharingId
|
|
379
|
-
* @returns {undefined}
|
|
380
|
-
* @public
|
|
381
|
-
* @memberof Member
|
|
375
|
+
/**
|
|
376
|
+
* determine if this member is content sharing
|
|
377
|
+
* @param {Object} participant
|
|
378
|
+
* @param {String} sharingId
|
|
379
|
+
* @returns {undefined}
|
|
380
|
+
* @public
|
|
381
|
+
* @memberof Member
|
|
382
382
|
*/
|
|
383
383
|
}, {
|
|
384
384
|
key: "processIsContentSharing",
|
|
@@ -390,13 +390,13 @@ var Member = /*#__PURE__*/function () {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
/**
|
|
394
|
-
* Determine if this member is recording
|
|
395
|
-
* @param {Object} participant
|
|
396
|
-
* @param {String} recordingId
|
|
397
|
-
* @returns {undefined}
|
|
398
|
-
* @public
|
|
399
|
-
* @memberof Member
|
|
393
|
+
/**
|
|
394
|
+
* Determine if this member is recording
|
|
395
|
+
* @param {Object} participant
|
|
396
|
+
* @param {String} recordingId
|
|
397
|
+
* @returns {undefined}
|
|
398
|
+
* @public
|
|
399
|
+
* @memberof Member
|
|
400
400
|
*/
|
|
401
401
|
}, {
|
|
402
402
|
key: "processIsRecording",
|
|
@@ -404,13 +404,13 @@ var Member = /*#__PURE__*/function () {
|
|
|
404
404
|
this.isRecording = _util.default.isSame(participant, recordingId);
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
/**
|
|
408
|
-
* determine if this member is the self
|
|
409
|
-
* @param {Object} participant
|
|
410
|
-
* @param {String} selfId
|
|
411
|
-
* @returns {undefined}
|
|
412
|
-
* @private
|
|
413
|
-
* @memberof Member
|
|
407
|
+
/**
|
|
408
|
+
* determine if this member is the self
|
|
409
|
+
* @param {Object} participant
|
|
410
|
+
* @param {String} selfId
|
|
411
|
+
* @returns {undefined}
|
|
412
|
+
* @private
|
|
413
|
+
* @memberof Member
|
|
414
414
|
*/
|
|
415
415
|
}, {
|
|
416
416
|
key: "processIsSelf",
|
|
@@ -423,13 +423,13 @@ var Member = /*#__PURE__*/function () {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
/**
|
|
427
|
-
* determine if this member is the host
|
|
428
|
-
* @param {Object} participant
|
|
429
|
-
* @param {String} hostId
|
|
430
|
-
* @returns {undefined}
|
|
431
|
-
* @private
|
|
432
|
-
* @memberof Member
|
|
426
|
+
/**
|
|
427
|
+
* determine if this member is the host
|
|
428
|
+
* @param {Object} participant
|
|
429
|
+
* @param {String} hostId
|
|
430
|
+
* @returns {undefined}
|
|
431
|
+
* @private
|
|
432
|
+
* @memberof Member
|
|
433
433
|
*/
|
|
434
434
|
}, {
|
|
435
435
|
key: "processIsHost",
|
|
@@ -441,12 +441,12 @@ var Member = /*#__PURE__*/function () {
|
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
/**
|
|
445
|
-
* set the type for the member, could be MEETING or CALL
|
|
446
|
-
* @param {String} type
|
|
447
|
-
* @returns {undefined}
|
|
448
|
-
* @private
|
|
449
|
-
* @memberof Member
|
|
444
|
+
/**
|
|
445
|
+
* set the type for the member, could be MEETING or CALL
|
|
446
|
+
* @param {String} type
|
|
447
|
+
* @returns {undefined}
|
|
448
|
+
* @private
|
|
449
|
+
* @memberof Member
|
|
450
450
|
*/
|
|
451
451
|
}, {
|
|
452
452
|
key: "processType",
|
package/dist/member/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_util","_interopRequireDefault","Member","participant","options","arguments","length","undefined","_classCallCheck2","default","_defineProperty2","MEETINGS","id","name","isAudioMuted","isVideoMuted","isHandRaised","isSelf","isHost","isGuest","isInLobby","isInMeeting","isNotAdmitted","isContentSharing","status","isDevice","isUser","associatedUser","isRecording","isMutable","isRemovable","type","isModerator","isModeratorAssignmentProhibited","mediaStatus","audio","video","processParticipant","processParticipantOptions","processMember","_createClass2","key","value","MemberUtil","extractId","extractName","processStatus","processIsSelf","selfId","processIsHost","hostId","processIsContentSharing","contentSharingId","processType","processIsRecording","recordingId","extractMediaStatus","extractStatus","_IN_LOBBY_","_IN_MEETING_","_NOT_IN_MEETING_","setIsContentSharing","flag","setIsHost","setIsSelf","sharingId","isSame","isAssociatedSame","exports"],"sources":["index.ts"],"sourcesContent":["/*!\r\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\r\n */\r\nimport {MEETINGS, _IN_LOBBY_, _NOT_IN_MEETING_, _IN_MEETING_} from '../constants';\r\nimport {IMediaStatus} from './member.types';\r\n\r\nimport MemberUtil from './util';\r\n\r\n/**\r\n * @class Member\r\n */\r\nexport default class Member {\r\n associatedUser: any;\r\n id: any;\r\n isAudioMuted: any;\r\n isContentSharing: any;\r\n isDevice: any;\r\n isGuest: any;\r\n isHandRaised: any;\r\n isHost: any;\r\n isInLobby: any;\r\n isInMeeting: any;\r\n isModerator: any;\r\n isModeratorAssignmentProhibited: any;\r\n isMutable: any;\r\n isNotAdmitted: any;\r\n isRecording: any;\r\n isRemovable: any;\r\n isSelf: any;\r\n isUser: any;\r\n isVideoMuted: any;\r\n mediaStatus: IMediaStatus;\r\n name: any;\r\n participant: any;\r\n status: any;\r\n type: any;\r\n namespace = MEETINGS;\r\n\r\n /**\r\n * @param {Object} participant - the locus participant\r\n * @param {Object} [options] - constructor params\r\n * @param {String} options.selfId\r\n * @param {String} options.hostId\r\n * @param {String} options.contentSharingId\r\n * @param {String} options.type\r\n * @returns {Member}\r\n * @memberof Member\r\n */\r\n constructor(\r\n participant: object,\r\n options:\r\n | {\r\n selfId: string;\r\n hostId: string;\r\n contentSharingId: string;\r\n type: string;\r\n }\r\n | any = {}\r\n ) {\r\n /**\r\n * The server participant object\r\n * @instance\r\n * @type {Object}\r\n * @private\r\n * @memberof Member\r\n */\r\n this.participant = null;\r\n /**\r\n * The member id\r\n * @instance\r\n * @type {String}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.id = null;\r\n /**\r\n * The member name\r\n * @instance\r\n * @type {String}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.name = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isAudioMuted = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isVideoMuted = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isHandRaised = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isSelf = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isHost = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isGuest = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isInLobby = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isInMeeting = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isNotAdmitted = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isContentSharing = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.status = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isDevice = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isUser = null;\r\n /**\r\n * Is this member associated to another user by way of pairing (typical of devices)\r\n * @instance\r\n * @type {String}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.associatedUser = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isRecording = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isMutable = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isRemovable = null;\r\n /**\r\n * @instance\r\n * @type {String}\r\n * @private\r\n * @memberof Member\r\n */\r\n this.type = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isModerator = null;\r\n /**\r\n * @instance\r\n * @type {Boolean}\r\n * @public\r\n * @memberof Member\r\n */\r\n this.isModeratorAssignmentProhibited = null;\r\n /**\r\n * @instance\r\n * @type {IMediaStatus}\r\n * @public\r\n * @memberof Member\r\n * @example {audio: MediaStatus.RECVONLY, video: MediaStatus.SENDRECV}\r\n */\r\n this.mediaStatus = {\r\n audio: null,\r\n video: null,\r\n };\r\n // TODO: more participant types\r\n // such as native client, web client, is a device, what type of phone, etc\r\n this.processParticipant(participant);\r\n this.processParticipantOptions(participant, options);\r\n this.processMember();\r\n }\r\n\r\n /**\r\n * set all the participant values extracted directly from locus participant\r\n * @param {Object} participant the locus participant object\r\n * @returns {undefined}\r\n * @private\r\n * @memberof Member\r\n */\r\n private processParticipant(participant: object) {\r\n this.participant = participant;\r\n if (participant) {\r\n this.id = MemberUtil.extractId(participant);\r\n this.name = MemberUtil.extractName(participant);\r\n this.isAudioMuted = MemberUtil.isAudioMuted(participant);\r\n this.isVideoMuted = MemberUtil.isVideoMuted(participant);\r\n this.isHandRaised = MemberUtil.isHandRaised(participant);\r\n this.isGuest = MemberUtil.isGuest(participant);\r\n this.isUser = MemberUtil.isUser(participant);\r\n this.isDevice = MemberUtil.isDevice(participant);\r\n this.isModerator = MemberUtil.isModerator(participant);\r\n this.isModeratorAssignmentProhibited =\r\n MemberUtil.isModeratorAssignmentProhibited(participant);\r\n this.processStatus(participant);\r\n // must be done last\r\n this.isNotAdmitted = MemberUtil.isNotAdmitted(participant, this.isGuest, this.status);\r\n }\r\n }\r\n\r\n /**\r\n * Use the members options and participant values to set on the member\r\n * @param {Object} participant the locus participant object\r\n * @param {Object} options the passed in options, what was set on members\r\n * @returns {undefined}\r\n * @private\r\n * @memberof Member\r\n */\r\n private processParticipantOptions(participant: object, options: any) {\r\n if (participant && options) {\r\n this.processIsSelf(participant, options.selfId);\r\n this.processIsHost(participant, options.hostId);\r\n this.processIsContentSharing(participant, options.contentSharingId);\r\n this.processType(options.type);\r\n this.processIsRecording(participant, options.recordingId);\r\n }\r\n }\r\n\r\n /**\r\n * processes what already exists on the member to determine other info about the member\r\n * @returns {undefined}\r\n * @private\r\n * @memberof Member\r\n */\r\n private processMember() {\r\n // must occur after self, guest, meeting, and type properties are calculated\r\n this.isRemovable = MemberUtil.isRemovable(\r\n this.isSelf,\r\n this.isGuest,\r\n this.isInMeeting,\r\n this.type\r\n );\r\n // must occur after self, device, meeting, mute status, and type properties are calculated\r\n this.isMutable = MemberUtil.isMutable(\r\n this.isSelf,\r\n this.isDevice,\r\n this.isInMeeting,\r\n this.isAudioMuted,\r\n this.type\r\n );\r\n\r\n this.mediaStatus = MemberUtil.extractMediaStatus(this.participant);\r\n }\r\n\r\n /**\r\n * set the status on member object\r\n * @param {Object} participant the locus participant object\r\n * @returns {undefined}\r\n * @private\r\n * @memberof Member\r\n */\r\n private processStatus(participant: object) {\r\n this.status = MemberUtil.extractStatus(participant);\r\n switch (this.status) {\r\n case _IN_LOBBY_:\r\n this.isInLobby = true;\r\n this.isInMeeting = false;\r\n break;\r\n case _IN_MEETING_:\r\n this.isInLobby = false;\r\n this.isInMeeting = true;\r\n break;\r\n case _NOT_IN_MEETING_:\r\n this.isInLobby = false;\r\n this.isInMeeting = false;\r\n break;\r\n default:\r\n this.isInLobby = false;\r\n this.isInMeeting = false;\r\n }\r\n }\r\n\r\n /**\r\n * set the isContentSharing on member\r\n * @param {Boolean} flag\r\n * @returns {undefined}\r\n * @public\r\n * @memberof Member\r\n */\r\n public setIsContentSharing(flag: boolean) {\r\n this.isContentSharing = flag;\r\n }\r\n\r\n /**\r\n * set the isHost on member\r\n * @param {Boolean} flag\r\n * @returns {undefined}\r\n * @public\r\n * @memberof Member\r\n */\r\n public setIsHost(flag: boolean) {\r\n this.isHost = flag;\r\n }\r\n\r\n /**\r\n * set the isSelf on member\r\n * @param {Boolean} flag\r\n * @returns {undefined}\r\n * @public\r\n * @memberof Member\r\n */\r\n public setIsSelf(flag: boolean) {\r\n this.isSelf = flag;\r\n }\r\n\r\n /**\r\n * determine if this member is content sharing\r\n * @param {Object} participant\r\n * @param {String} sharingId\r\n * @returns {undefined}\r\n * @public\r\n * @memberof Member\r\n */\r\n public processIsContentSharing(participant: object, sharingId: string) {\r\n if (MemberUtil.isUser(participant)) {\r\n this.isContentSharing = MemberUtil.isSame(participant, sharingId);\r\n } else if (MemberUtil.isDevice(participant)) {\r\n this.isContentSharing = MemberUtil.isAssociatedSame(participant, sharingId);\r\n }\r\n }\r\n\r\n /**\r\n * Determine if this member is recording\r\n * @param {Object} participant\r\n * @param {String} recordingId\r\n * @returns {undefined}\r\n * @public\r\n * @memberof Member\r\n */\r\n public processIsRecording(participant: object, recordingId: string) {\r\n this.isRecording = MemberUtil.isSame(participant, recordingId);\r\n }\r\n\r\n /**\r\n * determine if this member is the self\r\n * @param {Object} participant\r\n * @param {String} selfId\r\n * @returns {undefined}\r\n * @private\r\n * @memberof Member\r\n */\r\n private processIsSelf(participant: object, selfId: string) {\r\n if (MemberUtil.isUser(participant)) {\r\n this.isSelf = MemberUtil.isSame(participant, selfId);\r\n } else if (MemberUtil.isDevice(participant)) {\r\n this.isSelf = MemberUtil.isAssociatedSame(participant, selfId);\r\n this.associatedUser = selfId;\r\n }\r\n }\r\n\r\n /**\r\n * determine if this member is the host\r\n * @param {Object} participant\r\n * @param {String} hostId\r\n * @returns {undefined}\r\n * @private\r\n * @memberof Member\r\n */\r\n private processIsHost(participant: object, hostId: string) {\r\n if (MemberUtil.isUser(participant)) {\r\n this.isHost = MemberUtil.isSame(participant, hostId);\r\n } else if (MemberUtil.isDevice(participant)) {\r\n this.isHost = MemberUtil.isAssociatedSame(participant, hostId);\r\n }\r\n }\r\n\r\n /**\r\n * set the type for the member, could be MEETING or CALL\r\n * @param {String} type\r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CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA,qBArBFE,mBAAQ;IAuBlB;AACJ;AACA;AACA;AACA;AACA;AACA;IACI,IAAI,CAACR,WAAW,GAAG,IAAI;IACvB;AACJ;AACA;AACA;AACA;AACA;AACA;IACI,IAAI,CAACS,EAAE,GAAG,IAAI;IACd;AACJ;AACA;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,IAAI,GAAG,IAAI;IAChB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,YAAY,GAAG,IAAI;IACxB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,YAAY,GAAG,IAAI;IACxB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,YAAY,GAAG,IAAI;IACxB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,MAAM,GAAG,IAAI;IAClB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,MAAM,GAAG,IAAI;IAClB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,OAAO,GAAG,IAAI;IACnB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,SAAS,GAAG,IAAI;IACrB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,WAAW,GAAG,IAAI;IACvB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,aAAa,GAAG,IAAI;IACzB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,gBAAgB,GAAG,IAAI;IAC5B;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,MAAM,GAAG,IAAI;IAClB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,QAAQ,GAAG,IAAI;IACpB;AACJ;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,MAAM,GAAG,IAAI;IAClB;AACJ;AACA;AACA;AACA;AACA;AACA;IACI,IAAI,CAACC,cA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AAI,CAACc,MAAM,GAAG0B,aAAU,CAACwB,gBAAgB,CAAChE,WAAW,EAAE6C,MAAM,CAAC;QAC9D,IAAI,CAACrB,cAAc,GAAGqB,MAAM;MAC9B;IACF;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EAPE;IAAAP,GAAA;IAAAC,KAAA,EAQA,SAAAO,cAAsB9C,WAAmB,EAAE+C,MAAc,EAAE;MACzD,IAAIP,aAAU,CAACjB,MAAM,CAACvB,WAAW,CAAC,EAAE;QAClC,IAAI,CAACe,MAAM,GAAGyB,aAAU,CAACuB,MAAM,CAAC/D,WAAW,EAAE+C,MAAM,CAAC;MACtD,CAAC,MAAM,IAAIP,aAAU,CAAClB,QAAQ,CAACtB,WAAW,CAAC,EAAE;QAC3C,IAAI,CAACe,MAAM,GAAGyB,aAAU,CAACwB,gBAAgB,CAAChE,WAAW,EAAE+C,MAAM,CAAC;MAChE;IACF;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;EANE;IAAAT,GAAA;IAAAC,KAAA,EAOA,SAAAW,YAAoBtB,IAAY,EAAE;MAChC,IAAI,CAACA,IAAI,GAAGA,IAAI;IAClB;EAAC;EAAA,OAAA7B,MAAA;AAAA;AAAAkE,OAAA,CAAA3D,OAAA,GAAAP,MAAA"}
|
|
1
|
+
{"version":3,"names":["_constants","require","_util","_interopRequireDefault","Member","participant","options","arguments","length","undefined","_classCallCheck2","default","_defineProperty2","MEETINGS","id","name","isAudioMuted","isVideoMuted","isHandRaised","isSelf","isHost","isGuest","isInLobby","isInMeeting","isNotAdmitted","isContentSharing","status","isDevice","isUser","associatedUser","isRecording","isMutable","isRemovable","type","isModerator","isModeratorAssignmentProhibited","mediaStatus","audio","video","processParticipant","processParticipantOptions","processMember","_createClass2","key","value","MemberUtil","extractId","extractName","processStatus","processIsSelf","selfId","processIsHost","hostId","processIsContentSharing","contentSharingId","processType","processIsRecording","recordingId","extractMediaStatus","extractStatus","_IN_LOBBY_","_IN_MEETING_","_NOT_IN_MEETING_","setIsContentSharing","flag","setIsHost","setIsSelf","sharingId","isSame","isAssociatedSame","exports"],"sources":["index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\nimport {MEETINGS, _IN_LOBBY_, _NOT_IN_MEETING_, _IN_MEETING_} from '../constants';\nimport {IMediaStatus} from './member.types';\n\nimport MemberUtil from './util';\n\n/**\n * @class Member\n */\nexport default class Member {\n associatedUser: any;\n id: any;\n isAudioMuted: any;\n isContentSharing: any;\n isDevice: any;\n isGuest: any;\n isHandRaised: any;\n isHost: any;\n isInLobby: any;\n isInMeeting: any;\n isModerator: any;\n isModeratorAssignmentProhibited: any;\n isMutable: any;\n isNotAdmitted: any;\n isRecording: any;\n isRemovable: any;\n isSelf: any;\n isUser: any;\n isVideoMuted: any;\n mediaStatus: IMediaStatus;\n name: any;\n participant: any;\n status: any;\n type: any;\n namespace = MEETINGS;\n\n /**\n * @param {Object} participant - the locus participant\n * @param {Object} [options] - constructor params\n * @param {String} options.selfId\n * @param {String} options.hostId\n * @param {String} options.contentSharingId\n * @param {String} options.type\n * @returns {Member}\n * @memberof Member\n */\n constructor(\n participant: object,\n options:\n | {\n selfId: string;\n hostId: string;\n contentSharingId: string;\n type: string;\n }\n | any = {}\n ) {\n /**\n * The server participant object\n * @instance\n * @type {Object}\n * @private\n * @memberof Member\n */\n this.participant = null;\n /**\n * The member id\n * @instance\n * @type {String}\n * @public\n * @memberof Member\n */\n this.id = null;\n /**\n * The member name\n * @instance\n * @type {String}\n * @public\n * @memberof Member\n */\n this.name = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isAudioMuted = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isVideoMuted = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isHandRaised = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isSelf = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isHost = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isGuest = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isInLobby = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isInMeeting = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isNotAdmitted = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isContentSharing = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.status = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isDevice = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isUser = null;\n /**\n * Is this member associated to another user by way of pairing (typical of devices)\n * @instance\n * @type {String}\n * @public\n * @memberof Member\n */\n this.associatedUser = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isRecording = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isMutable = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isRemovable = null;\n /**\n * @instance\n * @type {String}\n * @private\n * @memberof Member\n */\n this.type = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isModerator = null;\n /**\n * @instance\n * @type {Boolean}\n * @public\n * @memberof Member\n */\n this.isModeratorAssignmentProhibited = null;\n /**\n * @instance\n * @type {IMediaStatus}\n * @public\n * @memberof Member\n * @example {audio: MediaStatus.RECVONLY, video: MediaStatus.SENDRECV}\n */\n this.mediaStatus = {\n audio: null,\n video: null,\n };\n // TODO: more participant types\n // such as native client, web client, is a device, what type of phone, etc\n this.processParticipant(participant);\n this.processParticipantOptions(participant, options);\n this.processMember();\n }\n\n /**\n * set all the participant values extracted directly from locus participant\n * @param {Object} participant the locus participant object\n * @returns {undefined}\n * @private\n * @memberof Member\n */\n private processParticipant(participant: object) {\n this.participant = participant;\n if (participant) {\n this.id = MemberUtil.extractId(participant);\n this.name = MemberUtil.extractName(participant);\n this.isAudioMuted = MemberUtil.isAudioMuted(participant);\n this.isVideoMuted = MemberUtil.isVideoMuted(participant);\n this.isHandRaised = MemberUtil.isHandRaised(participant);\n this.isGuest = MemberUtil.isGuest(participant);\n this.isUser = MemberUtil.isUser(participant);\n this.isDevice = MemberUtil.isDevice(participant);\n this.isModerator = MemberUtil.isModerator(participant);\n this.isModeratorAssignmentProhibited =\n MemberUtil.isModeratorAssignmentProhibited(participant);\n this.processStatus(participant);\n // must be done last\n this.isNotAdmitted = MemberUtil.isNotAdmitted(participant, this.isGuest, this.status);\n }\n }\n\n /**\n * Use the members options and participant values to set on the member\n * @param {Object} participant the locus participant object\n * @param {Object} options the passed in options, what was set on members\n * @returns {undefined}\n * @private\n * @memberof Member\n */\n private processParticipantOptions(participant: object, options: any) {\n if (participant && options) {\n this.processIsSelf(participant, options.selfId);\n this.processIsHost(participant, options.hostId);\n this.processIsContentSharing(participant, options.contentSharingId);\n this.processType(options.type);\n this.processIsRecording(participant, options.recordingId);\n }\n }\n\n /**\n * processes what already exists on the member to determine other info about the member\n * @returns {undefined}\n * @private\n * @memberof Member\n */\n private processMember() {\n // must occur after self, guest, meeting, and type properties are calculated\n this.isRemovable = MemberUtil.isRemovable(\n this.isSelf,\n this.isGuest,\n this.isInMeeting,\n this.type\n );\n // must occur after self, device, meeting, mute status, and type properties are calculated\n this.isMutable = MemberUtil.isMutable(\n this.isSelf,\n this.isDevice,\n this.isInMeeting,\n this.isAudioMuted,\n this.type\n );\n\n this.mediaStatus = MemberUtil.extractMediaStatus(this.participant);\n }\n\n /**\n * set the status on member object\n * @param {Object} participant the locus participant object\n * @returns {undefined}\n * @private\n * @memberof Member\n */\n private processStatus(participant: object) {\n this.status = MemberUtil.extractStatus(participant);\n switch (this.status) {\n case _IN_LOBBY_:\n this.isInLobby = true;\n this.isInMeeting = false;\n break;\n case _IN_MEETING_:\n this.isInLobby = false;\n this.isInMeeting = true;\n break;\n case _NOT_IN_MEETING_:\n this.isInLobby = false;\n this.isInMeeting = false;\n break;\n default:\n this.isInLobby = false;\n this.isInMeeting = false;\n }\n }\n\n /**\n * set the isContentSharing on member\n * @param {Boolean} flag\n * @returns {undefined}\n * @public\n * @memberof Member\n */\n public setIsContentSharing(flag: boolean) {\n this.isContentSharing = flag;\n }\n\n /**\n * set the isHost on member\n * @param {Boolean} flag\n * @returns {undefined}\n * @public\n * @memberof Member\n */\n public setIsHost(flag: boolean) {\n this.isHost = flag;\n }\n\n /**\n * set the isSelf on member\n * @param {Boolean} flag\n * @returns {undefined}\n * @public\n * @memberof Member\n */\n public setIsSelf(flag: boolean) {\n this.isSelf = flag;\n }\n\n /**\n * determine if this member is content sharing\n * @param {Object} participant\n * @param {String} sharingId\n * @returns {undefined}\n * @public\n * @memberof Member\n */\n public processIsContentSharing(participant: object, sharingId: string) {\n if (MemberUtil.isUser(participant)) {\n this.isContentSharing = MemberUtil.isSame(participant, sharingId);\n } else if (MemberUtil.isDevice(participant)) {\n this.isContentSharing = MemberUtil.isAssociatedSame(participant, sharingId);\n }\n }\n\n /**\n * Determine if this member is recording\n * @param {Object} participant\n * @param {String} recordingId\n * @returns {undefined}\n * @public\n * @memberof Member\n */\n public processIsRecording(participant: object, recordingId: string) {\n this.isRecording = MemberUtil.isSame(participant, recordingId);\n }\n\n /**\n * determine if this member is the self\n * @param {Object} participant\n * @param {String} selfId\n * @returns {undefined}\n * @private\n * @memberof Member\n */\n private processIsSelf(participant: object, selfId: string) {\n if (MemberUtil.isUser(participant)) {\n this.isSelf = MemberUtil.isSame(participant, selfId);\n } else if (MemberUtil.isDevice(participant)) {\n this.isSelf = MemberUtil.isAssociatedSame(participant, selfId);\n this.associatedUser = selfId;\n }\n }\n\n /**\n * determine if this member is the host\n * @param {Object} participant\n * @param {String} hostId\n * @returns {undefined}\n * @private\n * @memberof Member\n */\n private processIsHost(participant: object, hostId: string) {\n if (MemberUtil.isUser(participant)) {\n this.isHost = MemberUtil.isSame(participant, hostId);\n } else if (MemberUtil.isDevice(participant)) {\n this.isHost = MemberUtil.isAssociatedSame(participant, hostId);\n }\n }\n\n /**\n * set the type for the member, could be MEETING or CALL\n * @param {String} type\n * @returns {undefined}\n * @private\n * @memberof Member\n */\n private processType(type: string) {\n this.type = type;\n }\n}\n"],"mappings":";;;;;;;;;;;AAGA,IAAAA,UAAA,GAAAC,OAAA;AAGA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OAAA;AANA;AACA;AACA;AAMA;AACA;AACA;AAFA,IAGqBG,MAAM;EA2BzB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAAA,OACEC,WAAmB,EASnB;IAAA,IARAC,OAOO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IAAA,IAAAG,gBAAA,CAAAC,OAAA,QAAAP,MAAA;IAAA,IAAAQ,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAA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