2016-05-04 43 views
0

我正在使用Quickblox sdk.i在SWIFT語言的視頻調用項目之一中工作,我試圖用其quickbloxid與其他用戶進行通話。但是當我開始從其中一個設備呼叫另一個設備時。 didReceiveNewSession委託方法未在另一臺設備上調用,並且日誌顯示錯誤消息服務不可用。請讓我知道我在哪裏做錯誤。提前致謝。QuickBlox:didReceiveNewSession方法不是在swift中調用的gettimg

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

回答

0
  • 你連接到聊天?
  • 你還打電話給 QBRTCClient.initializeRTC()?
+0

是的,我已經將它連接到QBChat以及initializeRTC ..經過littile研究後,我發現問題是當我從其他設備開始呼叫。 – aman

+0

@aman請在[github](https://github.com/QuickBlox/quickblox-ios-sdk)上創建問題,並在那裏附上您的示例與可重現的錯誤 –

相關問題