From d7b8276c524b744fa9034eb0d08eb5cf1b0bd6d6 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 22 Nov 2024 15:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E6=94=B6=E7=AB=AF=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/meeting/index.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/meeting/index.ts b/pages/meeting/index.ts index 49e1100..a36b1ef 100644 --- a/pages/meeting/index.ts +++ b/pages/meeting/index.ts @@ -122,7 +122,16 @@ Page({ clearTimeout(timer) }, 10000); } - } + }, + 'currentUid': function (currentUid) { + this.data.roomUserList.forEach(item => { + if (item.uid == currentUid) { + agora.setRemoteVideoStreamType(Number(item.uid), 0) + } else { + agora.setRemoteVideoStreamType(Number(item.uid), 1) + } + }); + }, }, async onLoad(option) { this.setData({