yangjie #41

Merged
yangqiang merged 20 commits from yangjie into master 2024-12-11 14:52:08 +08:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit bafa7e3a70 - Show all commits

View File

@ -1646,7 +1646,7 @@ const Meeting: React.FC = () => {
agora.muteRemoteVideoStreamEx(Number(item.id), true) agora.muteRemoteVideoStreamEx(Number(item.id), true)
} }
}); });
agora.muteRemoteVideoStreamEx(Number(user.screenShareId), true) agora.setSubscribeVideoBlocklist([Number(user.screenShareId)], 1)
} }
if (data) { if (data) {
const footerListTemplate = [...footerList] const footerListTemplate = [...footerList]

View File

@ -373,6 +373,10 @@ export const agora = {
muteRemoteVideoStreamEx: async (uid: number, mute: boolean) => { muteRemoteVideoStreamEx: async (uid: number, mute: boolean) => {
await rtcEngine.muteRemoteVideoStreamEx(uid, mute, { channelId: option.channelId, localUid: Number(option.uid) }) await rtcEngine.muteRemoteVideoStreamEx(uid, mute, { channelId: option.channelId, localUid: Number(option.uid) })
}, },
// 设置视频订阅黑名单。
setSubscribeVideoBlocklist: async (uidList: number[], uidNumber: number) => {
await rtcEngine.setSubscribeVideoBlocklist(uidList, uidNumber)
},
// 取消或恢复订阅指定远端用户的音频流 // 取消或恢复订阅指定远端用户的音频流
muteRemoteVideoStream: async (uid: number, mute: boolean) => { muteRemoteVideoStream: async (uid: number, mute: boolean) => {
rtcEngine.muteRemoteVideoStream(uid, mute) rtcEngine.muteRemoteVideoStream(uid, mute)