This commit is contained in:
parent
7c7b2dd574
commit
ffcd869113
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue