0

我试过了

participant = conferences[0].participants('participant')

但这总是返回一个参与者,即使参与者不在会议中。

participant = conferences[0].participants('participant').fetch()

如果参与者不在会议中,则返回错误

4

1 回答 1

1

尝试以下方法:

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))   
于 2020-10-14T00:40:13.950 回答