我可以获取远程视频/音频流。但参与者连接回调未收到。
extension AVCallingViewcontroller: RoomDelegate {
func roomDidConnect(room: Room) {
room.remoteParticipants.forEach({$0.delegate = self})
room.localParticipant?.delegate = self
}
func participantDidConnect(room : Room, participant: RemoteParticipant) {
// never calling
participant.delegate = self
}
func participantDidDisconnect(room _: Room, participant: RemoteParticipant) {
//never calling
print(#function)
}
func roomDidDisconnect(room: Room, error _: Error?) {
print(#function)
}
}