Twilio参与者DidConnect参与者DidDisConnect没有打电话

时间:2020-05-06 10:40:16

标签: ios swift twilio

我可以获取远程视频/音频流。但参与者连接回调未收到。

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)
    }
}

0 个答案:

没有答案