agora-ui-foundation 3.11.0-rc.3 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,6 +4,11 @@ export interface RecordingTypeSelectorProps {
|
|
|
4
4
|
hasStartClientRecordingPermission?: boolean;
|
|
5
5
|
cloudRecordingState: number;
|
|
6
6
|
isLocalClientRecording: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* 当前房间/平台是否支持云录制(即服务器下发的 recording 能力)。
|
|
9
|
+
* 默认 true 以兼容旧调用方。
|
|
10
|
+
*/
|
|
11
|
+
isCloudRecordingSupported?: boolean;
|
|
7
12
|
isClientRecordingSupported?: boolean;
|
|
8
13
|
pauseCloudRecording: () => void;
|
|
9
14
|
resumeCloudRecording: () => void;
|
|
@@ -31,6 +31,8 @@ var RecordingTypeSelector = exports.RecordingTypeSelector = function RecordingTy
|
|
|
31
31
|
hasStartClientRecordingPermission = _props$hasStartClient === void 0 ? true : _props$hasStartClient,
|
|
32
32
|
cloudRecordingState = props.cloudRecordingState,
|
|
33
33
|
isLocalClientRecording = props.isLocalClientRecording,
|
|
34
|
+
_props$isCloudRecordi = props.isCloudRecordingSupported,
|
|
35
|
+
isCloudRecordingSupported = _props$isCloudRecordi === void 0 ? true : _props$isCloudRecordi,
|
|
34
36
|
_props$isClientRecord = props.isClientRecordingSupported,
|
|
35
37
|
isClientRecordingSupported = _props$isClientRecord === void 0 ? true : _props$isClientRecord,
|
|
36
38
|
pauseCloudRecording = props.pauseCloudRecording,
|
|
@@ -43,10 +45,11 @@ var RecordingTypeSelector = exports.RecordingTypeSelector = function RecordingTy
|
|
|
43
45
|
var t = (0, _i18n.useI18n)();
|
|
44
46
|
var isCloudRecording = cloudRecordingState !== RECORDING_STATE_STOPPED;
|
|
45
47
|
var isCloudPaused = cloudRecordingState === RECORDING_STATE_PAUSED;
|
|
48
|
+
var showCloudRecording = isCloudRecordingSupported;
|
|
46
49
|
var showLocalRecording = isClientRecordingSupported;
|
|
47
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
48
51
|
className: "fcr-record-type-selector",
|
|
49
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
52
|
+
children: [showCloudRecording && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
50
53
|
className: "fcr-record-type-selector__item ".concat(!hasStartCloudRecordingPermission ? 'fcr-record-type-selector__item--disabled' : ''),
|
|
51
54
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
52
55
|
className: "fcr-record-type-selector__item-icon fcr-record-type-selector__item-icon--cloud",
|
|
@@ -123,7 +126,7 @@ var RecordingTypeSelector = exports.RecordingTypeSelector = function RecordingTy
|
|
|
123
126
|
children: t('fmt_localrecord_popup_open_recording')
|
|
124
127
|
})]
|
|
125
128
|
}), showLocalRecording && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
126
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
129
|
+
children: [showCloudRecording && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
127
130
|
className: "fcr-record-type-selector__divider"
|
|
128
131
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
129
132
|
className: "fcr-record-type-selector__item",
|
|
@@ -23,6 +23,8 @@ export var RecordingTypeSelector = function RecordingTypeSelector(props) {
|
|
|
23
23
|
hasStartClientRecordingPermission = _props$hasStartClient === void 0 ? true : _props$hasStartClient,
|
|
24
24
|
cloudRecordingState = props.cloudRecordingState,
|
|
25
25
|
isLocalClientRecording = props.isLocalClientRecording,
|
|
26
|
+
_props$isCloudRecordi = props.isCloudRecordingSupported,
|
|
27
|
+
isCloudRecordingSupported = _props$isCloudRecordi === void 0 ? true : _props$isCloudRecordi,
|
|
26
28
|
_props$isClientRecord = props.isClientRecordingSupported,
|
|
27
29
|
isClientRecordingSupported = _props$isClientRecord === void 0 ? true : _props$isClientRecord,
|
|
28
30
|
pauseCloudRecording = props.pauseCloudRecording,
|
|
@@ -35,10 +37,11 @@ export var RecordingTypeSelector = function RecordingTypeSelector(props) {
|
|
|
35
37
|
var t = useI18n();
|
|
36
38
|
var isCloudRecording = cloudRecordingState !== RECORDING_STATE_STOPPED;
|
|
37
39
|
var isCloudPaused = cloudRecordingState === RECORDING_STATE_PAUSED;
|
|
40
|
+
var showCloudRecording = isCloudRecordingSupported;
|
|
38
41
|
var showLocalRecording = isClientRecordingSupported;
|
|
39
42
|
return /*#__PURE__*/_jsxs("div", {
|
|
40
43
|
className: "fcr-record-type-selector",
|
|
41
|
-
children: [/*#__PURE__*/_jsxs("div", {
|
|
44
|
+
children: [showCloudRecording && /*#__PURE__*/_jsxs("div", {
|
|
42
45
|
className: "fcr-record-type-selector__item ".concat(!hasStartCloudRecordingPermission ? 'fcr-record-type-selector__item--disabled' : ''),
|
|
43
46
|
children: [/*#__PURE__*/_jsx("div", {
|
|
44
47
|
className: "fcr-record-type-selector__item-icon fcr-record-type-selector__item-icon--cloud",
|
|
@@ -115,7 +118,7 @@ export var RecordingTypeSelector = function RecordingTypeSelector(props) {
|
|
|
115
118
|
children: t('fmt_localrecord_popup_open_recording')
|
|
116
119
|
})]
|
|
117
120
|
}), showLocalRecording && /*#__PURE__*/_jsxs(_Fragment, {
|
|
118
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
121
|
+
children: [showCloudRecording && /*#__PURE__*/_jsx("div", {
|
|
119
122
|
className: "fcr-record-type-selector__divider"
|
|
120
123
|
}), /*#__PURE__*/_jsxs("div", {
|
|
121
124
|
className: "fcr-record-type-selector__item",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agora-ui-foundation",
|
|
3
|
-
"version": "3.11.0
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@react-spring/web": "^9.7.3",
|
|
15
15
|
"@use-gesture/react": "^10.3.1",
|
|
16
|
-
"agora-foundation": "3.11.0
|
|
16
|
+
"agora-foundation": "3.11.0",
|
|
17
17
|
"classnames": "^2.5.1",
|
|
18
18
|
"i18next": "^23.10.1",
|
|
19
19
|
"normalize.css": "^8.0.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@types/react-virtualized": "^9.21.30",
|
|
54
54
|
"@types/tinycolor2": "^1.4.6",
|
|
55
55
|
"@types/webpack-env": "^1.18.4",
|
|
56
|
-
"agora-toolchain": "3.11.0
|
|
56
|
+
"agora-toolchain": "3.11.0",
|
|
57
57
|
"core-js": "^3.33.3",
|
|
58
58
|
"eslint": "^9.0.0",
|
|
59
59
|
"node-html-parser": "^6.1.13",
|