共享桌面失败

This commit is contained in:
yj 2024-09-02 17:28:14 +08:00
parent 9e1860c722
commit 16d4b3e73f
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ const Meeting: React.FC = () => {
}, 1000)
getDesktopCapturerVideoTime = setInterval(() => {
setSharedScreenItem((i: any) => {
if (i) {
if (i && i.type === 0) {
agora.getDesktopCapturerVideo({ width: 0, height: 0 }, { width: 0, height: 0 }, false).then(res => {
if (res.length) {
let row = res.find((item: any) => item.sourceId === i.sourceId)