call-live-sdk1 0.0.10 → 0.0.11
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/call-live-sdk.es.js
CHANGED
|
@@ -24315,7 +24315,7 @@ const ConfirmDialogWrapper = (props) => {
|
|
|
24315
24315
|
getContainer: mergedGetContainer
|
|
24316
24316
|
}));
|
|
24317
24317
|
};
|
|
24318
|
-
function confirm
|
|
24318
|
+
function confirm(config2) {
|
|
24319
24319
|
const global2 = globalConfig();
|
|
24320
24320
|
const container = document.createDocumentFragment();
|
|
24321
24321
|
let currentConfig = Object.assign(Object.assign({}, config2), {
|
|
@@ -25838,23 +25838,23 @@ const PurePanel$b = (props) => {
|
|
|
25838
25838
|
};
|
|
25839
25839
|
const PurePanel$c = withPureRenderTheme(PurePanel$b);
|
|
25840
25840
|
function modalWarn(props) {
|
|
25841
|
-
return confirm
|
|
25841
|
+
return confirm(withWarn(props));
|
|
25842
25842
|
}
|
|
25843
25843
|
const Modal = Modal$1;
|
|
25844
25844
|
Modal.useModal = useModal;
|
|
25845
25845
|
Modal.info = function infoFn(props) {
|
|
25846
|
-
return confirm
|
|
25846
|
+
return confirm(withInfo(props));
|
|
25847
25847
|
};
|
|
25848
25848
|
Modal.success = function successFn(props) {
|
|
25849
|
-
return confirm
|
|
25849
|
+
return confirm(withSuccess(props));
|
|
25850
25850
|
};
|
|
25851
25851
|
Modal.error = function errorFn(props) {
|
|
25852
|
-
return confirm
|
|
25852
|
+
return confirm(withError(props));
|
|
25853
25853
|
};
|
|
25854
25854
|
Modal.warning = modalWarn;
|
|
25855
25855
|
Modal.warn = modalWarn;
|
|
25856
25856
|
Modal.confirm = function confirmFn(props) {
|
|
25857
|
-
return confirm
|
|
25857
|
+
return confirm(withConfirm(props));
|
|
25858
25858
|
};
|
|
25859
25859
|
Modal.destroyAll = function destroyAllFn() {
|
|
25860
25860
|
while (destroyFns.length) {
|
|
@@ -85569,9 +85569,6 @@ const tagList = [/* @__PURE__ */ jsxRuntimeExports.jsx(Tag, {
|
|
|
85569
85569
|
}, 2), /* @__PURE__ */ jsxRuntimeExports.jsx(Tag, {
|
|
85570
85570
|
children: "已结束"
|
|
85571
85571
|
}, 3)];
|
|
85572
|
-
const {
|
|
85573
|
-
confirm
|
|
85574
|
-
} = Modal;
|
|
85575
85572
|
const Head = ({
|
|
85576
85573
|
canvasSetting,
|
|
85577
85574
|
setCanvasSetting,
|
|
@@ -85581,6 +85578,7 @@ const Head = ({
|
|
|
85581
85578
|
audioContextRef,
|
|
85582
85579
|
audioDestinationRef
|
|
85583
85580
|
}) => {
|
|
85581
|
+
const [modal, contextHolder] = useModal();
|
|
85584
85582
|
const {
|
|
85585
85583
|
data: data2,
|
|
85586
85584
|
run: run2,
|
|
@@ -86130,7 +86128,7 @@ const Head = ({
|
|
|
86130
86128
|
disabled: isLive,
|
|
86131
86129
|
className: "antSelectSelectionItemColor",
|
|
86132
86130
|
onChange: (e3) => {
|
|
86133
|
-
confirm({
|
|
86131
|
+
modal.confirm({
|
|
86134
86132
|
title: "切换画布设置后,当前画布上的内容和所有数据将被清除,是否确定切换?",
|
|
86135
86133
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$1r, {}),
|
|
86136
86134
|
okText: "确定",
|
|
@@ -86188,7 +86186,7 @@ const Head = ({
|
|
|
86188
86186
|
loading: rtmpLoading,
|
|
86189
86187
|
danger: true,
|
|
86190
86188
|
onClick: () => {
|
|
86191
|
-
confirm({
|
|
86189
|
+
modal.confirm({
|
|
86192
86190
|
title: "结束直播",
|
|
86193
86191
|
content: "您即将结束直播并停止推流,是否确认。",
|
|
86194
86192
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$1r, {}),
|
|
@@ -86203,7 +86201,7 @@ const Head = ({
|
|
|
86203
86201
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, {
|
|
86204
86202
|
type: "primary",
|
|
86205
86203
|
onClick: () => {
|
|
86206
|
-
confirm({
|
|
86204
|
+
modal.confirm({
|
|
86207
86205
|
title: "开始直播",
|
|
86208
86206
|
content: "是否确认开始直播,检查麦克风和摄像头状态正常,保证网络稳定。",
|
|
86209
86207
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$1r, {}),
|
|
@@ -86261,7 +86259,7 @@ const Head = ({
|
|
|
86261
86259
|
children: "当前活动已在其他设备推流中,无法打开当前网页开播设置!"
|
|
86262
86260
|
})]
|
|
86263
86261
|
})
|
|
86264
|
-
})]
|
|
86262
|
+
}), contextHolder]
|
|
86265
86263
|
});
|
|
86266
86264
|
};
|
|
86267
86265
|
const Head$1 = React$2.memo(Head, (prevProps, nextProps) => {
|
|
@@ -289451,7 +289449,7 @@ const ChatComponent = () => {
|
|
|
289451
289449
|
if (res.success) {
|
|
289452
289450
|
setLoading(false);
|
|
289453
289451
|
setCurrent(res.data.pagination.current);
|
|
289454
|
-
setInteractionList(res.data.list);
|
|
289452
|
+
setInteractionList((prevList) => [...prevList, ...res.data.list]);
|
|
289455
289453
|
if (res.data.list.length < 10 || res.data.list.length === res.data.pagination.total || res.data.list.length + interactionList.length >= res.data.pagination.total) {
|
|
289456
289454
|
setFinished(true);
|
|
289457
289455
|
}
|
|
@@ -294324,9 +294322,9 @@ const UserVideoContainer = reactExports.memo(({
|
|
|
294324
294322
|
minHeight: "120px"
|
|
294325
294323
|
},
|
|
294326
294324
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
294327
|
-
className: " h-full relative",
|
|
294325
|
+
className: "w-full h-full relative",
|
|
294328
294326
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
294329
|
-
className: " h-full bg-gray-800 flex items-center justify-center",
|
|
294327
|
+
className: "w-full h-full bg-gray-800 flex items-center justify-center",
|
|
294330
294328
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
294331
294329
|
className: "h-full text-gray-400 text-sm",
|
|
294332
294330
|
id: videoId
|
|
@@ -294644,16 +294642,16 @@ const VideoSwipeContainer = reactExports.memo(
|
|
|
294644
294642
|
"div",
|
|
294645
294643
|
{
|
|
294646
294644
|
ref: containerRef,
|
|
294647
|
-
className: `relative
|
|
294645
|
+
className: `relative w-full h-full overflow-hidden ${className}`,
|
|
294648
294646
|
style: { touchAction: "none" },
|
|
294649
294647
|
children: [
|
|
294650
294648
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
294651
294649
|
"div",
|
|
294652
294650
|
{
|
|
294653
|
-
className: "flex
|
|
294651
|
+
className: "flex w-full h-full transition-transform duration-300 ease-out",
|
|
294654
294652
|
style: slideContainerStyle,
|
|
294655
294653
|
children: [
|
|
294656
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: " h-full flex-shrink-0 relative", children: [
|
|
294654
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full h-full flex-shrink-0 relative", children: [
|
|
294657
294655
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: " h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(UserVideoContainer, { user: mainVideoUser, isSelected: true, videoId: mainVideoId }) }),
|
|
294658
294656
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute top-4 right-4 w-24 h-32 rounded-lg overflow-hidden shadow-lg border-2 border-white/20 z-10", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
294659
294657
|
UserVideoContainer,
|
|
@@ -294665,7 +294663,7 @@ const VideoSwipeContainer = reactExports.memo(
|
|
|
294665
294663
|
}
|
|
294666
294664
|
) })
|
|
294667
294665
|
] }),
|
|
294668
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: " h-full flex-shrink-0 overflow-hidden flex items-center justify-center relative", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
294666
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full h-full flex-shrink-0 overflow-hidden flex items-center justify-center relative", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
294669
294667
|
"div",
|
|
294670
294668
|
{
|
|
294671
294669
|
className: "w-full",
|
|
@@ -295238,294 +295236,301 @@ const LiveDetection = ({
|
|
|
295238
295236
|
}, [step2]);
|
|
295239
295237
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295240
295238
|
className: " h-full bg-#818384 flex items-center justify-center",
|
|
295241
|
-
children: /* @__PURE__ */ jsxRuntimeExports.
|
|
295242
|
-
|
|
295243
|
-
|
|
295244
|
-
|
|
295245
|
-
|
|
295246
|
-
|
|
295247
|
-
|
|
295248
|
-
|
|
295249
|
-
className: "cursor-pointer text-16px",
|
|
295250
|
-
onClick: () => setShowHome(true),
|
|
295251
|
-
children: "跳过检测"
|
|
295252
|
-
})]
|
|
295253
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295254
|
-
className: " flex-1 px-20",
|
|
295239
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConfigProvider$1, {
|
|
295240
|
+
theme: {
|
|
295241
|
+
token: {
|
|
295242
|
+
colorPrimary: "#6672fc"
|
|
295243
|
+
}
|
|
295244
|
+
},
|
|
295245
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295246
|
+
className: "w-720px h-600px flex items-center justify-between flex-col bg-#fff rounded p-7.5 gap-10",
|
|
295255
295247
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295256
|
-
className: "
|
|
295248
|
+
className: "w-full flex justify-between h-10",
|
|
295249
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295250
|
+
className: "text-18px",
|
|
295251
|
+
children: "直播设备检测"
|
|
295252
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295253
|
+
className: "cursor-pointer text-16px",
|
|
295254
|
+
onClick: () => setShowHome(true),
|
|
295255
|
+
children: "跳过检测"
|
|
295256
|
+
})]
|
|
295257
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295258
|
+
className: " flex-1 px-20",
|
|
295257
295259
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295258
|
-
className: "
|
|
295260
|
+
className: "mb-10",
|
|
295259
295261
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295260
|
-
className: "
|
|
295261
|
-
|
|
295262
|
-
|
|
295263
|
-
|
|
295264
|
-
|
|
295265
|
-
|
|
295266
|
-
|
|
295267
|
-
|
|
295268
|
-
|
|
295269
|
-
|
|
295270
|
-
|
|
295271
|
-
|
|
295272
|
-
|
|
295273
|
-
|
|
295274
|
-
|
|
295262
|
+
className: " flex justify-between items-center text-14px",
|
|
295263
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295264
|
+
className: "w-20 h-20 border border-#dfe1e5 border-solid rounded-full flex items-center justify-center relative",
|
|
295265
|
+
style: {
|
|
295266
|
+
lineHeight: 1
|
|
295267
|
+
},
|
|
295268
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("svg", {
|
|
295269
|
+
className: "icon",
|
|
295270
|
+
viewBox: "0 0 1024 1024",
|
|
295271
|
+
version: "1.1",
|
|
295272
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
295273
|
+
width: "34",
|
|
295274
|
+
height: "34",
|
|
295275
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", {
|
|
295276
|
+
d: "M544 896h127.936a31.968 31.968 0 1 1 0 64H352.064a31.968 31.968 0 1 1 0-64H480V766.56C300.576 750.4 160 599.616 160 416c0-194.4 157.6-352 352-352s352 157.6 352 352c0 183.616-140.576 334.4-320 350.56V896z m-32-192a288 288 0 1 0 0-576 288 288 0 0 0 0 576z m0-96a192 192 0 1 1 0-384 192 192 0 0 1 0 384z m0-64a128 128 0 1 0 0-256 128 128 0 0 0 0 256z",
|
|
295277
|
+
fill: "#000000",
|
|
295278
|
+
"p-id": "8460"
|
|
295279
|
+
})
|
|
295280
|
+
}), deviceState.camera === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$1r, {
|
|
295281
|
+
className: "absolute text-#ff4d4f bottom-15px right-15px text-19px"
|
|
295282
|
+
}), deviceState.camera === 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$o, {
|
|
295283
|
+
className: "absolute text-#52c41a bottom-15px right-15px text-19px"
|
|
295284
|
+
})]
|
|
295285
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295286
|
+
className: "w-94px h-1 bg-#eee"
|
|
295287
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295288
|
+
className: "w-20 h-20 border border-#dfe1e5 border-solid rounded-full flex items-center justify-center relative",
|
|
295289
|
+
style: {
|
|
295290
|
+
lineHeight: 1
|
|
295291
|
+
},
|
|
295292
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$1h, {
|
|
295293
|
+
className: `text-30px ${step2 >= 1 ? "text-#000" : "text-#ccc"}`
|
|
295294
|
+
}), deviceState.microphone === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$1r, {
|
|
295295
|
+
className: "absolute text-#ff4d4f bottom-15px right-15px text-19px"
|
|
295296
|
+
}), deviceState.microphone === 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$o, {
|
|
295297
|
+
className: "absolute text-#52c41a bottom-15px right-15px text-19px"
|
|
295298
|
+
})]
|
|
295299
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295300
|
+
className: "w-94px h-1 bg-#eee"
|
|
295301
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295302
|
+
className: "w-20 h-20 border border-#dfe1e5 border-solid rounded-full flex items-center justify-center",
|
|
295303
|
+
style: {
|
|
295304
|
+
lineHeight: 1
|
|
295305
|
+
},
|
|
295306
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$n, {
|
|
295307
|
+
className: `text-30px ${step2 >= 2 ? "text-#000" : "text-#ccc"}`
|
|
295275
295308
|
})
|
|
295276
|
-
}), deviceState.camera === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$1r, {
|
|
295277
|
-
className: "absolute text-#ff4d4f bottom-15px right-15px text-19px"
|
|
295278
|
-
}), deviceState.camera === 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$o, {
|
|
295279
|
-
className: "absolute text-#52c41a bottom-15px right-15px text-19px"
|
|
295280
295309
|
})]
|
|
295281
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295282
|
-
className: "w-94px h-1 bg-#eee"
|
|
295283
295310
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295284
|
-
className: "
|
|
295285
|
-
|
|
295286
|
-
|
|
295287
|
-
|
|
295288
|
-
|
|
295289
|
-
|
|
295290
|
-
|
|
295291
|
-
|
|
295292
|
-
|
|
295293
|
-
|
|
295311
|
+
className: " flex justify-between items-center mt-4 text-14px text-#000",
|
|
295312
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295313
|
+
className: "w-20 flex items-center justify-center",
|
|
295314
|
+
style: {
|
|
295315
|
+
lineHeight: 1
|
|
295316
|
+
},
|
|
295317
|
+
children: "摄像头"
|
|
295318
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295319
|
+
className: `w-20 flex items-center justify-center ${step2 >= 1 ? "" : "text-#ccc"}`,
|
|
295320
|
+
style: {
|
|
295321
|
+
lineHeight: 1
|
|
295322
|
+
},
|
|
295323
|
+
children: "麦克风"
|
|
295324
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295325
|
+
className: `w-20 flex items-center justify-center ${step2 >= 2 ? "" : "text-#ccc"}`,
|
|
295326
|
+
style: {
|
|
295327
|
+
lineHeight: 1
|
|
295328
|
+
},
|
|
295329
|
+
children: "检测结果"
|
|
295294
295330
|
})]
|
|
295295
|
-
})
|
|
295296
|
-
|
|
295297
|
-
|
|
295298
|
-
|
|
295299
|
-
|
|
295300
|
-
|
|
295331
|
+
})]
|
|
295332
|
+
}), step2 === 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
295333
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Form2.Item, {
|
|
295334
|
+
label: "选择摄像头",
|
|
295335
|
+
labelCol: {
|
|
295336
|
+
span: 4
|
|
295301
295337
|
},
|
|
295302
|
-
|
|
295303
|
-
|
|
295338
|
+
colon: false,
|
|
295339
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select$1, {
|
|
295340
|
+
onChange: async (deviceId) => {
|
|
295341
|
+
await previewCamera(deviceId);
|
|
295342
|
+
},
|
|
295343
|
+
placeholder: "请选择摄像头",
|
|
295344
|
+
options: videoDevices
|
|
295345
|
+
})
|
|
295346
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Form2.Item, {
|
|
295347
|
+
label: " ",
|
|
295348
|
+
labelCol: {
|
|
295349
|
+
span: 4
|
|
295350
|
+
},
|
|
295351
|
+
colon: false,
|
|
295352
|
+
wrapperCol: {
|
|
295353
|
+
span: 20
|
|
295354
|
+
},
|
|
295355
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("video", {
|
|
295356
|
+
id: "previewCameraVideo",
|
|
295357
|
+
className: "w-180px aspect-video block bg-black",
|
|
295358
|
+
controls: false
|
|
295304
295359
|
})
|
|
295305
295360
|
})]
|
|
295306
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
295307
|
-
|
|
295308
|
-
|
|
295309
|
-
|
|
295310
|
-
|
|
295311
|
-
lineHeight: 1
|
|
295361
|
+
}), step2 === 1 && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
295362
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Form2.Item, {
|
|
295363
|
+
label: "选择麦克风",
|
|
295364
|
+
labelCol: {
|
|
295365
|
+
span: 4
|
|
295312
295366
|
},
|
|
295313
|
-
|
|
295314
|
-
|
|
295315
|
-
|
|
295316
|
-
|
|
295317
|
-
|
|
295367
|
+
colon: false,
|
|
295368
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select$1, {
|
|
295369
|
+
onChange: async (deviceId) => {
|
|
295370
|
+
await previewMicrophone(deviceId);
|
|
295371
|
+
},
|
|
295372
|
+
placeholder: "请选择麦克风",
|
|
295373
|
+
options: audioDevices
|
|
295374
|
+
})
|
|
295375
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Form2.Item, {
|
|
295376
|
+
label: " ",
|
|
295377
|
+
labelCol: {
|
|
295378
|
+
span: 4
|
|
295318
295379
|
},
|
|
295319
|
-
|
|
295320
|
-
|
|
295321
|
-
|
|
295322
|
-
style: {
|
|
295323
|
-
lineHeight: 1
|
|
295380
|
+
colon: false,
|
|
295381
|
+
wrapperCol: {
|
|
295382
|
+
span: 20
|
|
295324
295383
|
},
|
|
295325
|
-
children: "
|
|
295384
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295385
|
+
className: " h-100px flex flex-col",
|
|
295386
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("canvas", {
|
|
295387
|
+
id: "volume-canvas",
|
|
295388
|
+
width: "400",
|
|
295389
|
+
height: "200",
|
|
295390
|
+
className: " h-80px"
|
|
295391
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295392
|
+
className: "h-20px",
|
|
295393
|
+
style: {
|
|
295394
|
+
lineHeight: "20px"
|
|
295395
|
+
},
|
|
295396
|
+
children: "发声后能否看到音量条波动?"
|
|
295397
|
+
})]
|
|
295398
|
+
})
|
|
295326
295399
|
})]
|
|
295327
|
-
})
|
|
295328
|
-
|
|
295329
|
-
|
|
295330
|
-
|
|
295331
|
-
|
|
295332
|
-
span: 4
|
|
295333
|
-
},
|
|
295334
|
-
colon: false,
|
|
295335
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select$1, {
|
|
295336
|
-
onChange: async (deviceId) => {
|
|
295337
|
-
await previewCamera(deviceId);
|
|
295400
|
+
}), step2 === 0 || step2 === 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
|
|
295401
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Form2.Item, {
|
|
295402
|
+
label: " ",
|
|
295403
|
+
labelCol: {
|
|
295404
|
+
span: 4
|
|
295338
295405
|
},
|
|
295339
|
-
|
|
295340
|
-
|
|
295341
|
-
|
|
295342
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Form2.Item, {
|
|
295343
|
-
label: " ",
|
|
295344
|
-
labelCol: {
|
|
295345
|
-
span: 4
|
|
295346
|
-
},
|
|
295347
|
-
colon: false,
|
|
295348
|
-
wrapperCol: {
|
|
295349
|
-
span: 20
|
|
295350
|
-
},
|
|
295351
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("video", {
|
|
295352
|
-
id: "previewCameraVideo",
|
|
295353
|
-
className: "w-180px aspect-video block bg-black",
|
|
295354
|
-
controls: false
|
|
295355
|
-
})
|
|
295356
|
-
})]
|
|
295357
|
-
}), step2 === 1 && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
295358
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Form2.Item, {
|
|
295359
|
-
label: "选择麦克风",
|
|
295360
|
-
labelCol: {
|
|
295361
|
-
span: 4
|
|
295362
|
-
},
|
|
295363
|
-
colon: false,
|
|
295364
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select$1, {
|
|
295365
|
-
onChange: async (deviceId) => {
|
|
295366
|
-
await previewMicrophone(deviceId);
|
|
295406
|
+
colon: false,
|
|
295407
|
+
wrapperCol: {
|
|
295408
|
+
span: 20
|
|
295367
295409
|
},
|
|
295368
|
-
|
|
295369
|
-
|
|
295410
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295411
|
+
className: "text-14px text-#949494 w-full",
|
|
295412
|
+
children: "提示:如果是第一次检测,请打开浏览器访问摄像头和麦克风权限;请确保当前链接安全协议为https"
|
|
295413
|
+
})
|
|
295370
295414
|
})
|
|
295371
|
-
}), /* @__PURE__ */ jsxRuntimeExports.
|
|
295372
|
-
|
|
295373
|
-
|
|
295374
|
-
|
|
295375
|
-
|
|
295376
|
-
|
|
295377
|
-
|
|
295378
|
-
|
|
295379
|
-
|
|
295380
|
-
|
|
295381
|
-
|
|
295382
|
-
|
|
295383
|
-
|
|
295384
|
-
width: "400",
|
|
295385
|
-
height: "200",
|
|
295386
|
-
className: " h-80px"
|
|
295387
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295388
|
-
className: "h-20px",
|
|
295389
|
-
style: {
|
|
295390
|
-
lineHeight: "20px"
|
|
295391
|
-
},
|
|
295392
|
-
children: "发声后能否看到音量条波动?"
|
|
295415
|
+
}) : null, step2 === 2 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295416
|
+
className: " h-200px flex items-center justify-center flex-col bg-#f5f5f5 text-14px gap-4",
|
|
295417
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295418
|
+
className: "w-250px h-20px flex items-center justify-between",
|
|
295419
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295420
|
+
children: "摄像头"
|
|
295421
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295422
|
+
children: [deviceState.camera === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
295423
|
+
className: "text-#ff0000",
|
|
295424
|
+
children: "异常"
|
|
295425
|
+
}), deviceState.camera === 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
295426
|
+
children: "正常"
|
|
295427
|
+
})]
|
|
295393
295428
|
})]
|
|
295394
|
-
})
|
|
295395
|
-
})]
|
|
295396
|
-
}), step2 === 0 || step2 === 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
|
|
295397
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Form2.Item, {
|
|
295398
|
-
label: " ",
|
|
295399
|
-
labelCol: {
|
|
295400
|
-
span: 4
|
|
295401
|
-
},
|
|
295402
|
-
colon: false,
|
|
295403
|
-
wrapperCol: {
|
|
295404
|
-
span: 20
|
|
295405
|
-
},
|
|
295406
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295407
|
-
className: "text-14px text-#949494 w-full",
|
|
295408
|
-
children: "提示:如果是第一次检测,请打开浏览器访问摄像头和麦克风权限;请确保当前链接安全协议为https"
|
|
295409
|
-
})
|
|
295410
|
-
})
|
|
295411
|
-
}) : null, step2 === 2 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295412
|
-
className: " h-200px flex items-center justify-center flex-col bg-#f5f5f5 text-14px gap-4",
|
|
295413
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295414
|
-
className: "w-250px h-20px flex items-center justify-between",
|
|
295415
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295416
|
-
children: "摄像头"
|
|
295417
295429
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295418
|
-
|
|
295419
|
-
|
|
295420
|
-
children: "
|
|
295421
|
-
}),
|
|
295422
|
-
children: "
|
|
295430
|
+
className: "w-250px h-20px flex items-center justify-between",
|
|
295431
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295432
|
+
children: "麦克风"
|
|
295433
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295434
|
+
children: [deviceState.microphone === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
295435
|
+
className: "text-#ff0000",
|
|
295436
|
+
children: "异常"
|
|
295437
|
+
}), deviceState.microphone === 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
295438
|
+
children: "正常"
|
|
295439
|
+
})]
|
|
295423
295440
|
})]
|
|
295424
|
-
})]
|
|
295425
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295426
|
-
className: "w-250px h-20px flex items-center justify-between",
|
|
295427
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295428
|
-
children: "麦克风"
|
|
295429
295441
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295430
|
-
|
|
295431
|
-
|
|
295432
|
-
children: "
|
|
295433
|
-
}),
|
|
295434
|
-
children: "
|
|
295442
|
+
className: "w-250px h-20px flex items-center justify-between",
|
|
295443
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295444
|
+
children: "网速"
|
|
295445
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295446
|
+
children: deviceState.onLine ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
295447
|
+
children: "正常"
|
|
295448
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
295449
|
+
className: "text-#ff0000",
|
|
295450
|
+
children: "异常"
|
|
295451
|
+
})
|
|
295435
295452
|
})]
|
|
295436
|
-
})
|
|
295437
|
-
|
|
295438
|
-
|
|
295439
|
-
|
|
295440
|
-
|
|
295441
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295442
|
-
children: deviceState.onLine ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
295453
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295454
|
+
className: "w-250px h-20px flex items-center justify-between",
|
|
295455
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295456
|
+
children: "浏览器"
|
|
295457
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295443
295458
|
children: "正常"
|
|
295444
|
-
})
|
|
295445
|
-
className: "text-#ff0000",
|
|
295446
|
-
children: "异常"
|
|
295447
|
-
})
|
|
295448
|
-
})]
|
|
295449
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295450
|
-
className: "w-250px h-20px flex items-center justify-between",
|
|
295451
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295452
|
-
children: "浏览器"
|
|
295453
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
295454
|
-
children: "正常"
|
|
295459
|
+
})]
|
|
295455
295460
|
})]
|
|
295456
295461
|
})]
|
|
295457
|
-
})
|
|
295458
|
-
|
|
295459
|
-
|
|
295460
|
-
|
|
295461
|
-
|
|
295462
|
-
|
|
295463
|
-
|
|
295464
|
-
|
|
295465
|
-
|
|
295466
|
-
|
|
295467
|
-
|
|
295468
|
-
};
|
|
295469
|
-
}
|
|
295470
|
-
|
|
295471
|
-
|
|
295472
|
-
|
|
295473
|
-
|
|
295474
|
-
|
|
295475
|
-
|
|
295476
|
-
};
|
|
295462
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
295463
|
+
className: " flex items-center gap-3 justify-center",
|
|
295464
|
+
children: [step2 === 0 || step2 === 1 ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
295465
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, {
|
|
295466
|
+
onClick: () => {
|
|
295467
|
+
if (step2 === 0) {
|
|
295468
|
+
setDeviceState((old) => {
|
|
295469
|
+
return {
|
|
295470
|
+
...old,
|
|
295471
|
+
camera: 0
|
|
295472
|
+
};
|
|
295473
|
+
});
|
|
295474
|
+
}
|
|
295475
|
+
if (step2 === 1) {
|
|
295476
|
+
setDeviceState((old) => {
|
|
295477
|
+
return {
|
|
295478
|
+
...old,
|
|
295479
|
+
microphone: 0
|
|
295480
|
+
};
|
|
295481
|
+
});
|
|
295482
|
+
}
|
|
295483
|
+
setStep((old) => {
|
|
295484
|
+
return old + 1;
|
|
295477
295485
|
});
|
|
295478
|
-
}
|
|
295479
|
-
|
|
295480
|
-
|
|
295481
|
-
|
|
295482
|
-
|
|
295483
|
-
|
|
295484
|
-
|
|
295485
|
-
|
|
295486
|
-
|
|
295487
|
-
|
|
295488
|
-
|
|
295489
|
-
|
|
295490
|
-
|
|
295491
|
-
|
|
295492
|
-
|
|
295486
|
+
},
|
|
295487
|
+
children: "看不到"
|
|
295488
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, {
|
|
295489
|
+
type: "primary",
|
|
295490
|
+
onClick: () => {
|
|
295491
|
+
if (step2 === 0) {
|
|
295492
|
+
setDeviceState((old) => {
|
|
295493
|
+
return {
|
|
295494
|
+
...old,
|
|
295495
|
+
camera: 1
|
|
295496
|
+
};
|
|
295497
|
+
});
|
|
295498
|
+
}
|
|
295499
|
+
if (step2 === 1) {
|
|
295500
|
+
setDeviceState((old) => {
|
|
295501
|
+
return {
|
|
295502
|
+
...old,
|
|
295503
|
+
microphone: 1
|
|
295504
|
+
};
|
|
295505
|
+
});
|
|
295506
|
+
}
|
|
295507
|
+
setStep((old) => {
|
|
295508
|
+
return old + 1;
|
|
295493
295509
|
});
|
|
295494
|
-
}
|
|
295495
|
-
|
|
295510
|
+
},
|
|
295511
|
+
children: "可以看到"
|
|
295512
|
+
})]
|
|
295513
|
+
}) : null, step2 === 2 && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
295514
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, {
|
|
295515
|
+
onClick: () => {
|
|
295516
|
+
setStep(0);
|
|
295496
295517
|
setDeviceState((old) => {
|
|
295497
295518
|
return {
|
|
295498
295519
|
...old,
|
|
295499
|
-
|
|
295520
|
+
camera: null,
|
|
295521
|
+
microphone: null
|
|
295500
295522
|
};
|
|
295501
295523
|
});
|
|
295502
|
-
}
|
|
295503
|
-
|
|
295504
|
-
|
|
295505
|
-
|
|
295506
|
-
|
|
295507
|
-
|
|
295508
|
-
|
|
295509
|
-
}) : null, step2 === 2 && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
295510
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, {
|
|
295511
|
-
onClick: () => {
|
|
295512
|
-
setStep(0);
|
|
295513
|
-
setDeviceState((old) => {
|
|
295514
|
-
return {
|
|
295515
|
-
...old,
|
|
295516
|
-
camera: null,
|
|
295517
|
-
microphone: null
|
|
295518
|
-
};
|
|
295519
|
-
});
|
|
295520
|
-
},
|
|
295521
|
-
children: "重新检测"
|
|
295522
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, {
|
|
295523
|
-
type: "primary",
|
|
295524
|
-
onClick: () => setShowHome(true),
|
|
295525
|
-
children: "去直播"
|
|
295524
|
+
},
|
|
295525
|
+
children: "重新检测"
|
|
295526
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, {
|
|
295527
|
+
type: "primary",
|
|
295528
|
+
onClick: () => setShowHome(true),
|
|
295529
|
+
children: "去直播"
|
|
295530
|
+
})]
|
|
295526
295531
|
})]
|
|
295527
295532
|
})]
|
|
295528
|
-
})
|
|
295533
|
+
})
|
|
295529
295534
|
})
|
|
295530
295535
|
});
|
|
295531
295536
|
};
|