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({