@techsee/techsee-media-service-client 999.2.6-sap → 999.2.7-alpha
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/lib/components/LoaderSpinner/LoaderSpinner.d.ts +1 -2
- package/lib/components/LoaderSpinner/LoaderSpinner.js +16 -9
- package/lib/components/LoaderSpinner/LoaderSpinner.js.map +1 -1
- package/lib/components/LoaderSpinner/LoaderSpinner.scss +1 -11
- package/lib/components/Multiparty.d.ts +5 -19
- package/lib/components/Multiparty.js +24 -198
- package/lib/components/Multiparty.js.map +1 -1
- package/lib/components/NoVideoAvatar/NoVideoAvatar.d.ts +2 -0
- package/lib/components/NoVideoAvatar/NoVideoAvatar.js +8 -0
- package/lib/components/NoVideoAvatar/NoVideoAvatar.js.map +1 -0
- package/lib/components/multiparty.scss +31 -0
- package/lib/index.d.ts +1 -6
- package/lib/index.js +2 -25
- package/lib/index.js.map +1 -1
- package/lib/services/WebRTCClient.d.ts +22 -0
- package/lib/services/WebRTCClient.js +136 -0
- package/lib/services/WebRTCClient.js.map +1 -0
- package/lib/stories/Multiparty.stories.d.ts +4 -0
- package/lib/stories/Multiparty.stories.js +25 -0
- package/lib/stories/Multiparty.stories.js.map +1 -0
- package/package.json +58 -86
- package/lib/assets/img/avatar.png +0 -0
- package/lib/assets/img/camera-button.png +0 -0
- package/lib/assets/img/exclamation-mark.png +0 -0
- package/lib/assets/img/media-rejected/chrome1.png +0 -0
- package/lib/assets/img/media-rejected/chrome2.png +0 -0
- package/lib/assets/img/media-rejected/chrome3.png +0 -0
- package/lib/assets/img/media-rejected/chrome4.png +0 -0
- package/lib/assets/img/media-rejected/close_button.png +0 -0
- package/lib/assets/img/media-rejected/ios1.png +0 -0
- package/lib/assets/img/media-rejected/ios2.png +0 -0
- package/lib/components/Avatar/Avatar.d.ts +0 -8
- package/lib/components/Avatar/Avatar.d.ts.map +0 -1
- package/lib/components/Avatar/Avatar.js +0 -26
- package/lib/components/Avatar/Avatar.js.map +0 -1
- package/lib/components/Avatar/Avatar.scss +0 -45
- package/lib/components/ButtonPanels/EndMeetingButtonPanel/EndMeetingButtonPanel.d.ts +0 -7
- package/lib/components/ButtonPanels/EndMeetingButtonPanel/EndMeetingButtonPanel.d.ts.map +0 -1
- package/lib/components/ButtonPanels/EndMeetingButtonPanel/EndMeetingButtonPanel.js +0 -15
- package/lib/components/ButtonPanels/EndMeetingButtonPanel/EndMeetingButtonPanel.js.map +0 -1
- package/lib/components/ButtonPanels/MediaButtonsPanel/MediaButtonsPanel.d.ts +0 -24
- package/lib/components/ButtonPanels/MediaButtonsPanel/MediaButtonsPanel.d.ts.map +0 -1
- package/lib/components/ButtonPanels/MediaButtonsPanel/MediaButtonsPanel.js +0 -58
- package/lib/components/ButtonPanels/MediaButtonsPanel/MediaButtonsPanel.js.map +0 -1
- package/lib/components/ButtonPanels/MediaButtonsPanel/MediaButtonsPanel.scss +0 -55
- package/lib/components/ButtonPanels/MultipartyButton/MultipartyButton.d.ts +0 -18
- package/lib/components/ButtonPanels/MultipartyButton/MultipartyButton.d.ts.map +0 -1
- package/lib/components/ButtonPanels/MultipartyButton/MultipartyButton.js +0 -35
- package/lib/components/ButtonPanels/MultipartyButton/MultipartyButton.js.map +0 -1
- package/lib/components/ButtonPanels/PinButtonPanel/PinButtonPanel.d.ts +0 -10
- package/lib/components/ButtonPanels/PinButtonPanel/PinButtonPanel.d.ts.map +0 -1
- package/lib/components/ButtonPanels/PinButtonPanel/PinButtonPanel.js +0 -22
- package/lib/components/ButtonPanels/PinButtonPanel/PinButtonPanel.js.map +0 -1
- package/lib/components/ButtonPanels/SnapshotButtonPanel/SnapshotButtonPanel.d.ts +0 -9
- package/lib/components/ButtonPanels/SnapshotButtonPanel/SnapshotButtonPanel.d.ts.map +0 -1
- package/lib/components/ButtonPanels/SnapshotButtonPanel/SnapshotButtonPanel.js +0 -15
- package/lib/components/ButtonPanels/SnapshotButtonPanel/SnapshotButtonPanel.js.map +0 -1
- package/lib/components/ButtonPanels/SnapshotButtonPanel/SnapshotButtonPanel.scss +0 -6
- package/lib/components/ButtonPanels/index.d.ts +0 -6
- package/lib/components/ButtonPanels/index.d.ts.map +0 -1
- package/lib/components/ButtonPanels/index.js +0 -14
- package/lib/components/ButtonPanels/index.js.map +0 -1
- package/lib/components/LoaderSpinner/LoaderSpinner.d.ts.map +0 -1
- package/lib/components/MagicMarker/MagicMarker.scss +0 -18
- package/lib/components/MagicMarker/MagicMarkerComponent.d.ts +0 -36
- package/lib/components/MagicMarker/MagicMarkerComponent.d.ts.map +0 -1
- package/lib/components/MagicMarker/MagicMarkerComponent.js +0 -111
- package/lib/components/MagicMarker/MagicMarkerComponent.js.map +0 -1
- package/lib/components/MagicMarker/index.d.ts +0 -2
- package/lib/components/MagicMarker/index.d.ts.map +0 -1
- package/lib/components/MagicMarker/index.js +0 -6
- package/lib/components/MagicMarker/index.js.map +0 -1
- package/lib/components/MediaRejectedModal/MediaRejectedModal.d.ts +0 -24
- package/lib/components/MediaRejectedModal/MediaRejectedModal.d.ts.map +0 -1
- package/lib/components/MediaRejectedModal/MediaRejectedModal.js +0 -45
- package/lib/components/MediaRejectedModal/MediaRejectedModal.js.map +0 -1
- package/lib/components/MediaRejectedModal/MediaRejectedModal.scss +0 -75
- package/lib/components/Multiparty.d.ts.map +0 -1
- package/lib/components/Multiparty.scss +0 -8
- package/lib/components/Multiparty.types.d.ts +0 -11
- package/lib/components/Multiparty.types.d.ts.map +0 -1
- package/lib/components/Multiparty.types.js +0 -9
- package/lib/components/Multiparty.types.js.map +0 -1
- package/lib/components/Video/Video.d.ts +0 -23
- package/lib/components/Video/Video.d.ts.map +0 -1
- package/lib/components/Video/Video.js +0 -23
- package/lib/components/Video/Video.js.map +0 -1
- package/lib/components/Video/Video.scss +0 -10
- package/lib/components/Video/VideoPlaceholder.d.ts +0 -23
- package/lib/components/Video/VideoPlaceholder.d.ts.map +0 -1
- package/lib/components/Video/VideoPlaceholder.js +0 -30
- package/lib/components/Video/VideoPlaceholder.js.map +0 -1
- package/lib/components/VideoLayouts/AgentPinnedLayout/AgentPinnedLayout.d.ts +0 -23
- package/lib/components/VideoLayouts/AgentPinnedLayout/AgentPinnedLayout.d.ts.map +0 -1
- package/lib/components/VideoLayouts/AgentPinnedLayout/AgentPinnedLayout.js +0 -35
- package/lib/components/VideoLayouts/AgentPinnedLayout/AgentPinnedLayout.js.map +0 -1
- package/lib/components/VideoLayouts/AgentPinnedLayout/AgentPinnedLayout.scss +0 -49
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLandscapeLayout.d.ts +0 -13
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLandscapeLayout.d.ts.map +0 -1
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLandscapeLayout.js +0 -63
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLandscapeLayout.js.map +0 -1
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLandscapeLayout.scss +0 -46
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLayout.d.ts +0 -55
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLayout.d.ts.map +0 -1
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLayout.js +0 -41
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLayout.js.map +0 -1
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLayout.scss +0 -94
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLayoutPortrait.d.ts +0 -12
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLayoutPortrait.d.ts.map +0 -1
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLayoutPortrait.js +0 -62
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaLayoutPortrait.js.map +0 -1
- package/lib/components/VideoLayouts/BigMainVideoLayout/BigAreaPortraitLayout.scss +0 -63
- package/lib/components/VideoLayouts/VideoLayoutManager.d.ts +0 -36
- package/lib/components/VideoLayouts/VideoLayoutManager.d.ts.map +0 -1
- package/lib/components/VideoLayouts/VideoLayoutManager.js +0 -40
- package/lib/components/VideoLayouts/VideoLayoutManager.js.map +0 -1
- package/lib/components/VideoLayouts/index.d.ts +0 -2
- package/lib/components/VideoLayouts/index.d.ts.map +0 -1
- package/lib/components/VideoLayouts/index.js +0 -6
- package/lib/components/VideoLayouts/index.js.map +0 -1
- package/lib/components/VideoPlaceholders/BigAreaMediaPermissionDeniedPlaceholder.d.ts +0 -12
- package/lib/components/VideoPlaceholders/BigAreaMediaPermissionDeniedPlaceholder.d.ts.map +0 -1
- package/lib/components/VideoPlaceholders/BigAreaMediaPermissionDeniedPlaceholder.js +0 -36
- package/lib/components/VideoPlaceholders/BigAreaMediaPermissionDeniedPlaceholder.js.map +0 -1
- package/lib/components/VideoPlaceholders/BigAreaMediaPermissionDeniedPlaceholder.scss +0 -34
- package/lib/components/VideoPlaceholders/CameraOffButton.d.ts +0 -4
- package/lib/components/VideoPlaceholders/CameraOffButton.d.ts.map +0 -1
- package/lib/components/VideoPlaceholders/CameraOffButton.js +0 -9
- package/lib/components/VideoPlaceholders/CameraOffButton.js.map +0 -1
- package/lib/components/VideoPlaceholders/SmallAreaMediaPermissionDeniedPlaceholder.d.ts +0 -12
- package/lib/components/VideoPlaceholders/SmallAreaMediaPermissionDeniedPlaceholder.d.ts.map +0 -1
- package/lib/components/VideoPlaceholders/SmallAreaMediaPermissionDeniedPlaceholder.js +0 -40
- package/lib/components/VideoPlaceholders/SmallAreaMediaPermissionDeniedPlaceholder.js.map +0 -1
- package/lib/components/VideoPlaceholders/SmallAreaMediaPermissionDeniedPlaceholder.scss +0 -15
- package/lib/components/VideoPlaceholders/Tooltip.scss +0 -65
- package/lib/index.d.ts.map +0 -1
- package/lib/services/ConnectionManager.d.ts +0 -42
- package/lib/services/ConnectionManager.d.ts.map +0 -1
- package/lib/services/ConnectionManager.js +0 -199
- package/lib/services/ConnectionManager.js.map +0 -1
- package/lib/services/MediaStateService.d.ts +0 -25
- package/lib/services/MediaStateService.d.ts.map +0 -1
- package/lib/services/MediaStateService.js +0 -84
- package/lib/services/MediaStateService.js.map +0 -1
- package/lib/services/MultipartyController.d.ts +0 -33
- package/lib/services/MultipartyController.d.ts.map +0 -1
- package/lib/services/MultipartyController.js +0 -389
- package/lib/services/MultipartyController.js.map +0 -1
- package/lib/services/MultipartyEventTypes.d.ts +0 -92
- package/lib/services/MultipartyEventTypes.d.ts.map +0 -1
- package/lib/services/MultipartyEventTypes.js +0 -19
- package/lib/services/MultipartyEventTypes.js.map +0 -1
- package/lib/services/trafficLogManager.d.ts +0 -21
- package/lib/services/trafficLogManager.d.ts.map +0 -1
- package/lib/services/trafficLogManager.js +0 -130
- package/lib/services/trafficLogManager.js.map +0 -1
- package/lib/services/types.d.ts +0 -51
- package/lib/services/types.d.ts.map +0 -1
- package/lib/services/types.js +0 -47
- package/lib/services/types.js.map +0 -1
- package/lib/utils/ClientConstants.d.ts +0 -5
- package/lib/utils/ClientConstants.d.ts.map +0 -1
- package/lib/utils/ClientConstants.js +0 -8
- package/lib/utils/ClientConstants.js.map +0 -1
- package/lib/utils/MergingStore.d.ts +0 -11
- package/lib/utils/MergingStore.d.ts.map +0 -1
- package/lib/utils/MergingStore.js +0 -98
- package/lib/utils/MergingStore.js.map +0 -1
- package/lib/utils/detectOsType.d.ts +0 -8
- package/lib/utils/detectOsType.d.ts.map +0 -1
- package/lib/utils/detectOsType.js +0 -23
- package/lib/utils/detectOsType.js.map +0 -1
- package/lib/utils/index.d.ts +0 -5
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js +0 -14
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/useEvent.d.ts +0 -4
- package/lib/utils/useEvent.d.ts.map +0 -1
- package/lib/utils/useEvent.js +0 -20
- package/lib/utils/useEvent.js.map +0 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './LoaderSpinner.scss';
|
|
3
3
|
declare type LoaderSpinnerProps = {
|
|
4
|
-
|
|
4
|
+
connectingCaption?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const LoaderSpinner: React.FC<LoaderSpinnerProps>;
|
|
7
7
|
export {};
|
|
8
|
-
//# sourceMappingURL=LoaderSpinner.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __assign = (this && this.__assign) || function () {
|
|
3
2
|
__assign = Object.assign || function(t) {
|
|
4
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -10,13 +9,21 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
9
|
};
|
|
11
10
|
return __assign.apply(this, arguments);
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import './LoaderSpinner.scss';
|
|
14
|
+
export var LoaderSpinner = function (_a) {
|
|
15
|
+
var connectingCaption = _a.connectingCaption;
|
|
16
|
+
return (_jsxs("div", __assign({ className: "loader-spinner-container" }, { children: [_jsxs("svg", __assign({ className: "spinner", width: "118", height: "118", viewBox: "0 0 118 118", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("circle", { cx: "59", cy: "59", r: "59", fill: "white", fillOpacity: "0.1" }, void 0),
|
|
17
|
+
_jsxs("g", __assign({ clipPath: "url(#clip0)" }, { children: [_jsx("path", { className: "circle circle-1", d: "M59.5 41C63.6421 41 67 37.6421 67 33.5C67 29.3579 63.6421 26 59.5 26C55.3579 26 52 29.3579 52 33.5C52 37.6421 55.3579 41 59.5 41Z", fill: "white" }, void 0),
|
|
18
|
+
_jsx("path", { className: "circle circle-2", d: "M72.1901 45.5985C75.3572 48.256 80.0754 47.8472 82.7285 44.6854C85.3815 41.5236 84.9648 36.8061 81.7977 34.1486C78.6306 31.4911 73.9124 31.8999 71.2593 35.0617C68.6063 38.2235 69.023 42.941 72.1901 45.5985Z", fill: "white" }, void 0),
|
|
19
|
+
_jsx("path", { className: "circle circle-3", d: "M79.0856 57.4596C79.7997 61.5093 83.6914 64.2081 87.7779 63.4875C91.8644 62.7669 94.5983 58.8999 93.8843 54.8502C93.1702 50.8005 89.2785 48.1017 85.192 48.8223C81.1055 49.5428 78.3716 53.4099 79.0856 57.4596Z", fill: "white" }, void 0),
|
|
20
|
+
_jsx("path", { className: "circle circle-4", d: "M76.6956 70.9205C74.6351 74.4894 75.8718 79.0609 79.4579 81.1313C83.044 83.2017 87.6214 81.987 89.6819 78.4182C91.7424 74.8493 90.5056 70.2778 86.9196 68.2074C83.3335 66.137 78.756 67.3517 76.6956 70.9205Z", fill: "white" }, void 0),
|
|
21
|
+
_jsx("path", { className: "circle circle-5", d: "M66.0989 79.7512C62.2028 81.1693 60.1855 85.454 61.5931 89.3214C63.0007 93.1889 67.3003 95.1745 71.1963 93.7564C75.0924 92.3384 77.1097 88.0536 75.7021 84.1862C74.2945 80.3188 69.9949 78.3331 66.0989 79.7512Z", fill: "white" }, void 0),
|
|
22
|
+
_jsx("path", { className: "circle circle-6", d: "M52.2142 79.7512C48.3181 78.3331 44.0186 80.3188 42.611 84.1862C41.2034 88.0536 43.2207 92.3384 47.1167 93.7564C51.0128 95.1745 55.3123 93.1889 56.72 89.3214C58.1276 85.454 56.1103 81.1693 52.2142 79.7512Z", fill: "white" }, void 0),
|
|
23
|
+
_jsx("path", { className: "circle circle-7", d: "M41.6175 70.9205C39.557 67.3517 34.9796 66.137 31.3935 68.2074C27.8074 70.2778 26.5707 74.8493 28.6312 78.4182C30.6916 81.987 35.2691 83.2017 38.8552 81.1313C42.4412 79.0609 43.678 74.4894 41.6175 70.9205Z", fill: "white" }, void 0),
|
|
24
|
+
_jsx("path", { className: "circle circle-8", d: "M39.2274 57.4596C39.9415 53.4099 37.2076 49.5428 33.1211 48.8223C29.0345 48.1017 25.1429 50.8005 24.4288 54.8502C23.7147 58.8999 26.4487 62.7669 30.5352 63.4875C34.6217 64.2081 38.5134 61.5093 39.2274 57.4596Z", fill: "white" }, void 0),
|
|
25
|
+
_jsx("path", { className: "circle circle-9", d: "M46.123 45.5985C49.2901 42.941 49.7068 38.2235 47.0537 35.0617C44.4007 31.8999 39.6825 31.4911 36.5154 34.1486C33.3483 36.8061 32.9316 41.5236 35.5846 44.6854C38.2377 47.8472 42.9559 48.256 46.123 45.5985Z", fill: "white" }, void 0)] }), void 0),
|
|
26
|
+
_jsx("defs", { children: _jsx("clipPath", __assign({ id: "clip0" }, { children: _jsx("rect", { width: "70", height: "69", fill: "white", transform: "translate(24 26)" }, void 0) }), void 0) }, void 0)] }), void 0),
|
|
27
|
+
_jsx("div", __assign({ className: "loader-spinner-caption" }, { children: connectingCaption || 'Connecting...' }), void 0)] }), void 0));
|
|
20
28
|
};
|
|
21
|
-
exports.LoaderSpinner = LoaderSpinner;
|
|
22
29
|
//# sourceMappingURL=LoaderSpinner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderSpinner.js","sourceRoot":"","sources":["../../../src/components/LoaderSpinner/LoaderSpinner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoaderSpinner.js","sourceRoot":"","sources":["../../../src/components/LoaderSpinner/LoaderSpinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,sBAAsB,CAAC;AAM9B,MAAM,CAAC,IAAM,aAAa,GAAiC,UAAC,EAAmB;QAAlB,iBAAiB,uBAAA;IAAM,OAAA,CAChF,wBAAK,SAAS,EAAC,0BAA0B,iBACrC,wBACI,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,iBAElC,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,WAAG;oBAChE,sBAAG,QAAQ,EAAC,aAAa,iBACrB,eACI,SAAS,EAAC,iBAAiB,EAC3B,CAAC,EAAC,mIAAmI,EACrI,IAAI,EAAC,OAAO,WACd;4BACF,eACI,SAAS,EAAC,iBAAiB,EAC3B,CAAC,EAAC,gNAAgN,EAClN,IAAI,EAAC,OAAO,WACd;4BACF,eACI,SAAS,EAAC,iBAAiB,EAC3B,CAAC,EAAC,kNAAkN,EACpN,IAAI,EAAC,OAAO,WACd;4BACF,eACI,SAAS,EAAC,iBAAiB,EAC3B,CAAC,EAAC,+MAA+M,EACjN,IAAI,EAAC,OAAO,WACd;4BACF,eACI,SAAS,EAAC,iBAAiB,EAC3B,CAAC,EAAC,kNAAkN,EACpN,IAAI,EAAC,OAAO,WACd;4BACF,eACI,SAAS,EAAC,iBAAiB,EAC3B,CAAC,EAAC,+MAA+M,EACjN,IAAI,EAAC,OAAO,WACd;4BACF,eACI,SAAS,EAAC,iBAAiB,EAC3B,CAAC,EAAC,+MAA+M,EACjN,IAAI,EAAC,OAAO,WACd;4BACF,eACI,SAAS,EAAC,iBAAiB,EAC3B,CAAC,EAAC,mNAAmN,EACrN,IAAI,EAAC,OAAO,WACd;4BACF,eACI,SAAS,EAAC,iBAAiB,EAC3B,CAAC,EAAC,+MAA+M,EACjN,IAAI,EAAC,OAAO,WACd,aACF;oBACJ,yBACI,4BAAU,EAAE,EAAC,OAAO,gBAChB,eACI,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,kBAAkB,WAC9B,YACK,WACR,aACL;YACN,uBAAK,SAAS,EAAC,wBAAwB,gBAAE,iBAAiB,IAAI,eAAe,YAAO,aAClF,CACT;AAvEmF,CAuEnF,CAAC"}
|
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
.loader-spinner-container {
|
|
2
|
-
position: absolute;
|
|
3
|
-
z-index: 2;
|
|
4
|
-
background: #3a3a3a;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
border-radius: inherit;
|
|
8
|
-
|
|
9
2
|
display: flex;
|
|
10
3
|
flex-direction: column;
|
|
11
4
|
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
5
|
|
|
14
6
|
.loader-spinner-caption {
|
|
15
7
|
font-family: 'Open Sans';
|
|
16
8
|
font-size: 14px;
|
|
17
9
|
color: white;
|
|
18
10
|
|
|
19
|
-
text-align: center;
|
|
20
11
|
padding-top: 20px;
|
|
21
|
-
margin: 0px 15px;
|
|
22
12
|
}
|
|
23
13
|
|
|
24
14
|
.circle {
|
|
25
15
|
animation: loading-spinner 1.8s infinite;
|
|
26
16
|
}
|
|
27
|
-
|
|
17
|
+
|
|
28
18
|
.circle-2 {
|
|
29
19
|
animation-delay: 0.2s;
|
|
30
20
|
}
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { OnPinnedVideoChangedCb } from '../services/types';
|
|
5
|
-
import { MultipartyTranslationStrings, OnEndMeetingRequestedCb, OnPermissionsModalVisibilityChangedCb, OnSnapshotRequestedCb } from './Multiparty.types';
|
|
6
|
-
import '@techsee/techsee-ui-common/lib/_shared/icons.css';
|
|
7
|
-
import './Multiparty.scss';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WebRtcClient } from '../services/WebRTCClient';
|
|
3
|
+
import './multiparty.scss';
|
|
8
4
|
declare type MultipartyProps = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
selectedLayoutType: VideoLayoutType;
|
|
12
|
-
isPeerMediaPermissionRejected?: boolean;
|
|
13
|
-
onPermissionsModalVisibilityChanged?: OnPermissionsModalVisibilityChangedCb;
|
|
14
|
-
onPinnedVideoChanged?: OnPinnedVideoChangedCb;
|
|
15
|
-
onSnapshotRequested?: OnSnapshotRequestedCb;
|
|
16
|
-
onEndMeetingRequested?: OnEndMeetingRequestedCb;
|
|
17
|
-
videoOverlay?: (props: {
|
|
18
|
-
floatingElements: RefObject<HTMLElement>[];
|
|
19
|
-
}) => JSX.Element;
|
|
5
|
+
webRtcClient: WebRtcClient;
|
|
6
|
+
connectingCaption?: string;
|
|
20
7
|
};
|
|
21
8
|
export declare const Multiparty: React.FC<MultipartyProps>;
|
|
22
9
|
export {};
|
|
23
|
-
//# sourceMappingURL=Multiparty.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __assign = (this && this.__assign) || function () {
|
|
3
2
|
__assign = Object.assign || function(t) {
|
|
4
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -10,204 +9,31 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
9
|
};
|
|
11
10
|
return __assign.apply(this, arguments);
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
50
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
51
|
-
to[j] = from[i];
|
|
52
|
-
return to;
|
|
53
|
-
};
|
|
54
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
|
-
exports.Multiparty = void 0;
|
|
56
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
57
|
-
var react_1 = require("react");
|
|
58
|
-
var MediaConstants_1 = require("@techsee/techsee-media-service/lib/MediaConstants");
|
|
59
|
-
var MultiParty_1 = require("@techsee/techsee-media-service/lib/MultiParty");
|
|
60
|
-
var media_constants_1 = require("@techsee/techsee-common/lib/constants/media.constants");
|
|
61
|
-
var types_1 = require("../services/types");
|
|
62
|
-
var utils_1 = require("../utils");
|
|
63
|
-
var MultipartyEventTypes_1 = require("../services/MultipartyEventTypes");
|
|
64
|
-
var MediaRejectedModal_1 = require("./MediaRejectedModal/MediaRejectedModal");
|
|
65
|
-
var Multiparty_types_1 = require("./Multiparty.types");
|
|
66
|
-
var VideoLayouts_1 = require("./VideoLayouts");
|
|
67
|
-
require("@techsee/techsee-ui-common/lib/_shared/icons.css");
|
|
68
|
-
require("./Multiparty.scss");
|
|
69
|
-
var Multiparty = function (_a) {
|
|
70
|
-
var controller = _a.controller, translations = _a.translations, isPeerMediaPermissionRejected = _a.isPeerMediaPermissionRejected, selectedLayoutType = _a.selectedLayoutType, onPermissionsModalVisibilityChanged = _a.onPermissionsModalVisibilityChanged, onPinnedVideoChanged = _a.onPinnedVideoChanged, onSnapshotRequested = _a.onSnapshotRequested, onEndMeetingRequested = _a.onEndMeetingRequested, videoOverlay = _a.videoOverlay;
|
|
71
|
-
var _b = react_1.useState(false), firstPeerDidConnect = _b[0], setFirstPeerDidConnect = _b[1];
|
|
72
|
-
var _c = react_1.useState(true), wasMediaPermissionsModalClosed = _c[0], setWasMediaPermissionsModalClosed = _c[1];
|
|
73
|
-
var _d = react_1.useState(false), isOwnMediaPermissionsRejected = _d[0], setOwnMediaPermissionsRejected = _d[1];
|
|
74
|
-
var _e = react_1.useState({}), translationsCopy = _e[0], setTranslationsCopy = _e[1];
|
|
75
|
-
var _f = react_1.useState(controller.userRole), userRole = _f[0], setUserRole = _f[1];
|
|
76
|
-
var _g = react_1.useState(controller.isAudioDisabled), isAudioDisabled = _g[0], setIsAudioDisabled = _g[1];
|
|
77
|
-
var _h = react_1.useState(false), isAudioMuted = _h[0], setIsAudioMuted = _h[1];
|
|
78
|
-
var _j = react_1.useState(false), isVideoTurnedOff = _j[0], setIsVideoTurnedOff = _j[1];
|
|
79
|
-
var _k = react_1.useState(false), isSwitchCameraSupported = _k[0], setIsSwitchCameraSupported = _k[1];
|
|
80
|
-
var _l = react_1.useState(true), isLoading = _l[0], setIsLoading = _l[1];
|
|
81
|
-
var _m = react_1.useState(false), isScreenSharingEnabled = _m[0], setIsScreenSharingEnabled = _m[1];
|
|
82
|
-
var _o = react_1.useState(false), isSharingScreen = _o[0], setIsSharingScreen = _o[1];
|
|
83
|
-
var _p = react_1.useState([]), connections = _p[0], setConnections = _p[1];
|
|
84
|
-
var toggleMute = react_1.useCallback(function () { return controller.toggleAudio(isAudioMuted); }, [controller, isAudioMuted]);
|
|
85
|
-
var switchCamera = react_1.useCallback(function () { return controller.switchCamera(); }, [controller]);
|
|
86
|
-
var toggleVideo = react_1.useCallback(function () { return controller.toggleVideo(isVideoTurnedOff); }, [controller, isVideoTurnedOff]);
|
|
87
|
-
var toggleScreenShare = react_1.useCallback(function () {
|
|
88
|
-
if (!isScreenSharingEnabled)
|
|
89
|
-
return;
|
|
90
|
-
if (isSharingScreen) {
|
|
91
|
-
setIsSharingScreen(false);
|
|
92
|
-
controller.stopShareScreen();
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
setIsSharingScreen(true);
|
|
96
|
-
controller.shareScreen();
|
|
97
|
-
}
|
|
98
|
-
}, [controller, isSharingScreen, isScreenSharingEnabled]);
|
|
99
|
-
var onModalClosed = react_1.useCallback(function () { return setWasMediaPermissionsModalClosed(false); }, []);
|
|
100
|
-
var onModalOpen = react_1.useCallback(function () { return setWasMediaPermissionsModalClosed(true); }, []);
|
|
101
|
-
var mainConnection = react_1.useMemo(function () { return controller.getMainConnection(); }, __spreadArray(__spreadArray([controller], Object.values(controller.getPinnedVideo())), [JSON.stringify(connections)]));
|
|
102
|
-
react_1.useEffect(function () {
|
|
103
|
-
controller.connect();
|
|
104
|
-
setConnections(controller.connections.get());
|
|
105
|
-
return function () { return controller.disconnect(); };
|
|
106
|
-
}, [controller]);
|
|
107
|
-
react_1.useEffect(function () {
|
|
108
|
-
onPermissionsModalVisibilityChanged === null || onPermissionsModalVisibilityChanged === void 0 ? void 0 : onPermissionsModalVisibilityChanged(isOwnMediaPermissionsRejected && wasMediaPermissionsModalClosed
|
|
109
|
-
? Multiparty_types_1.PermissionsModalVisibilityChangedEvent.MODAL_OPEN
|
|
110
|
-
: Multiparty_types_1.PermissionsModalVisibilityChangedEvent.MODAL_CLOSED);
|
|
111
|
-
}, [isOwnMediaPermissionsRejected, wasMediaPermissionsModalClosed, onPermissionsModalVisibilityChanged]);
|
|
112
|
-
react_1.useEffect(function () {
|
|
113
|
-
controller.connections.setOwnMediaPermissionsRejected(isOwnMediaPermissionsRejected);
|
|
114
|
-
setConnections(controller.connections.get());
|
|
115
|
-
}, [controller, isOwnMediaPermissionsRejected]);
|
|
116
|
-
react_1.useEffect(function () {
|
|
117
|
-
controller.connections.setPeerMediaPermissionsRejected(isPeerMediaPermissionRejected || false);
|
|
118
|
-
setConnections(controller.connections.get());
|
|
119
|
-
}, [controller, isPeerMediaPermissionRejected]);
|
|
120
|
-
react_1.useEffect(function () {
|
|
121
|
-
setUserRole(controller.userRole);
|
|
122
|
-
}, [controller.userRole]);
|
|
123
|
-
react_1.useEffect(function () {
|
|
124
|
-
setIsAudioDisabled(controller.isAudioDisabled);
|
|
125
|
-
}, [controller.isAudioDisabled]);
|
|
126
|
-
react_1.useEffect(function () {
|
|
127
|
-
var checkScreenSharing = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
-
var isSharingEnabled;
|
|
129
|
-
return __generator(this, function (_a) {
|
|
130
|
-
switch (_a.label) {
|
|
131
|
-
case 0:
|
|
132
|
-
if (!(selectedLayoutType !== media_constants_1.VideoLayoutType.AgentPinnedLayout)) return [3 /*break*/, 2];
|
|
133
|
-
return [4 /*yield*/, controller.isScreenSharingEnabled()];
|
|
134
|
-
case 1:
|
|
135
|
-
isSharingEnabled = _a.sent();
|
|
136
|
-
setIsScreenSharingEnabled(isSharingEnabled);
|
|
137
|
-
_a.label = 2;
|
|
138
|
-
case 2:
|
|
139
|
-
setIsLoading(false);
|
|
140
|
-
return [2 /*return*/];
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}); };
|
|
144
|
-
checkScreenSharing();
|
|
145
|
-
}, []);
|
|
146
|
-
react_1.useEffect(function () {
|
|
147
|
-
setTranslationsCopy(translations);
|
|
148
|
-
}, Object.values(translations));
|
|
149
|
-
utils_1.useEvent(controller, MultipartyEventTypes_1.MultipartyEvents.connectionCreated, function () {
|
|
150
|
-
var updatedConnections = controller.connections.get();
|
|
151
|
-
setConnections(updatedConnections);
|
|
152
|
-
if (updatedConnections.length > 1) {
|
|
153
|
-
setFirstPeerDidConnect(true);
|
|
154
|
-
}
|
|
155
|
-
}, []);
|
|
156
|
-
utils_1.useEvent(controller, MultipartyEventTypes_1.MultipartyEvents.connectionDestroyed, function () {
|
|
157
|
-
setConnections(controller.connections.get());
|
|
158
|
-
}, []);
|
|
159
|
-
utils_1.useEvent(controller, MultipartyEventTypes_1.MultipartyEvents.streamDestroyed, function () {
|
|
160
|
-
setConnections(controller.connections.get());
|
|
161
|
-
}, []);
|
|
162
|
-
utils_1.useEvent(controller, MultipartyEventTypes_1.MultipartyEvents.streamCreated, function (_a) {
|
|
163
|
-
var isOwnConnection = _a.isOwnConnection, hasAudio = _a.hasAudio, hasVideo = _a.hasVideo;
|
|
164
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
165
|
-
var supportsCameraSwitch;
|
|
166
|
-
return __generator(this, function (_b) {
|
|
167
|
-
switch (_b.label) {
|
|
168
|
-
case 0:
|
|
169
|
-
setConnections(controller.connections.get());
|
|
170
|
-
if (!isOwnConnection) return [3 /*break*/, 2];
|
|
171
|
-
return [4 /*yield*/, MultiParty_1.checkSupportSwitchCamera()];
|
|
172
|
-
case 1:
|
|
173
|
-
supportsCameraSwitch = _b.sent();
|
|
174
|
-
setIsSwitchCameraSupported(supportsCameraSwitch);
|
|
175
|
-
setIsAudioMuted(!hasAudio);
|
|
176
|
-
setIsVideoTurnedOff(!hasVideo);
|
|
177
|
-
_b.label = 2;
|
|
178
|
-
case 2: return [2 /*return*/];
|
|
179
|
-
}
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useState } from 'react';
|
|
14
|
+
import { WebRtcClientEvents } from '../services/WebRTCClient';
|
|
15
|
+
import { participantDomId, pinnedParticipantDomId, } from '@techsee/techsee-media-service/lib/MultiParty/MultiParty';
|
|
16
|
+
import { LoaderSpinner } from './LoaderSpinner/LoaderSpinner';
|
|
17
|
+
import { NoVideoAvatar } from './NoVideoAvatar/NoVideoAvatar';
|
|
18
|
+
import './multiparty.scss';
|
|
19
|
+
var MINIMUM_PARTICIPANT_NUMBER = 2;
|
|
20
|
+
export var Multiparty = function (_a) {
|
|
21
|
+
var webRtcClient = _a.webRtcClient, connectingCaption = _a.connectingCaption;
|
|
22
|
+
var _b = useState(0), participantNumber = _b[0], setParticipantNumber = _b[1];
|
|
23
|
+
var style = {
|
|
24
|
+
'--active-participant-sum': participantNumber > 2 ? participantNumber : MINIMUM_PARTICIPANT_NUMBER,
|
|
25
|
+
};
|
|
26
|
+
useEffect(function () {
|
|
27
|
+
webRtcClient.init().then(function () {
|
|
28
|
+
webRtcClient.on(WebRtcClientEvents.participantsNumberChanged, function (participantsSum) {
|
|
29
|
+
setParticipantNumber(function () { return participantsSum; });
|
|
180
30
|
});
|
|
181
31
|
});
|
|
182
|
-
}, []);
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
setIsVideoTurnedOff(!hasVideo);
|
|
189
|
-
}
|
|
190
|
-
}, []);
|
|
191
|
-
utils_1.useEvent(controller, MultipartyEventTypes_1.MultipartyEvents.mediaDeviceAccessDenied, function (_a) {
|
|
192
|
-
var isOwnConnection = _a.isOwnConnection;
|
|
193
|
-
setConnections(controller.connections.get());
|
|
194
|
-
if (isOwnConnection) {
|
|
195
|
-
setOwnMediaPermissionsRejected(true);
|
|
196
|
-
}
|
|
197
|
-
}, []);
|
|
198
|
-
var MediaRejectedModalWithProps = function () {
|
|
199
|
-
if (controller.userRole === MediaConstants_1.SessionClientRole.USER &&
|
|
200
|
-
isOwnMediaPermissionsRejected &&
|
|
201
|
-
wasMediaPermissionsModalClosed) {
|
|
202
|
-
return (jsx_runtime_1.jsx(MediaRejectedModal_1.MediaRejectedModal, { osType: utils_1.detectOSType(), translations: translationsCopy, onClose: onModalClosed }, void 0));
|
|
203
|
-
}
|
|
204
|
-
return null;
|
|
205
|
-
};
|
|
206
|
-
var pinnedVideo = controller.getPinnedVideo();
|
|
207
|
-
return isLoading ? null : (jsx_runtime_1.jsxs("div", __assign({ className: 'mutltiparty-container' }, { children: [jsx_runtime_1.jsx(MediaRejectedModalWithProps, {}, void 0), jsx_runtime_1.jsx(VideoLayouts_1.VideoLayoutManager, { connections: connections, selectedLayoutType: selectedLayoutType, userRole: userRole, pinnedVideo: {
|
|
208
|
-
pinnedUserRole: types_1.toSessionClientRole(pinnedVideo.pinnedUserRole),
|
|
209
|
-
videoType: pinnedVideo.videoType
|
|
210
|
-
}, translations: translationsCopy, firstPeerConnected: firstPeerDidConnect, onModalOpen: onModalOpen, onToggleMute: !isAudioDisabled ? toggleMute : undefined, isAudioMuted: isAudioMuted, onToggleVideo: toggleVideo, isVideoTurnedOff: isVideoTurnedOff, onVideoPinned: onPinnedVideoChanged, onSwitchCamera: isSwitchCameraSupported ? switchCamera : undefined, onSnapshotRequested: onSnapshotRequested, onEndMeetingRequested: onEndMeetingRequested, videoOverlay: videoOverlay, isScreenSharingEnabled: isScreenSharingEnabled, isSharingScreen: isSharingScreen, toggleScreenShare: toggleScreenShare, mainConnection: mainConnection }, void 0)] }), void 0));
|
|
32
|
+
}, [webRtcClient]);
|
|
33
|
+
var loaderSpinner = false && (_jsx(LoaderSpinner, { connectingCaption: connectingCaption }, void 0));
|
|
34
|
+
/** @TODO replace false with condition for idle session & disabled video */
|
|
35
|
+
var noVideoAvatar = participantNumber === 1 && _jsx(NoVideoAvatar, {}, void 0);
|
|
36
|
+
return (_jsxs("div", __assign({ id: "multiparty", style: style }, { children: [_jsx("div", { id: "" + pinnedParticipantDomId, className: "publisher" }, void 0),
|
|
37
|
+
_jsxs("div", __assign({ id: participantDomId + "2", className: "subscriber" }, { children: [loaderSpinner, noVideoAvatar] }), void 0)] }), void 0));
|
|
211
38
|
};
|
|
212
|
-
exports.Multiparty = Multiparty;
|
|
213
39
|
//# sourceMappingURL=Multiparty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Multiparty.js","sourceRoot":"","sources":["../../src/components/Multiparty.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Multiparty.js","sourceRoot":"","sources":["../../src/components/Multiparty.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAgB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EACH,gBAAgB,EAChB,sBAAsB,GACzB,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,mBAAmB,CAAC;AAE3B,IAAM,0BAA0B,GAAG,CAAC,CAAC;AAOrC,MAAM,CAAC,IAAM,UAAU,GAA8B,UAAC,EAGrD;QAFG,YAAY,kBAAA,EACZ,iBAAiB,uBAAA;IAEX,IAAA,KAA4C,QAAQ,CAAC,CAAC,CAAC,EAAtD,iBAAiB,QAAA,EAAE,oBAAoB,QAAe,CAAC;IAC9D,IAAM,KAAK,GAAG;QACV,0BAA0B,EACtB,iBAAiB,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,0BAA0B;KACtD,CAAC;IAEzB,SAAS,CAAC;QACN,YAAY,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC;YACrB,YAAa,CAAC,EAAE,CACZ,kBAAkB,CAAC,yBAAyB,EAC5C,UAAC,eAAuB;gBACpB,oBAAoB,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,CAAC,CAAC;YAChD,CAAC,CACJ,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,IAAM,aAAa,GAAG,KAAK,IAAI,CAC3B,KAAC,aAAa,IAAC,iBAAiB,EAAE,iBAAiB,WAAI,CAC1D,CAAC;IAEF,2EAA2E;IAC3E,IAAM,aAAa,GAAG,iBAAiB,KAAK,CAAC,IAAI,KAAC,aAAa,aAAG,CAAC;IAEnE,OAAO,CACH,wBAAK,EAAE,EAAC,YAAY,EAAC,KAAK,EAAE,KAAK,iBAC7B,cAAK,EAAE,EAAE,KAAG,sBAAwB,EAAE,SAAS,EAAC,WAAW,WAErD;YACN,wBAAK,EAAE,EAAK,gBAAgB,MAAG,EAAE,SAAS,EAAC,YAAY,iBAClD,aAAa,EACb,aAAa,aACZ,aACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// import { ReactComponent as NoVideoAvatarSvg } from '../../assets/images/NoVideoAvatar.svg';
|
|
3
|
+
// export const NoVideoAvatar: React.FC = () => (
|
|
4
|
+
// <NoVideoAvatarSvg />
|
|
5
|
+
// );
|
|
6
|
+
import NoVideoAvatarSvgPath from '../../assets/images/NoVideoAvatar.svg';
|
|
7
|
+
export var NoVideoAvatar = function () { return (_jsx("img", { src: NoVideoAvatarSvgPath }, void 0)); };
|
|
8
|
+
//# sourceMappingURL=NoVideoAvatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoVideoAvatar.js","sourceRoot":"","sources":["../../../src/components/NoVideoAvatar/NoVideoAvatar.tsx"],"names":[],"mappings":";AAAA,8FAA8F;AAC9F,iDAAiD;AACjD,2BAA2B;AAC3B,KAAK;AAEL,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,MAAM,CAAC,IAAM,aAAa,GAAa,cAAM,OAAA,CACzC,cAAK,GAAG,EAAE,oBAAoB,WAAI,CACrC,EAF4C,CAE5C,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
#multiparty {
|
|
6
|
+
height: 100vh;
|
|
7
|
+
width: 100vw;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
|
|
11
|
+
--active-participant-sum: 0;
|
|
12
|
+
--participant-div-size: calc(100% / var(--active-participant-sum));
|
|
13
|
+
|
|
14
|
+
.publisher,
|
|
15
|
+
.subscriber {
|
|
16
|
+
display: flex;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
background: #706e6b;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.OT_widget-container {
|
|
25
|
+
background: inherit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media screen and (min-width: 700px) {
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
}
|
|
31
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export * from './services/MultipartyEventTypes';
|
|
2
1
|
export { Multiparty } from './components/Multiparty';
|
|
3
|
-
export {
|
|
4
|
-
export { MagicMarkerComponent, MagicMarkerOptions, MagicMarkerComponentProps } from './components/MagicMarker';
|
|
5
|
-
export { MultipartySessionSettings, AudioState, PinnedUserType, OnPinnedVideoChangedCb } from './services/types';
|
|
6
|
-
export { createMultipartyController, IMultipartyController } from './services/MultipartyController';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
2
|
+
export { WebRtcClient, WebRtcClientEvents } from './services/WebRTCClient';
|
package/lib/index.js
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.createMultipartyController = exports.PinnedUserType = exports.AudioState = exports.MagicMarkerComponent = exports.PermissionsModalVisibilityChangedEvent = exports.Multiparty = void 0;
|
|
14
|
-
__exportStar(require("./services/MultipartyEventTypes"), exports);
|
|
15
|
-
var Multiparty_1 = require("./components/Multiparty");
|
|
16
|
-
Object.defineProperty(exports, "Multiparty", { enumerable: true, get: function () { return Multiparty_1.Multiparty; } });
|
|
17
|
-
var Multiparty_types_1 = require("./components/Multiparty.types");
|
|
18
|
-
Object.defineProperty(exports, "PermissionsModalVisibilityChangedEvent", { enumerable: true, get: function () { return Multiparty_types_1.PermissionsModalVisibilityChangedEvent; } });
|
|
19
|
-
var MagicMarker_1 = require("./components/MagicMarker");
|
|
20
|
-
Object.defineProperty(exports, "MagicMarkerComponent", { enumerable: true, get: function () { return MagicMarker_1.MagicMarkerComponent; } });
|
|
21
|
-
var types_1 = require("./services/types");
|
|
22
|
-
Object.defineProperty(exports, "AudioState", { enumerable: true, get: function () { return types_1.AudioState; } });
|
|
23
|
-
Object.defineProperty(exports, "PinnedUserType", { enumerable: true, get: function () { return types_1.PinnedUserType; } });
|
|
24
|
-
var MultipartyController_1 = require("./services/MultipartyController");
|
|
25
|
-
Object.defineProperty(exports, "createMultipartyController", { enumerable: true, get: function () { return MultipartyController_1.createMultipartyController; } });
|
|
1
|
+
export { Multiparty } from './components/Multiparty';
|
|
2
|
+
export { WebRtcClient, WebRtcClientEvents } from './services/WebRTCClient';
|
|
26
3
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { ICredentials, ISessionSettings } from '@techsee/techsee-media-service/lib/MultiParty/Contracts';
|
|
3
|
+
import { EventEmitter } from 'events';
|
|
4
|
+
export declare enum WebRtcClientEvents {
|
|
5
|
+
mediaCapabilitiesSupport = "mediaCapabilitiesSupport",
|
|
6
|
+
connectFailed = "connectFailed",
|
|
7
|
+
streamDestroyed = "streamDestroyed",
|
|
8
|
+
connectionCreated = "connectionCreated",
|
|
9
|
+
connectionDestroyed = "connectionDestroyed",
|
|
10
|
+
streamCreated = "streamCreated",
|
|
11
|
+
participantsNumberChanged = "participantsNumberChanged"
|
|
12
|
+
}
|
|
13
|
+
export declare class WebRtcClient extends EventEmitter {
|
|
14
|
+
private readonly credentials;
|
|
15
|
+
private readonly settings;
|
|
16
|
+
private multiParty?;
|
|
17
|
+
constructor(credentials: ICredentials, settings: ISessionSettings);
|
|
18
|
+
init(): Promise<void>;
|
|
19
|
+
initHandlers(): void;
|
|
20
|
+
disconnect(): void;
|
|
21
|
+
switchCamera(): Promise<void>;
|
|
22
|
+
}
|