Commit 7958e9a1 by qlintonger xeno

尝试添加截图标注+11

parent fb0250ab
......@@ -226,6 +226,9 @@ export class Agora {
const uidS = user.uid.toString()
const targetUser = userStates.value.onlineContacts.find(a => a.fromID.toString() === uidS);
console.log('在线用户加入了频道', targetUser)
if (!chatChannelState.value.currentChatters.includes(targetUser.fromID)) {
chatChannelState.value.currentChatters.push(targetUser.fromID)
}
if (typeof this.app.infoCB === 'function') {
this.app.infoCB(`${targetUser.fromName}加入了会议`)
}
......@@ -238,6 +241,7 @@ export class Agora {
if (typeof this.app.infoCB === 'function') {
this.app.infoCB(`${targetUser.fromName}离开了会议`)
}
chatChannelState.value.currentChatters = chatChannelState.value.currentChatters.filter(a=>a!==targetUser.fromID);
})
this.AgoraClient.on('user-published', (user, mediaType) => {
console.log('检测到远程用户发布媒体', user, mediaType);
......
......@@ -163,6 +163,7 @@ async function beforeEndMarkHandle() {
content: "你是截图发起者,退出后将会要求其他用户一同退出,确认?",
okText: "确认",
cancelText: "取消",
hideCancel: false,
onOk() {
resolve(true)
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment