This commit is contained in:
yj 2024-09-26 09:40:01 +08:00
parent 7c7b2dd574
commit ffcd869113
1 changed files with 5 additions and 9 deletions

View File

@ -188,15 +188,11 @@ const Meeting: React.FC = () => {
let time: NodeJS.Timeout;
// let getDesktopCapturerVideoTime: NodeJS.Timeout;
setUser(userInfo)
setTimeout(() => {
if (location.hash.indexOf('/login') === -1) {
window.electron.getIsMaximized().then((res: boolean) => {
if (!res) {
window.electron.setViewStatus('maximize')
}
})
window.electron.getIsMaximized().then((res: boolean) => {
if (!res) {
window.electron.setViewStatus('maximize')
}
}, 1000)
})
setMeetingMode('StandardMode');
agoraInit()
storage.setItem('noViewChatList', 0)
@ -667,8 +663,8 @@ const Meeting: React.FC = () => {
// 声网初始化
const agoraInit = async () => {
await getJoin(state.enableMicr, state.enableCamera)
await agora.init(true)
await getJoin(state.enableMicr, state.enableCamera)
agora.registerEventHandler({
onJoinChannelSuccess: async (connection: RtcConnection, _elapsed: number) => {
if (connection.channelId === state.channelId) {