如何解决使用与会者标签检查会议中是否有与会者
我尝试过
participant = conferences[0].participants('participant')
但这总是返回一个参与者,即使该参与者不在会议中。
participant = conferences[0].participants('participant').fetch()
如果与会者不在会议中,则会返回错误
解决方法
尝试以下操作:
function findParticipant() {
return client.conferences('CFba9989...')
.participants
.list()
}
let findMe = 'Winston';
findParticipant()
.then(participants => {
let result = participants.filter(participant => participant.label === findMe )
console.log(result);
}).catch(err => console.log(err.message))
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。