This commit is contained in:
yj 2024-12-06 18:00:24 +08:00
parent 844547d853
commit 9619230cf8
1 changed files with 8 additions and 0 deletions

View File

@ -1628,6 +1628,14 @@ const Meeting: React.FC = () => {
// 分享屏幕
const clickSharedScreen = async (): Promise<void> => {
let data = sharedScreenList.find((item: any) => item.sourceId === sharedScreenItem.sourceId)
const elements = document.querySelectorAll('.intersectionObserver-view');
if (elements.length) {
elements.forEach(item => {
if (item.id !== userInfo.uid) {
agora.muteRemoteVideoStreamEx(Number(item.id), true)
}
});
}
if (data) {
const footerListTemplate = [...footerList]
footerListTemplate[footerListIndex.itemIndex][footerListIndex.rowIndex].title = '停止共享'