From 73a1309cc2a15696582c4aef043f6b0c3a29e458 Mon Sep 17 00:00:00 2001 From: cxc Date: Wed, 28 Sep 2022 16:06:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=88=B0zoom=20sdk=202.5.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/views/meeting.vue | 32 ++++++++++++++++---------------- yarn.lock | 11 +++++++++-- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index def1542..f210843 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@element-plus/icons-vue": "^1.1.4", "@wangeditor/editor": "^5.0.1", "@wangeditor/editor-for-vue": "^5.1.10", - "@zoomus/websdk": "^2.5.0", + "@zoomus/websdk": "2.5.0", "axios": "^0.26.1", "coi-serviceworker": "^0.1.6", "core-js": "^3.8.3", diff --git a/src/views/meeting.vue b/src/views/meeting.vue index 906f1c6..aa05572 100644 --- a/src/views/meeting.vue +++ b/src/views/meeting.vue @@ -343,25 +343,25 @@ const startMeeting = async () => { } }; -const setSize = () => { - meetingWidth.value = meetingContainerRef.value.offsetWidth * 0.96; - meetingHeight.value = (meetingWidth.value * 9) / 16; +// const setSize = () => { +// meetingWidth.value = meetingContainerRef.value.offsetWidth * 0.96; +// meetingHeight.value = (meetingWidth.value * 9) / 16; - // videoElementRef.value.style.width = `${meetingWidth.value}px`; - videoElementRef.value.style.height = `${meetingHeight.value + 42}px`; +// // videoElementRef.value.style.width = `${meetingWidth.value}px`; +// videoElementRef.value.style.height = `${meetingHeight.value + 42}px`; - document.querySelector( - "#video-element> div> .zmwebsdk-MuiPaper-root> .zmwebsdk-MuiPaper-root:nth-child(1)" - ).style.width = `${meetingWidth.value}px`; +// document.querySelector( +// "#video-element> div> .zmwebsdk-MuiPaper-root> .zmwebsdk-MuiPaper-root:nth-child(1)" +// ).style.width = `${meetingWidth.value}px`; - document - .querySelectorAll( - 'div[id*="suspension-view-tabpanel"] > .zmwebsdk-MuiBox-root.zmwebsdk-MuiBox-root' - ) - .forEach((el) => { - el.style.height = `${meetingHeight.value}px`; - }); -}; +// document +// .querySelectorAll( +// 'div[id*="suspension-view-tabpanel"] > .zmwebsdk-MuiBox-root.zmwebsdk-MuiBox-root' +// ) +// .forEach((el) => { +// el.style.height = `${meetingHeight.value}px`; +// }); +// }; // 设置文本标签 const setTextLabel = () => { diff --git a/yarn.lock b/yarn.lock index 7a10332..148ee7f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -911,13 +911,20 @@ "@babel/types" "^7.4.4" esutils "^2.0.2" -"@babel/runtime@^7.12.0", "@babel/runtime@^7.12.13", "@babel/runtime@^7.4.5", "@babel/runtime@^7.8.4": +"@babel/runtime@^7.12.0", "@babel/runtime@^7.12.13", "@babel/runtime@^7.8.4": version "7.17.9" resolved "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.17.9.tgz#d19fbf802d01a8cb6cf053a64e472d42c434ba72" integrity sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg== dependencies: regenerator-runtime "^0.13.4" +"@babel/runtime@^7.4.5": + version "7.19.0" + resolved "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.19.0.tgz#22b11c037b094d27a8a2504ea4dcff00f50e2259" + integrity sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA== + dependencies: + regenerator-runtime "^0.13.4" + "@babel/template@^7.0.0", "@babel/template@^7.16.7": version "7.16.7" resolved "https://registry.npmmirror.com/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155" @@ -1952,7 +1959,7 @@ resolved "https://registry.npmmirror.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== -"@zoomus/websdk@^2.5.0": +"@zoomus/websdk@2.5.0": version "2.5.0" resolved "https://registry.npmmirror.com/@zoomus/websdk/-/websdk-2.5.0.tgz#d4c4aad28e7496d9c3690d569d775ecad4cc3da8" integrity sha512-osfPeAliX3/6WCrRtDlhwWlNExsq6AzVjVmWJDJPSrVklKH90uHcBWa7z7s3SfvNVLu5OZCRu53iwaDblu+APQ==