gpt4 book ai didi

ios - QuickBlox : didReceiveNewSession Method is not gettimg called in swift

转载 作者:行者123 更新时间:2023-11-28 06:44:12 25 4
gpt4 key购买 nike

我正在使用 Quickblox sdk 使用 SWIFT 语言进行视频通话项目之一。我正在尝试使用其 quickbloxid 与另一个用户进行通话。但是当我开始从一个设备调用另一个设备时。 didReceiveNewSession 委托(delegate)方法没有在另一台设备上被调用,并且日志中出现服务不可用的错误消息。请让我知道我在哪里做错了。提前致谢。

QBRTCClient.instance().addDelegate(self) 

func didReceiveNewSession(session: QBRTCSession!, userInfo: Dictionary<NSObject, AnyObject>!)
{
print("received call")

}

func session(session: QBRTCSession!, connectedToUser userID: NSNumber!) {
AppSingletonObj.showAlert("", messsage: "connectedToUser Delegate caled")
}

func session(session: QBRTCSession!, disconnectedByTimeoutFromUser userID: NSNumber!) {
AppSingletonObj.showAlert("", messsage: "disconnectedByTimeoutFromUser Delegate caled")
}

func session(session: QBRTCSession!, hungUpByUser userID: NSNumber!, userInfo: [NSObject : AnyObject]!) {
AppSingletonObj.showAlert("", messsage: "hungUpByUser Delegate caled")
}


func session(session: QBRTCSession!, initializedLocalMediaStream mediaStream: QBRTCMediaStream!) {
mediaStream.videoTrack.videoCapture = self.cameraCapture
AppSingletonObj.showAlert("", messsage: "initializedLocalMediaStream Delegate caled")
}


func session(session: QBRTCSession!, rejectedByUser userID: NSNumber!, userInfo: [NSObject : AnyObject]!) {
AppSingletonObj.showAlert("", messsage: "rejectedByUser Delegate caled")
}

func session(session: QBRTCSession!, startedConnectingToUser userID: NSNumber!) {
AppSingletonObj.showAlert("", messsage: "startedConnectingToUser Delegate caled")
}

func session(session: QBRTCSession!, userDidNotRespond userID: NSNumber!) {
AppSingletonObj.showAlert("", messsage: "userDidNotRespond Delegate caled")
}

func session(session: QBRTCSession!, connectionClosedForUser userID: NSNumber!) {
AppSingletonObj.showAlert("", messsage: "connectionClosedForUser Delegate caled")
}

func session(session: QBRTCSession!, disconnectedFromUser userID: NSNumber!) {
AppSingletonObj.showAlert("", messsage: "disconnectedFromUser Delegate caled")
}


func session(session: QBRTCSession!, updatedStatsReport report: QBRTCStatsReport!, forUserID userID: NSNumber!) {
AppSingletonObj.showAlert("", messsage: "updatedStatsReport Delegate caled")
}

func session(session: QBRTCSession!, receivedRemoteVideoTrack videoTrack: QBRTCVideoTrack!, fromUser userID: NSNumber!) {
AppSingletonObj.showAlert("", messsage: "receivedRemoteVideoTrack Delegate caled")
}

func session(session: QBRTCSession!, connectionFailedForUser userID: NSNumber!) {
AppSingletonObj.showAlert("", messsage: "connectionFailedForUser Delegate caled")
}

func session(session: QBRTCSession!, acceptedByUser userID: NSNumber!, userInfo: [NSObject : AnyObject]!) {
AppSingletonObj.showAlert("", messsage: "acceptedByUser Delegate caled")
}

最佳答案

  • 你连接到聊天了吗?
  • 你也打过电话吗QBRTCClient.initializeRTC()?

关于ios - QuickBlox : didReceiveNewSession Method is not gettimg called in swift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37030829/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com