From f34731f040ebf524bcf9b29c812d8d2d46534bf1 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 7 Nov 2024 16:47:16 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=B0=8F=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 31 ++++++++++++++++-------------- preload.js | 10 +++------- src/App.tsx | 1 - src/page/Meeting/index.module.scss | 25 ++++++++++++++++++++++-- src/page/Meeting/index.tsx | 22 +++++++++++++++++++-- src/render.d.ts | 3 +-- 6 files changed, 64 insertions(+), 28 deletions(-) diff --git a/main.js b/main.js index b9eb67a..386f5f2 100644 --- a/main.js +++ b/main.js @@ -551,7 +551,8 @@ app.on('ready', () => { childWindow[k] = "" } } - mainWindowCenter() + mainWindow.setSkipTaskbar(false) + mainWindow.setAlwaysOnTop(false) } else { childWindow[key].close() childWindow[key] = "" @@ -589,13 +590,18 @@ app.on('ready', () => { } } }); - // 隐藏主窗口 - ipcMain.handle('mainWindowHide', () => { - mainWindowHide() - }); - // 居中主窗口 - ipcMain.handle('mainWindowCenter', () => { - mainWindowCenter() + // 定位主窗口 + ipcMain.handle('setPosition', (event, data) => { + const display = screen.getDisplayMatching({ ...mainWindow.getBounds() }); + const { width, height } = display.size + switch (data) { + case 'right': + x = width - mainWindow.getSize()[0]; + mainWindow.setPosition(x - 40, 40); + break; + default: + break; + } }); // 窗口通信 ipcMain.handle('windowHandleMessage', (event, data) => { @@ -682,7 +688,8 @@ function windowOperation(config) { case 'shareScreenWindow': x = Math.round((display.workArea.width - child.getSize()[0]) / 2); child.setPosition(x, 0); - mainWindowHide() + mainWindow.setSkipTaskbar(true) + mainWindow.setAlwaysOnTop(true, 'screen-saver') break; case 'chatSmallWindow': y = height - child.getSize()[1]; @@ -690,7 +697,7 @@ function windowOperation(config) { break; case 'currentSpeakUserWindow': x = width - child.getSize()[0]; - child.setPosition(x - 40, 40); + child.setPosition(x - 40, 210); break; case 'noticeWindow': x = width - child.getSize()[0]; @@ -706,10 +713,6 @@ function mainWindowCenter() { const y = Math.round((display.workArea.height - mainWindow.getSize()[1]) / 2); mainWindow.setPosition(x, y); } -// 主窗口隐藏 -function mainWindowHide() { - mainWindow.setPosition(-999999, -999999); -} const startSignalr = async (user) => { connection = new signalR.HubConnectionBuilder() diff --git a/preload.js b/preload.js index 4cae81d..2435a1d 100644 --- a/preload.js +++ b/preload.js @@ -127,13 +127,9 @@ window.electron = { setChildWindowShow: (config) => { ipcRenderer.invoke('setChildWindowShow', config) }, - // 隐藏主窗口 - mainWindowHide: () => { - ipcRenderer.invoke('mainWindowHide') - }, - // 居中主窗口 - mainWindowCenter: () => { - ipcRenderer.invoke('mainWindowCenter') + // 定位主窗口 + setPosition: (data) => { + ipcRenderer.invoke('setPosition', data) }, // 窗口通信传参 windowHandleMessage: (data) => { diff --git a/src/App.tsx b/src/App.tsx index 5e0b4ef..018c99f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,7 +16,6 @@ import { PostLogin } from "@/api/Login"; import { agora } from "@/utils/package/agora"; import QuitTips from "@/components/QuitTips"; import { GetLeave } from "@/api/Meeting"; -import path from "path"; import ShareScreenWindow from "@/page/Meeting/ShareScreenWindow"; import UserListWindow from "@/page/Meeting/UserListWindow"; import ChatSmallWindow from "@/page/Meeting/ChatSmallWindow"; diff --git a/src/page/Meeting/index.module.scss b/src/page/Meeting/index.module.scss index 4342a23..11ba7ea 100644 --- a/src/page/Meeting/index.module.scss +++ b/src/page/Meeting/index.module.scss @@ -94,6 +94,29 @@ background-color: #1F2022; display: flex; flex-direction: column; + position: relative; + + .meetingAbsolute { + position: absolute; + width: 100%; + height: 100%; + background-color: #1F2022; + left: 0; + top: 0; + z-index: 3000; + + .meetingAbsoluteLoading { + background: black; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + } + } .meetingHeader { display: flex; @@ -597,8 +620,6 @@ color: #F3F3F5; margin-left: 4px; } - - >div {} } >div:nth-child(2) { diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index fc33cfb..8fe5559 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -156,7 +156,7 @@ const Meeting: React.FC = () => { }) const [networkOther, setNetworkOther] = useState({}) const [isComputerAudio, setIsComputerAudio] = useState(false) - const [_isScreenCapture, setIsScreenCapture] = useState(false) + const [isScreenCapture, setIsScreenCapture] = useState(false) const [isFluencyPriority, setIsFluencyPriority] = useState(false) const [open, setOpen] = useState(false) const [modeOpen, setModeOpen] = useState(false) @@ -1597,7 +1597,6 @@ const Meeting: React.FC = () => { await allUserLook(user.screenShareId, user.userName) const isOpen = await getKeyOpenChildWindow('shareScreenWindow') setIsScreenCapture(true) - window.electron.setViewStatus('hide') if (!isOpen) { window.electron.createChildWindow({ url: location.origin + `/#/noticeWindow`, @@ -1640,6 +1639,20 @@ const Meeting: React.FC = () => { key: 'userListWindow', }) setKeyOpenChildWindow('shareScreenWindow', true) + window.electron.setMainWindowSize({ + width: 250, + height: 160, + }) + window.electron.setPosition('right') + setTimeout(() => { + agora.setupLocalVideo({ + uid: Number(user.uid), + view: document.getElementById(`meetingAbsoluteVideo`) as HTMLElement, + channelId: state.channelId, + sourceType: VideoSourceType.VideoSourceCameraPrimary, + type: true + }) + }, 1500); } } else { message.error('请选择应用!') @@ -2067,6 +2080,11 @@ const Meeting: React.FC = () => { return ( <>
+ {isScreenCapture ?
+ {footerList[0][1].active ?
+ +
: null} +
: null} {contextHolder}
diff --git a/src/render.d.ts b/src/render.d.ts index aa4f3ef..bc2be79 100644 --- a/src/render.d.ts +++ b/src/render.d.ts @@ -32,8 +32,7 @@ export interface IElectronAPI { setChildWindow: (config: any) => void; setChildWindowShow: (config: any) => void; closeChildWindow: (key: string) => void; - mainWindowCenter: () => any; - mainWindowHide: () => any; + setPosition: (data: ang) => void; windowHandleMessage: (data: any) => {} windowHandleMessageCallBack: (callBack: Function) => void; } -- 2.40.1 From d68bf9c3f6a23468b253833614a46d57af01eb1a Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 8 Nov 2024 15:18:59 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 6 ++++++ src/page/Meeting/index.module.scss | 14 ++++++++++++++ src/page/Meeting/index.tsx | 8 ++++++++ 3 files changed, 28 insertions(+) diff --git a/main.js b/main.js index 386f5f2..c933883 100644 --- a/main.js +++ b/main.js @@ -570,6 +570,12 @@ app.on('ready', () => { case 'noticeWindow': childWindow[config.key].setBounds({ width: config.width, height: config.height }) break; + default: + mainWindow.setMinimumSize(250, config.height); + mainWindow.setMaximumSize(250, config.height); + mainWindow.setSize(250, config.height) + mainWindow.setBounds({ height: config.height }) + break; } }); // 隐藏显示子窗口 diff --git a/src/page/Meeting/index.module.scss b/src/page/Meeting/index.module.scss index 11ba7ea..97678a3 100644 --- a/src/page/Meeting/index.module.scss +++ b/src/page/Meeting/index.module.scss @@ -115,6 +115,20 @@ display: flex; justify-content: center; align-items: center; + z-index: 1; + } + + .meetingAbsoluteText { + position: absolute; + width: 100%; + bottom: 0; + left: 0; + color: white; + text-align: center; + z-index: 1; + background-color: rgba(0, 0, 0, 0.5); + cursor: pointer; + font-size: 14px; } } diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 8fe5559..267fccb 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -147,6 +147,7 @@ const Meeting: React.FC = () => { const [roomUserList, setRoomUserList] = useState([]) const [_speackUid, setSpeackUid] = useState([]) const [chatList, setChatList] = useState([]) + const [isExpand, setIsExpand] = useState(false) const [currentVideoId, setCurrentVideoId] = useState('') let [currentSeconds, setCurrentSeconds] = useState(0) const [currentEffective, setCurrentEffective] = useState(4) @@ -2084,6 +2085,13 @@ const Meeting: React.FC = () => { {footerList[0][1].active ?
: null} +
{ + setIsExpand(!isExpand) + window.electron.setChildWindow({ + height: isExpand ? 160 : 20, + key: 'main' + }) + }}>{isExpand ? '展开' : '收起'}
: null} {contextHolder}
-- 2.40.1 From ec8ec8d9cb236c8a5a0f7a27840f11660cab7667 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 12 Nov 2024 09:10:51 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4=E8=A2=AB?= =?UTF-8?q?=E6=9A=82=E7=94=A8=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 1 + src/page/Meeting/index.tsx | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 018c99f..b73bfcd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -164,6 +164,7 @@ const App: React.FC = () => { if (location.href.indexOf('/login') !== -1) { window.electron.onStop() } + message.destroy('cameraTemporarily') }, [navigate]) } useEffect(() => { diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 267fccb..2d0a840 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -1060,6 +1060,14 @@ const Meeting: React.FC = () => { } return bool }) + } else if (reason === 3 || reason === 4) { + message.error({ + content:
请检查摄像头是否正常工作,检查摄像头是否被其他应用占用,或者尝试重新加入频道 { + stupWizardRef.current.changeModal(1); + }}>前往设置
, + duration: 60, + key: 'cameraTemporarily' + }); } } }) -- 2.40.1 From 2bb36d0d780ea87537daefaca6c4996993bafab7 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 12 Nov 2024 09:12:29 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 2d0a840..64f5044 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -1062,9 +1062,9 @@ const Meeting: React.FC = () => { }) } else if (reason === 3 || reason === 4) { message.error({ - content:
请检查摄像头是否正常工作,检查摄像头是否被其他应用占用,或者尝试重新加入频道 { + content:
请检查摄像头是否正常工作,检查摄像头是否被其他应用占用,或者尝试重新加入频道, { stupWizardRef.current.changeModal(1); - }}>前往设置
, + }}>前往修改摄像头
, duration: 60, key: 'cameraTemporarily' }); -- 2.40.1 From d2cf731a347dd97b6a1f5dddf2ac8b45e97c2568 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 12 Nov 2024 16:45:16 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 7 +- src/App.tsx | 4 +- .../CurrentSpeakUserWindow/index.module.scss | 19 ---- .../Meeting/CurrentSpeakUserWindow/index.tsx | 36 ------- src/page/Meeting/index.module.scss | 6 +- src/page/Meeting/index.tsx | 99 +++++++++---------- 6 files changed, 54 insertions(+), 117 deletions(-) delete mode 100644 src/page/Meeting/CurrentSpeakUserWindow/index.module.scss delete mode 100644 src/page/Meeting/CurrentSpeakUserWindow/index.tsx diff --git a/main.js b/main.js index c933883..f6b030b 100644 --- a/main.js +++ b/main.js @@ -552,6 +552,7 @@ app.on('ready', () => { } } mainWindow.setSkipTaskbar(false) + mainWindow.setResizable(true) mainWindow.setAlwaysOnTop(false) } else { childWindow[key].close() @@ -574,7 +575,6 @@ app.on('ready', () => { mainWindow.setMinimumSize(250, config.height); mainWindow.setMaximumSize(250, config.height); mainWindow.setSize(250, config.height) - mainWindow.setBounds({ height: config.height }) break; } }); @@ -695,16 +695,13 @@ function windowOperation(config) { x = Math.round((display.workArea.width - child.getSize()[0]) / 2); child.setPosition(x, 0); mainWindow.setSkipTaskbar(true) + mainWindow.setResizable(false) mainWindow.setAlwaysOnTop(true, 'screen-saver') break; case 'chatSmallWindow': y = height - child.getSize()[1]; child.setPosition(40, y - 200); break; - case 'currentSpeakUserWindow': - x = width - child.getSize()[0]; - child.setPosition(x - 40, 210); - break; case 'noticeWindow': x = width - child.getSize()[0]; y = height - child.getSize()[1]; diff --git a/src/App.tsx b/src/App.tsx index b73bfcd..ada9605 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -20,7 +20,6 @@ import ShareScreenWindow from "@/page/Meeting/ShareScreenWindow"; import UserListWindow from "@/page/Meeting/UserListWindow"; import ChatSmallWindow from "@/page/Meeting/ChatSmallWindow"; import ChatBigWindow from "@/page/Meeting/ChatBigWindow"; -import CurrentSpeakUserWindow from "@/page/Meeting/CurrentSpeakUserWindow"; import NoticeWindow from "@/page/Meeting/NoticeWindow"; import { getKeyOpenChildWindow, setKeyOpenChildWindow, storageSeeting } from "./utils/package/public"; const fs = require('fs').promises; @@ -37,7 +36,7 @@ const App: React.FC = () => { }); const [spinning, setSpinning] = useState(false); const [isState, setIsState] = useState(true); - const urlHashArr = ['#/userListWindow', '#/shareScreenWindow', '#/chatSmallWindow', '#/chatBigWindow', '#/currentSpeakUserWindow', '#/noticeWindow'] + const urlHashArr = ['#/userListWindow', '#/shareScreenWindow', '#/chatSmallWindow', '#/chatBigWindow', '#/noticeWindow'] if (urlHashArr.indexOf(location.hash) == -1) { useEffect(() => { let userInfo = JSON.parse(storage.getItem('user') as string) @@ -276,7 +275,6 @@ const App: React.FC = () => { } /> } /> } /> - } /> } /> } /> diff --git a/src/page/Meeting/CurrentSpeakUserWindow/index.module.scss b/src/page/Meeting/CurrentSpeakUserWindow/index.module.scss deleted file mode 100644 index 4b7bf32..0000000 --- a/src/page/Meeting/CurrentSpeakUserWindow/index.module.scss +++ /dev/null @@ -1,19 +0,0 @@ -.currentSpeakUserWindow { - color: white; - width: 100%; - display: flex; - flex-direction: column; - height: 100%; - background-color: #16191E; - padding: 4px; - box-sizing: border-box; - - >div { - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - width: fit-content; - font-size: 14px; - } -} \ No newline at end of file diff --git a/src/page/Meeting/CurrentSpeakUserWindow/index.tsx b/src/page/Meeting/CurrentSpeakUserWindow/index.tsx deleted file mode 100644 index 64fbf8a..0000000 --- a/src/page/Meeting/CurrentSpeakUserWindow/index.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import styles from '@/page/Meeting/CurrentSpeakUserWindow/index.module.scss' -import { useEffect, useState } from "react"; -const CurrentSpeakUserWindow: React.FC = () => { - const [inputValue, setInputValue] = useState('') - const channel = new BroadcastChannel('meeting_channel'); - useEffect(() => { - let time: NodeJS.Timeout; - time = setInterval(() => { - channel.postMessage({ - type: 'currentSpeakUserWindowGetUserName' - }) - }, 1000) - window.electron.windowHandleMessageCallBack((_e: any, data: any) => { - if (data.parmes.currentSpeakUser.length) { - setInputValue(data.parmes.currentSpeakUser.join(';')) - } else { - setInputValue('') - } - }) - return () => { - clearInterval(time) - } - }, []); - - return ( - <> -
-
- {`正在说话: ${inputValue}`} -
-
- - ) -} - -export default CurrentSpeakUserWindow diff --git a/src/page/Meeting/index.module.scss b/src/page/Meeting/index.module.scss index 97678a3..7a75217 100644 --- a/src/page/Meeting/index.module.scss +++ b/src/page/Meeting/index.module.scss @@ -121,14 +121,16 @@ .meetingAbsoluteText { position: absolute; width: 100%; - bottom: 0; left: 0; color: white; text-align: center; - z-index: 1; + z-index: 2; background-color: rgba(0, 0, 0, 0.5); cursor: pointer; font-size: 14px; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; } } diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 64f5044..48d1dac 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -146,6 +146,7 @@ const Meeting: React.FC = () => { }); const [roomUserList, setRoomUserList] = useState([]) const [_speackUid, setSpeackUid] = useState([]) + const [currentSpeakUser, setCurrentSpeakUser] = useState([]) const [chatList, setChatList] = useState([]) const [isExpand, setIsExpand] = useState(false) const [currentVideoId, setCurrentVideoId] = useState('') @@ -380,33 +381,26 @@ const Meeting: React.FC = () => { userId: noticeWindowPostRoomManager.uid }) break; - case 'currentSpeakUserWindowGetUserName': - setSpeackUid((uids: any) => { - const usernames: string[] = []; - setRoomUserList((res: any) => { - uids.forEach((uid: any) => { - const user = res.find((item: any) => item.uid == uid); - if (user) { - usernames.push(user.userName); - } - }) - window.electron.windowHandleMessage({ - key: 'currentSpeakUserWindow', - parmes: { - currentSpeakUser: usernames, - } - }) - return res - }); - return [] - }) - break; } } time = setInterval(() => { setCurrentSeconds(currentSeconds => { return currentSeconds += 1 }) + setSpeackUid((uids: any) => { + const usernames: string[] = []; + setRoomUserList((res: any) => { + uids.forEach((uid: any) => { + const user = res.find((item: any) => item.uid == uid); + if (user) { + usernames.push(user.userName); + } + }) + setCurrentSpeakUser(usernames) + return res + }); + return [] + }) }, 1000) // 首次加载图标更新 const firstFooterList = [...footerList] @@ -418,27 +412,34 @@ const Meeting: React.FC = () => { setTimeout(async () => { const setting = await JSON.parse(storage.getItem('setting') as string); const stateInfo = await JSON.parse(storage.getItem('stateInfo') as string); - if (stateInfo && setting.isRecordingTips && !recorder) { + console.log(isScreenCapture); + + if (stateInfo && setting.isRecordingTips) { setRecorder((data: any) => { if (!data) { - confirm({ - title: '提示', - icon: , - content: `是否录制本次会议?`, - centered: true, - okText: '确定', - cancelText: '取消', - async onOk() { - if (stateInfo) { - changeStatusList({ - title: '录制' - }, 1, 3) - } else { - message.error('当前不在会议室!') - } - }, - onCancel() { + setIsScreenCapture(bool => { + if (!bool) { + confirm({ + title: '提示', + icon: , + content: `是否录制本次会议?`, + centered: true, + okText: '确定', + cancelText: '取消', + async onOk() { + if (stateInfo) { + changeStatusList({ + title: '录制' + }, 1, 3) + } else { + message.error('当前不在会议室!') + } + }, + onCancel() { + } + }) } + return bool }) } return data @@ -1628,13 +1629,6 @@ const Meeting: React.FC = () => { key: 'chatSmallWindow', show: true, }) - window.electron.createChildWindow({ - url: location.origin + `/#/currentSpeakUserWindow`, - width: 200, - height: 30, - key: 'currentSpeakUserWindow', - show: true, - }) window.electron.createChildWindow({ url: location.origin + `/#/chatBigWindow`, width: 540, @@ -2090,13 +2084,14 @@ const Meeting: React.FC = () => { <>
{isScreenCapture ?
+
{currentSpeakUser.length ? '正在说话:' + currentSpeakUser.join(';') : '正在说话:'}
{footerList[0][1].active ?
: null} -
{ +
{ setIsExpand(!isExpand) window.electron.setChildWindow({ - height: isExpand ? 160 : 20, + height: isExpand ? 160 : 40, key: 'main' }) }}>{isExpand ? '展开' : '收起'}
@@ -2104,7 +2099,7 @@ const Meeting: React.FC = () => { {contextHolder}
-
@@ -2148,7 +2143,7 @@ const Meeting: React.FC = () => { {networkIcon(currentEffective)} 详情
-
+ }
{changeCurrentSeconds()}
会议号:{state.channelId} 会议名称:{state.roomName}
@@ -2663,7 +2658,7 @@ const Meeting: React.FC = () => { ) : null }
-
+ {isScreenCapture ? null :
{footerList.map((item: any, itemIndex: number) => { return (
@@ -2816,7 +2811,7 @@ const Meeting: React.FC = () => {
) })} -
+
}
-- 2.40.1 From 605e79c6d883f67ee0a9a72ccfc14672ea488b5e Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 12 Nov 2024 16:57:22 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99console?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 48d1dac..c9ad194 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -412,8 +412,6 @@ const Meeting: React.FC = () => { setTimeout(async () => { const setting = await JSON.parse(storage.getItem('setting') as string); const stateInfo = await JSON.parse(storage.getItem('stateInfo') as string); - console.log(isScreenCapture); - if (stateInfo && setting.isRecordingTips) { setRecorder((data: any) => { if (!data) { -- 2.40.1 From cbc58e40574d341e10280bd409ce544d0b7705b1 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Wed, 13 Nov 2024 08:56:35 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E5=B1=8F=E5=B9=95=E9=9F=B3=E9=A2=91=E6=B2=A1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index c9ad194..862083d 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -989,9 +989,11 @@ const Meeting: React.FC = () => { const percentage = (item.volume / 255) * 100 dom.style.height = `${percentage}%` } - if (domMe && !item.uid) { + if (!item.uid) { const percentage = (item.volume / 255) * 100 - domMe.style.height = `${percentage}%` + if (domMe) { + domMe.style.height = `${percentage}%` + } window.electron.windowHandleMessage({ key: 'shareScreenWindow', parmes: { -- 2.40.1