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