@agilemotion/oui-react-js 1.6.0 → 1.6.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.
- package/dist/ApplicationManager.js +698 -421
- package/dist/BasicApp.js +5 -5
- package/dist/BasicAppHome.js +55 -26
- package/dist/DynamicJS.js +147 -65
- package/dist/InteractionPortalApp.css +1 -1
- package/dist/InteractionPortalApp.js +5 -5
- package/dist/InteractionPortalAppHome.js +65 -18
- package/dist/InteractionPortalApp_old.js +107 -61
- package/dist/RestUtils.js +339 -287
- package/dist/TypedValue.js +18 -15
- package/dist/Utils.js +375 -276
- package/dist/WithRouter.js +6 -6
- package/dist/assets/jss/components/authNavbarStyle.js +166 -164
- package/dist/assets/jss/components/buttonStyle.js +1 -1
- package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
- package/dist/assets/jss/components/cardBodyStyle.js +1 -1
- package/dist/assets/jss/components/cardFooterStyle.js +1 -1
- package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
- package/dist/assets/jss/components/cardIconStyle.js +1 -1
- package/dist/assets/jss/components/cardStyle.js +1 -1
- package/dist/assets/jss/components/cardTextStyle.js +1 -1
- package/dist/assets/jss/components/customDropdownStyle.js +168 -169
- package/dist/assets/jss/components/customInputStyle.js +9 -3
- package/dist/assets/jss/components/dropdownStyle.js +69 -69
- package/dist/assets/jss/components/footerStyle.js +19 -13
- package/dist/assets/jss/components/headerLinksStyle.js +45 -48
- package/dist/assets/jss/components/headerStyle.js +68 -65
- package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
- package/dist/assets/jss/components/navbarStyle.js +79 -76
- package/dist/assets/jss/components/sidebarStyle.js +436 -436
- package/dist/assets/jss/components/typographyStyle.js +9 -3
- package/dist/assets/jss/rootStyle.js +96 -81
- package/dist/assets/jss/views/layoutStyle.js +44 -41
- package/dist/assets/jss/views/loginBasicStyle.js +1 -1
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
- package/dist/assets/jss/views/loginStyle.js +82 -77
- package/dist/components/AlertBar.js +50 -17
- package/dist/components/AlertItem.js +35 -12
- package/dist/components/AlertTemplate.js +30 -29
- package/dist/components/Button.js +62 -34
- package/dist/components/Calendar.js +140 -91
- package/dist/components/ConfirmationDialog.js +36 -11
- package/dist/components/DataGrid.js +512 -270
- package/dist/components/DataGridColumn.js +47 -22
- package/dist/components/DataGridFilter.js +186 -105
- package/dist/components/DataGridHeading.js +50 -32
- package/dist/components/Dialog.js +90 -35
- package/dist/components/DocumentTemplateDesigner.js +34 -16
- package/dist/components/DocumentTemplateDesignerComponent.css +0 -157
- package/dist/components/DocumentTemplateDesignerComponent.js +118 -62
- package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
- package/dist/components/DocumentViewer.js +34 -18
- package/dist/components/DocumentViewerComponent.js +26 -9
- package/dist/components/ElementResizeHandler.js +229 -207
- package/dist/components/FileThumb.js +32 -10
- package/dist/components/Graph.js +153 -85
- package/dist/components/GraphNode.js +58 -38
- package/dist/components/HtmlPanel.js +67 -39
- package/dist/components/Icon.js +206 -166
- package/dist/components/LoadingIndicator.js +3 -3
- package/dist/components/LottieIcon.js +1 -1
- package/dist/components/PopupView.js +39 -19
- package/dist/components/Portlet.js +35 -19
- package/dist/components/RegularButton.js +28 -32
- package/dist/components/SignaturePanel.js +37 -17
- package/dist/components/SocketManager.js +178 -119
- package/dist/components/StepperTitleBar.js +62 -42
- package/dist/components/TabPage.js +30 -25
- package/dist/components/TabPanel.js +86 -33
- package/dist/components/TableCellContent.js +51 -32
- package/dist/components/TemplateDesigner.js +173 -121
- package/dist/components/TemplateItemEventHandler.js +335 -221
- package/dist/components/TemplateTable.js +183 -118
- package/dist/components/TitleBar.js +26 -11
- package/dist/components/Toolbar.js +67 -38
- package/dist/components/Tooltip.js +43 -35
- package/dist/components/Tree.js +85 -44
- package/dist/components/UseIsVisible.js +25 -4
- package/dist/components/card/Card.js +27 -33
- package/dist/components/card/CardAvatar.js +20 -19
- package/dist/components/card/CardBody.js +24 -27
- package/dist/components/card/CardFooter.js +23 -24
- package/dist/components/card/CardHeader.js +24 -27
- package/dist/components/card/CardIcon.js +17 -13
- package/dist/components/card/CardText.js +17 -13
- package/dist/components/customInput/CustomInput.js +22 -36
- package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
- package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
- package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
- package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
- package/dist/components/dashboard/components/Header.js +29 -12
- package/dist/components/dashboard/components/LeftDrawer.js +3 -5
- package/dist/components/dashboard/components/UserIdentity.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
- package/dist/components/dashboard/components/portal/Timeline.js +1 -1
- package/dist/components/dashboard/components/portal/Workspace.js +5 -11
- package/dist/components/footer/Footer.js +31 -24
- package/dist/components/footer/HomeFooter.js +68 -34
- package/dist/components/form/AddressSearch.js +78 -42
- package/dist/components/form/AutoComplete.js +136 -55
- package/dist/components/form/BaseField.js +108 -56
- package/dist/components/form/Checkbox.js +10 -8
- package/dist/components/form/DatePicker.js +47 -25
- package/dist/components/form/FieldSet.js +217 -84
- package/dist/components/form/Form.js +334 -200
- package/dist/components/form/GridField.js +185 -82
- package/dist/components/form/IconField.js +9 -7
- package/dist/components/form/ImageEditor.js +141 -92
- package/dist/components/form/LabelField.js +12 -10
- package/dist/components/form/LookupField.js +54 -32
- package/dist/components/form/MultiFileUploadField.js +101 -67
- package/dist/components/form/RadioGroup.js +33 -16
- package/dist/components/form/Section.js +84 -34
- package/dist/components/form/SelectItem.js +55 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
- package/dist/components/form/Switch.js +10 -8
- package/dist/components/form/TextField.js +34 -16
- package/dist/components/form/TimePicker.js +19 -15
- package/dist/components/form/TransferList.js +153 -75
- package/dist/components/form/UploadField.js +183 -128
- package/dist/components/grid/GridContainer.js +12 -8
- package/dist/components/grid/GridItem.js +12 -8
- package/dist/components/layout/CollapsiblePanel.js +44 -18
- package/dist/components/layout/Layout.js +81 -40
- package/dist/components/layout/VC.css +1 -1
- package/dist/components/layout/View.js +136 -62
- package/dist/components/layout/ViewContainer.js +13 -11
- package/dist/components/layout/ViewPort.js +25 -10
- package/dist/components/layout/Window.js +87 -53
- package/dist/components/layout/WindowViewPort.js +38 -16
- package/dist/components/media/ClosablePanel.js +7 -7
- package/dist/components/media/LobbyWaitingList.js +7 -9
- package/dist/components/media/MediaSoupHelper.js +379 -187
- package/dist/components/media/SideBarContent.js +22 -14
- package/dist/components/media/SocketRequest.js +5 -1
- package/dist/components/media/SocketResponse.js +5 -1
- package/dist/components/media/Timer.js +35 -15
- package/dist/components/media/Toolbar.css +5 -0
- package/dist/components/media/Toolbar.js +220 -102
- package/dist/components/media/ToolbarButton.js +82 -33
- package/dist/components/media/Toolbar_bck.js +142 -70
- package/dist/components/media/Tracks.js +31 -28
- package/dist/components/media/TrainingRoom.js +284 -121
- package/dist/components/media/Transports.js +27 -24
- package/dist/components/media/VCEventManager.js +95 -31
- package/dist/components/media/VCEventType.js +5 -1
- package/dist/components/media/VCParticipantList.js +40 -14
- package/dist/components/media/VCParticipantListItem.js +92 -41
- package/dist/components/media/VCRoom.js +29 -11
- package/dist/components/media/VCRoomParticipant.js +488 -242
- package/dist/components/media/VCRoomRecorder.js +236 -175
- package/dist/components/media/VCRoomWorkspace.js +505 -245
- package/dist/components/media/Video.js +89 -25
- package/dist/components/media/VideoPlayer.js +56 -22
- package/dist/components/media/chat/ChatRoom.js +255 -132
- package/dist/components/media/chat/ChatRoomItem.js +35 -14
- package/dist/components/media/chat/ChatRoomList.js +43 -13
- package/dist/components/menu/CollapsibleMenu.js +39 -20
- package/dist/components/menu/MenuBars.js +81 -48
- package/dist/components/menu/MenuButton.js +95 -60
- package/dist/components/menu/MenuItem.js +28 -9
- package/dist/components/menu/MenuLink.js +12 -10
- package/dist/components/menu/PopupMenu.js +16 -12
- package/dist/components/navbars/AuthNavbar.js +27 -18
- package/dist/components/navbars/HomeNavbar.js +243 -194
- package/dist/components/navbars/PortalNavbar.js +50 -26
- package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
- package/dist/components/signatures/AlertItem.js +36 -13
- package/dist/components/signatures/Card.js +4 -4
- package/dist/components/signatures/DocumentContainer.js +141 -57
- package/dist/components/signatures/ImageSignatureInput.js +90 -59
- package/dist/components/signatures/MenuButton.js +53 -33
- package/dist/components/signatures/Prompt.js +26 -5
- package/dist/components/signatures/ResponsiveTable.js +302 -197
- package/dist/components/signatures/SearchView.js +77 -36
- package/dist/components/signatures/SignatorySearch.js +30 -10
- package/dist/components/signatures/SignatorySearchForm.js +35 -18
- package/dist/components/signatures/SignatureInput.js +56 -26
- package/dist/components/signatures/SignatureInputProps.js +107 -55
- package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
- package/dist/components/signatures/Toolbar.js +135 -94
- package/dist/components/signatures/ViewUtils.js +273 -224
- package/dist/components/typography/Danger.js +3 -5
- package/dist/components/typography/Info.js +3 -5
- package/dist/components/typography/Link.js +3 -5
- package/dist/event/ActionHandlers.js +57 -43
- package/dist/event/Event.js +16 -13
- package/dist/event/EventListener.js +39 -36
- package/dist/event/EventType.js +5 -1
- package/dist/event/LoadDataActionHandler.js +20 -8
- package/dist/event/Observable.js +323 -142
- package/dist/event/RouteActionHandler.js +139 -125
- package/dist/event/ScriptActionHandler.js +20 -8
- package/dist/event/ServiceCallActionHandler.js +51 -39
- package/dist/event/SignalGraphActionHandler.js +19 -7
- package/dist/js/Addresses.js +38 -24
- package/dist/js/Calendar.js +168 -161
- package/dist/js/DynamicLib.js +14 -11
- package/dist/js/Media.js +213 -120
- package/dist/js/Validators.js +6 -5
- package/dist/js/Windows.js +48 -47
- package/dist/redux/store/ConfigureStore.js +17 -9
- package/dist/redux/store/DashboardStore.js +110 -43
- package/dist/redux/store/History.js +1 -1
- package/dist/redux/store/SecurityStore.js +59 -20
- package/dist/security/TokenManager.js +44 -30
- package/dist/theme-default.js +1 -1
- package/dist/view/Dashboard.js +230 -137
- package/dist/view/PortalDashboard.js +5 -5
- package/dist/view/Settings.js +4 -2
- package/dist/view/Views.js +27 -14
- package/dist/view/security/ChangePasswordBasic.js +97 -40
- package/dist/view/security/ForgotPassword.js +59 -22
- package/dist/view/security/ForgotPasswordBasic.js +62 -21
- package/dist/view/security/Login.js +64 -24
- package/dist/view/security/LoginBasic.js +65 -26
- package/dist/view/security/LoginInteractionPortal.js +62 -25
- package/dist/view/security/ResetPassword.js +65 -23
- package/dist/view/security/ResetPasswordBasic.js +91 -37
- package/dist/view/security/Security.js +12 -12
- package/package.json +1 -2
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -154
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
- /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
- /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
|
@@ -15,209 +15,401 @@ var _VCEventManager = _interopRequireDefault(require("./VCEventManager"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
class MediaSoupHelper {
|
|
21
|
-
constructor() {
|
|
22
|
-
_defineProperty(this, "getParticipantDevice", async routerRtpCapabilities => {
|
|
23
|
-
let device;
|
|
24
|
-
|
|
25
|
-
try {
|
|
26
|
-
device = new _mediasoupClient.Device();
|
|
27
|
-
} catch (error) {
|
|
28
|
-
console.error(error);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
await device.load({
|
|
32
|
-
routerRtpCapabilities
|
|
33
|
-
});
|
|
34
|
-
return device;
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
_defineProperty(this, "getConsumeStream", async (producerId, rtpCapabilities, consumerTransport, roomId, userId, type) => {
|
|
38
|
-
console.log("CONSUMING FROM : " + producerId);
|
|
39
|
-
|
|
40
|
-
if (consumerTransport) {
|
|
41
|
-
const data = await _SocketManager.default.emitEvent(_VCEventType.VCEventType.CONSUME, {
|
|
42
|
-
rtpCapabilities,
|
|
43
|
-
consumerTransportId: consumerTransport.id,
|
|
44
|
-
producerId,
|
|
45
|
-
roomId,
|
|
46
|
-
userId,
|
|
47
|
-
kind: type
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
if (data.params) {
|
|
51
|
-
const {
|
|
52
|
-
id,
|
|
53
|
-
kind,
|
|
54
|
-
rtpParameters
|
|
55
|
-
} = data.params;
|
|
56
|
-
let codecOptions = {};
|
|
57
|
-
|
|
58
|
-
try {
|
|
59
|
-
const consumer = await consumerTransport.consume({
|
|
60
|
-
id,
|
|
61
|
-
producerId,
|
|
62
|
-
kind,
|
|
63
|
-
rtpParameters,
|
|
64
|
-
codecOptions
|
|
65
|
-
});
|
|
66
|
-
console.log(consumer);
|
|
67
|
-
const stream = new MediaStream();
|
|
68
|
-
stream.addTrack(consumer.track);
|
|
69
|
-
return {
|
|
70
|
-
consumer,
|
|
71
|
-
stream,
|
|
72
|
-
kind
|
|
73
|
-
};
|
|
74
|
-
} catch (e) {
|
|
75
|
-
console.error(e);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return {};
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
async initConsumerTransport(device, roomId, userId) {
|
|
85
|
-
console.log("CREATING CONSUMER TRANSPORT FOR : " + userId);
|
|
86
|
-
let data = null;
|
|
87
|
-
|
|
88
|
-
try {
|
|
89
|
-
data = await _SocketManager.default.emitEvent(_VCEventType.VCEventType.CREATE_WEBRTC_TRANSPORT, {
|
|
90
|
-
forceTcp: false,
|
|
91
|
-
userId,
|
|
92
|
-
roomId
|
|
93
|
-
});
|
|
94
|
-
} catch (e) {
|
|
95
|
-
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.CREATE_TRANSPORT_FAILED, {});
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (!data || data.status === 'ERROR') {
|
|
99
|
-
if (data) {
|
|
100
|
-
console.error(data.error);
|
|
101
|
-
}
|
|
18
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
102
19
|
|
|
103
|
-
|
|
20
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
104
21
|
|
|
105
|
-
|
|
106
|
-
}
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
107
23
|
|
|
108
|
-
|
|
109
|
-
consumerTransport.on('connect', function ({
|
|
110
|
-
dtlsParameters
|
|
111
|
-
}, callback, errback) {
|
|
112
|
-
console.log("CONSUMER CONNECT DTLS PARAMS : ", dtlsParameters);
|
|
24
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
113
25
|
|
|
114
|
-
|
|
115
|
-
dtlsParameters,
|
|
116
|
-
transportId: data.params.id,
|
|
117
|
-
userId,
|
|
118
|
-
roomId
|
|
119
|
-
}).then(callback).catch(errback);
|
|
120
|
-
}.bind(this));
|
|
121
|
-
consumerTransport.on('connectionstatechange', async function (state) {
|
|
122
|
-
switch (state) {
|
|
123
|
-
case 'connecting':
|
|
124
|
-
break;
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
125
27
|
|
|
126
|
-
|
|
127
|
-
break;
|
|
128
|
-
|
|
129
|
-
case 'failed':
|
|
130
|
-
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.CONSUMER_TRANSPORT_FAILED, {});
|
|
28
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
131
29
|
|
|
132
|
-
|
|
30
|
+
var MediaSoupHelper = /*#__PURE__*/function () {
|
|
31
|
+
function MediaSoupHelper() {
|
|
32
|
+
_classCallCheck(this, MediaSoupHelper);
|
|
33
|
+
|
|
34
|
+
_defineProperty(this, "getParticipantDevice", /*#__PURE__*/function () {
|
|
35
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(routerRtpCapabilities) {
|
|
36
|
+
var device;
|
|
37
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
38
|
+
while (1) {
|
|
39
|
+
switch (_context.prev = _context.next) {
|
|
40
|
+
case 0:
|
|
41
|
+
try {
|
|
42
|
+
device = new _mediasoupClient.Device();
|
|
43
|
+
} catch (error) {
|
|
44
|
+
console.error(error);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
_context.next = 3;
|
|
48
|
+
return device.load({
|
|
49
|
+
routerRtpCapabilities: routerRtpCapabilities
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
case 3:
|
|
53
|
+
return _context.abrupt("return", device);
|
|
54
|
+
|
|
55
|
+
case 4:
|
|
56
|
+
case "end":
|
|
57
|
+
return _context.stop();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, _callee);
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
return function (_x) {
|
|
64
|
+
return _ref.apply(this, arguments);
|
|
65
|
+
};
|
|
66
|
+
}());
|
|
67
|
+
|
|
68
|
+
_defineProperty(this, "getConsumeStream", /*#__PURE__*/function () {
|
|
69
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(producerId, rtpCapabilities, consumerTransport, roomId, userId, type) {
|
|
70
|
+
var data, _data$params, id, kind, rtpParameters, codecOptions, consumer, stream;
|
|
71
|
+
|
|
72
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
73
|
+
while (1) {
|
|
74
|
+
switch (_context2.prev = _context2.next) {
|
|
75
|
+
case 0:
|
|
76
|
+
console.log("CONSUMING FROM : " + producerId);
|
|
77
|
+
|
|
78
|
+
if (!consumerTransport) {
|
|
79
|
+
_context2.next = 21;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
_context2.next = 4;
|
|
84
|
+
return _SocketManager.default.emitEvent(_VCEventType.VCEventType.CONSUME, {
|
|
85
|
+
rtpCapabilities: rtpCapabilities,
|
|
86
|
+
consumerTransportId: consumerTransport.id,
|
|
87
|
+
producerId: producerId,
|
|
88
|
+
roomId: roomId,
|
|
89
|
+
userId: userId,
|
|
90
|
+
kind: type
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
case 4:
|
|
94
|
+
data = _context2.sent;
|
|
95
|
+
|
|
96
|
+
if (!data.params) {
|
|
97
|
+
_context2.next = 21;
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
_data$params = data.params, id = _data$params.id, kind = _data$params.kind, rtpParameters = _data$params.rtpParameters;
|
|
102
|
+
codecOptions = {};
|
|
103
|
+
_context2.prev = 8;
|
|
104
|
+
_context2.next = 11;
|
|
105
|
+
return consumerTransport.consume({
|
|
106
|
+
id: id,
|
|
107
|
+
producerId: producerId,
|
|
108
|
+
kind: kind,
|
|
109
|
+
rtpParameters: rtpParameters,
|
|
110
|
+
codecOptions: codecOptions
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
case 11:
|
|
114
|
+
consumer = _context2.sent;
|
|
115
|
+
console.log(consumer);
|
|
116
|
+
stream = new MediaStream();
|
|
117
|
+
stream.addTrack(consumer.track);
|
|
118
|
+
return _context2.abrupt("return", {
|
|
119
|
+
consumer: consumer,
|
|
120
|
+
stream: stream,
|
|
121
|
+
kind: kind
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
case 18:
|
|
125
|
+
_context2.prev = 18;
|
|
126
|
+
_context2.t0 = _context2["catch"](8);
|
|
127
|
+
console.error(_context2.t0);
|
|
128
|
+
|
|
129
|
+
case 21:
|
|
130
|
+
return _context2.abrupt("return", {});
|
|
131
|
+
|
|
132
|
+
case 22:
|
|
133
|
+
case "end":
|
|
134
|
+
return _context2.stop();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}, _callee2, null, [[8, 18]]);
|
|
138
|
+
}));
|
|
133
139
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return consumerTransport;
|
|
140
|
+
return function (_x2, _x3, _x4, _x5, _x6, _x7) {
|
|
141
|
+
return _ref2.apply(this, arguments);
|
|
142
|
+
};
|
|
143
|
+
}());
|
|
139
144
|
}
|
|
140
145
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
146
|
+
_createClass(MediaSoupHelper, [{
|
|
147
|
+
key: "initConsumerTransport",
|
|
148
|
+
value: function () {
|
|
149
|
+
var _initConsumerTransport = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(device, roomId, userId) {
|
|
150
|
+
var data, consumerTransport;
|
|
151
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
152
|
+
while (1) {
|
|
153
|
+
switch (_context4.prev = _context4.next) {
|
|
154
|
+
case 0:
|
|
155
|
+
console.log("CREATING CONSUMER TRANSPORT FOR : " + userId);
|
|
156
|
+
data = null;
|
|
157
|
+
_context4.prev = 2;
|
|
158
|
+
_context4.next = 5;
|
|
159
|
+
return _SocketManager.default.emitEvent(_VCEventType.VCEventType.CREATE_WEBRTC_TRANSPORT, {
|
|
160
|
+
forceTcp: false,
|
|
161
|
+
userId: userId,
|
|
162
|
+
roomId: roomId
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
case 5:
|
|
166
|
+
data = _context4.sent;
|
|
167
|
+
_context4.next = 11;
|
|
168
|
+
break;
|
|
169
|
+
|
|
170
|
+
case 8:
|
|
171
|
+
_context4.prev = 8;
|
|
172
|
+
_context4.t0 = _context4["catch"](2);
|
|
173
|
+
|
|
174
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.CREATE_TRANSPORT_FAILED, {});
|
|
175
|
+
|
|
176
|
+
case 11:
|
|
177
|
+
if (!(!data || data.status === 'ERROR')) {
|
|
178
|
+
_context4.next = 15;
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (data) {
|
|
183
|
+
console.error(data.error);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.CREATE_TRANSPORT_FAILED, {});
|
|
187
|
+
|
|
188
|
+
return _context4.abrupt("return");
|
|
189
|
+
|
|
190
|
+
case 15:
|
|
191
|
+
consumerTransport = device.createRecvTransport(data.params);
|
|
192
|
+
consumerTransport.on('connect', function (_ref3, callback, errback) {
|
|
193
|
+
var dtlsParameters = _ref3.dtlsParameters;
|
|
194
|
+
console.log("CONSUMER CONNECT DTLS PARAMS : ", dtlsParameters);
|
|
195
|
+
|
|
196
|
+
_SocketManager.default.emitEvent(_VCEventType.VCEventType.CONNECT_TRANSPORT, {
|
|
197
|
+
dtlsParameters: dtlsParameters,
|
|
198
|
+
transportId: data.params.id,
|
|
199
|
+
userId: userId,
|
|
200
|
+
roomId: roomId
|
|
201
|
+
}).then(callback).catch(errback);
|
|
202
|
+
}.bind(this));
|
|
203
|
+
consumerTransport.on('connectionstatechange', /*#__PURE__*/function () {
|
|
204
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(state) {
|
|
205
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
206
|
+
while (1) {
|
|
207
|
+
switch (_context3.prev = _context3.next) {
|
|
208
|
+
case 0:
|
|
209
|
+
_context3.t0 = state;
|
|
210
|
+
_context3.next = _context3.t0 === 'connecting' ? 3 : _context3.t0 === 'connected' ? 4 : _context3.t0 === 'failed' ? 5 : 7;
|
|
211
|
+
break;
|
|
212
|
+
|
|
213
|
+
case 3:
|
|
214
|
+
return _context3.abrupt("break", 8);
|
|
215
|
+
|
|
216
|
+
case 4:
|
|
217
|
+
return _context3.abrupt("break", 8);
|
|
218
|
+
|
|
219
|
+
case 5:
|
|
220
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.CONSUMER_TRANSPORT_FAILED, {});
|
|
221
|
+
|
|
222
|
+
return _context3.abrupt("break", 8);
|
|
223
|
+
|
|
224
|
+
case 7:
|
|
225
|
+
return _context3.abrupt("break", 8);
|
|
226
|
+
|
|
227
|
+
case 8:
|
|
228
|
+
case "end":
|
|
229
|
+
return _context3.stop();
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}, _callee3);
|
|
233
|
+
}));
|
|
234
|
+
|
|
235
|
+
return function (_x11) {
|
|
236
|
+
return _ref4.apply(this, arguments);
|
|
237
|
+
};
|
|
238
|
+
}().bind(this));
|
|
239
|
+
return _context4.abrupt("return", consumerTransport);
|
|
240
|
+
|
|
241
|
+
case 19:
|
|
242
|
+
case "end":
|
|
243
|
+
return _context4.stop();
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}, _callee4, this, [[2, 8]]);
|
|
247
|
+
}));
|
|
159
248
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
let producerTransport = device.createSendTransport(data.params);
|
|
166
|
-
producerTransport.on('connect', async function ({
|
|
167
|
-
dtlsParameters
|
|
168
|
-
}, callback, errback) {
|
|
169
|
-
_SocketManager.default.emitEvent(_VCEventType.VCEventType.CONNECT_TRANSPORT, {
|
|
170
|
-
dtlsParameters,
|
|
171
|
-
transportId: data.params.id,
|
|
172
|
-
roomId,
|
|
173
|
-
userId
|
|
174
|
-
}).then(callback).catch(errback);
|
|
175
|
-
}.bind(this));
|
|
176
|
-
producerTransport.on('produce', async function ({
|
|
177
|
-
kind,
|
|
178
|
-
rtpParameters,
|
|
179
|
-
appData
|
|
180
|
-
}, callback, errback) {
|
|
181
|
-
try {
|
|
182
|
-
const {
|
|
183
|
-
producerId
|
|
184
|
-
} = await _SocketManager.default.emitEvent(_VCEventType.VCEventType.PRODUCE, {
|
|
185
|
-
producerTransportId: producerTransport.id,
|
|
186
|
-
kind,
|
|
187
|
-
rtpParameters,
|
|
188
|
-
roomId,
|
|
189
|
-
userId,
|
|
190
|
-
appData
|
|
191
|
-
});
|
|
192
|
-
callback({
|
|
193
|
-
id: producerId
|
|
194
|
-
});
|
|
195
|
-
} catch (err) {
|
|
196
|
-
errback(err);
|
|
249
|
+
function initConsumerTransport(_x8, _x9, _x10) {
|
|
250
|
+
return _initConsumerTransport.apply(this, arguments);
|
|
197
251
|
}
|
|
198
|
-
}.bind(this));
|
|
199
|
-
producerTransport.on('connectionstatechange', function (state) {
|
|
200
|
-
switch (state) {
|
|
201
|
-
case 'connecting':
|
|
202
|
-
break;
|
|
203
|
-
|
|
204
|
-
case 'connected':
|
|
205
|
-
break;
|
|
206
252
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
253
|
+
return initConsumerTransport;
|
|
254
|
+
}()
|
|
255
|
+
}, {
|
|
256
|
+
key: "initProducerTransport",
|
|
257
|
+
value: function () {
|
|
258
|
+
var _initProducerTransport = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(device, roomId, userId) {
|
|
259
|
+
var data, producerTransport;
|
|
260
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
261
|
+
while (1) {
|
|
262
|
+
switch (_context7.prev = _context7.next) {
|
|
263
|
+
case 0:
|
|
264
|
+
data = null;
|
|
265
|
+
_context7.prev = 1;
|
|
266
|
+
_context7.next = 4;
|
|
267
|
+
return _SocketManager.default.emitEvent(_VCEventType.VCEventType.CREATE_WEBRTC_TRANSPORT, {
|
|
268
|
+
forceTcp: false,
|
|
269
|
+
rtpCapabilities: device.rtpCapabilities,
|
|
270
|
+
roomId: roomId,
|
|
271
|
+
userId: userId
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
case 4:
|
|
275
|
+
data = _context7.sent;
|
|
276
|
+
_context7.next = 10;
|
|
277
|
+
break;
|
|
278
|
+
|
|
279
|
+
case 7:
|
|
280
|
+
_context7.prev = 7;
|
|
281
|
+
_context7.t0 = _context7["catch"](1);
|
|
282
|
+
|
|
283
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.CREATE_TRANSPORT_FAILED, {});
|
|
284
|
+
|
|
285
|
+
case 10:
|
|
286
|
+
if (!(!data || data.status === 'ERROR')) {
|
|
287
|
+
_context7.next = 14;
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
if (data) {
|
|
292
|
+
console.error(data.error);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.CREATE_TRANSPORT_FAILED, {});
|
|
296
|
+
|
|
297
|
+
return _context7.abrupt("return");
|
|
298
|
+
|
|
299
|
+
case 14:
|
|
300
|
+
producerTransport = device.createSendTransport(data.params);
|
|
301
|
+
producerTransport.on('connect', /*#__PURE__*/function () {
|
|
302
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(_ref5, callback, errback) {
|
|
303
|
+
var dtlsParameters;
|
|
304
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
305
|
+
while (1) {
|
|
306
|
+
switch (_context5.prev = _context5.next) {
|
|
307
|
+
case 0:
|
|
308
|
+
dtlsParameters = _ref5.dtlsParameters;
|
|
309
|
+
|
|
310
|
+
_SocketManager.default.emitEvent(_VCEventType.VCEventType.CONNECT_TRANSPORT, {
|
|
311
|
+
dtlsParameters: dtlsParameters,
|
|
312
|
+
transportId: data.params.id,
|
|
313
|
+
roomId: roomId,
|
|
314
|
+
userId: userId
|
|
315
|
+
}).then(callback).catch(errback);
|
|
316
|
+
|
|
317
|
+
case 2:
|
|
318
|
+
case "end":
|
|
319
|
+
return _context5.stop();
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}, _callee5);
|
|
323
|
+
}));
|
|
324
|
+
|
|
325
|
+
return function (_x15, _x16, _x17) {
|
|
326
|
+
return _ref6.apply(this, arguments);
|
|
327
|
+
};
|
|
328
|
+
}().bind(this));
|
|
329
|
+
producerTransport.on('produce', /*#__PURE__*/function () {
|
|
330
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(_ref7, callback, errback) {
|
|
331
|
+
var kind, rtpParameters, appData, _yield$socketManager$, producerId;
|
|
332
|
+
|
|
333
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
334
|
+
while (1) {
|
|
335
|
+
switch (_context6.prev = _context6.next) {
|
|
336
|
+
case 0:
|
|
337
|
+
kind = _ref7.kind, rtpParameters = _ref7.rtpParameters, appData = _ref7.appData;
|
|
338
|
+
_context6.prev = 1;
|
|
339
|
+
_context6.next = 4;
|
|
340
|
+
return _SocketManager.default.emitEvent(_VCEventType.VCEventType.PRODUCE, {
|
|
341
|
+
producerTransportId: producerTransport.id,
|
|
342
|
+
kind: kind,
|
|
343
|
+
rtpParameters: rtpParameters,
|
|
344
|
+
roomId: roomId,
|
|
345
|
+
userId: userId,
|
|
346
|
+
appData: appData
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
case 4:
|
|
350
|
+
_yield$socketManager$ = _context6.sent;
|
|
351
|
+
producerId = _yield$socketManager$.producerId;
|
|
352
|
+
callback({
|
|
353
|
+
id: producerId
|
|
354
|
+
});
|
|
355
|
+
_context6.next = 12;
|
|
356
|
+
break;
|
|
357
|
+
|
|
358
|
+
case 9:
|
|
359
|
+
_context6.prev = 9;
|
|
360
|
+
_context6.t0 = _context6["catch"](1);
|
|
361
|
+
errback(_context6.t0);
|
|
362
|
+
|
|
363
|
+
case 12:
|
|
364
|
+
case "end":
|
|
365
|
+
return _context6.stop();
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}, _callee6, null, [[1, 9]]);
|
|
369
|
+
}));
|
|
370
|
+
|
|
371
|
+
return function (_x18, _x19, _x20) {
|
|
372
|
+
return _ref8.apply(this, arguments);
|
|
373
|
+
};
|
|
374
|
+
}().bind(this));
|
|
375
|
+
producerTransport.on('connectionstatechange', function (state) {
|
|
376
|
+
switch (state) {
|
|
377
|
+
case 'connecting':
|
|
378
|
+
break;
|
|
379
|
+
|
|
380
|
+
case 'connected':
|
|
381
|
+
break;
|
|
382
|
+
|
|
383
|
+
case 'failed':
|
|
384
|
+
producerTransport.close();
|
|
385
|
+
break;
|
|
386
|
+
|
|
387
|
+
default:
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
}.bind(this));
|
|
391
|
+
return _context7.abrupt("return", producerTransport);
|
|
392
|
+
|
|
393
|
+
case 19:
|
|
394
|
+
case "end":
|
|
395
|
+
return _context7.stop();
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}, _callee7, this, [[1, 7]]);
|
|
399
|
+
}));
|
|
210
400
|
|
|
211
|
-
|
|
212
|
-
|
|
401
|
+
function initProducerTransport(_x12, _x13, _x14) {
|
|
402
|
+
return _initProducerTransport.apply(this, arguments);
|
|
213
403
|
}
|
|
214
|
-
}.bind(this));
|
|
215
|
-
return producerTransport;
|
|
216
|
-
}
|
|
217
404
|
|
|
218
|
-
|
|
405
|
+
return initProducerTransport;
|
|
406
|
+
}()
|
|
407
|
+
}]);
|
|
408
|
+
|
|
409
|
+
return MediaSoupHelper;
|
|
410
|
+
}();
|
|
219
411
|
|
|
220
|
-
|
|
412
|
+
var instance = new MediaSoupHelper();
|
|
221
413
|
Object.freeze(instance);
|
|
222
414
|
var _default = instance;
|
|
223
415
|
exports.default = _default;
|
|
@@ -14,27 +14,35 @@ var _VCParticipantList = _interopRequireDefault(require("./VCParticipantList"));
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
//import ChatRoom from '../chat/ChatRoom';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
meetingChat
|
|
24
|
-
} = props;
|
|
17
|
+
var SideBarContent = function SideBarContent(props) {
|
|
18
|
+
var tab = props.tab,
|
|
19
|
+
isHost = props.isHost,
|
|
20
|
+
meetingId = props.meetingId,
|
|
21
|
+
participants = props.participants,
|
|
22
|
+
meetingChat = props.meetingChat;
|
|
25
23
|
|
|
26
|
-
_react.default.useEffect(()
|
|
24
|
+
_react.default.useEffect(function () {}, [meetingChat]);
|
|
27
25
|
|
|
28
26
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
29
27
|
className: 'meeting-room-sb-container'
|
|
30
28
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
31
29
|
className: 'list'
|
|
32
30
|
}, tab === 'People' ? /*#__PURE__*/_react.default.createElement(_VCParticipantList.default, {
|
|
33
|
-
onChangeMeetingHostHandler:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
onChangeMeetingHostHandler: function onChangeMeetingHostHandler(e) {
|
|
32
|
+
return props.onChangeMeetingHostHandler(e);
|
|
33
|
+
},
|
|
34
|
+
onPinHandler: function onPinHandler(participant, pinned) {
|
|
35
|
+
return props.onPinHandler(participant, pinned);
|
|
36
|
+
},
|
|
37
|
+
onBringToViewHandler: function onBringToViewHandler(participant) {
|
|
38
|
+
return props.onBringToViewHandler(participant);
|
|
39
|
+
},
|
|
40
|
+
onHostVideoMute: function onHostVideoMute(participant) {
|
|
41
|
+
return props.onHostVideoMute(participant);
|
|
42
|
+
},
|
|
43
|
+
onHostAudioMute: function onHostAudioMute(participant) {
|
|
44
|
+
return props.onHostAudioMute(participant);
|
|
45
|
+
},
|
|
38
46
|
isHost: isHost,
|
|
39
47
|
participants: participants
|
|
40
48
|
}) : null
|
|
@@ -5,9 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
+
|
|
8
10
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
var SocketRequest = function SocketRequest() {
|
|
13
|
+
_classCallCheck(this, SocketRequest);
|
|
14
|
+
};
|
|
11
15
|
|
|
12
16
|
exports.default = SocketRequest;
|
|
13
17
|
|
|
@@ -5,9 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
+
|
|
8
10
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
var SocketResponse = function SocketResponse() {
|
|
13
|
+
_classCallCheck(this, SocketResponse);
|
|
14
|
+
};
|
|
11
15
|
|
|
12
16
|
exports.default = SocketResponse;
|
|
13
17
|
|