修复全屏时视频框尺寸问题、会议结束时主持人结束会议

This commit is contained in:
cxc
2022-06-09 15:47:07 +08:00
parent 74a8f058c1
commit fcc2842b33

View File

@ -9,6 +9,7 @@
:class="{
fullscreen: isFullScreen && !isVerticalFullScreen,
verticalFullScreen: isVerticalFullScreen,
notInSharing: !inSharing,
}"
>
<div
@ -584,6 +585,7 @@ const initWebSocket = () => {
showQuestionnaireDialog.value = false;
ElMessageBox.alert("会议已结束");
socket.close();
if (route.name === "Meeting") {
if (store.getters.bankId && !store.state.joinUser.examSubmited) {
if (examQuestionsList.value.length === 0) {
examQuestionsList.value = await loadQuestionsList("1");
@ -599,6 +601,9 @@ const initWebSocket = () => {
}
submitQuestion("2");
}
} else if (route.name === "Host") {
meetingConfig.client.endMeeting();
}
}
});
socket.addEventListener("close", (event) => {
@ -921,7 +926,12 @@ $meetingBackgroundHeight: 80vw * 9 / 16;
#meeting-chat-row {
.fullscreen-wrap {
width: 80vw;
:deep(.notInSharing.fullscreen
div[id*="suspension-view-tabpanel"]
> .zmwebsdk-MuiBox-root.zmwebsdk-MuiBox-root
> div) {
width: 96vw;
}
#meeting-container.fullscreen {
$meetingComponentWitdh: 96vw;
padding-top: calc(100vw * 0.08);
@ -988,7 +998,12 @@ $meetingBackgroundHeight: 80vw * 9 / 16;
// height: calc(100vw * 0.9 * 9 / 16);
// }
}
:deep(.notInSharing.verticalFullScreen
div[id*="suspension-view-tabpanel"]
> .zmwebsdk-MuiBox-root.zmwebsdk-MuiBox-root
> div) {
width: 96vh;
}
#meeting-container.verticalFullScreen {
$meetingComponentWitdh: 96vh;
$meetingComponentHeight: $meetingComponentWitdh * 9 / 16;
@ -1000,6 +1015,7 @@ $meetingBackgroundHeight: 80vw * 9 / 16;
left: 100vw;
width: 100vh !important;
height: 100vw;
#video-element {
width: $meetingComponentWitdh;
:deep(div[id*="suspension-view-tabpanel"]