0

我正在尝试解决下一个难题。

在我更改代码中的某些内容后(我不记得具体是什么),QuickBlox 再次无法执行视频通话。但此时的症状有所不同。

我的用户的标准视频通话示例的日志:

2013-09-13 17:15:25.363 VideoChat[6971:1303] -[QBChat loginWithUser:] -> JID: 290427-3936@chat.quickblox.com
2013-09-13 17:15:26.224 VideoChat[6971:1303] QBChat/didConnect
2013-09-13 17:15:26.835 VideoChat[6971:2203] -[QBChat xmppStreamDidAuthenticate:] -> user: 290427, supportsStartTLS: 1, isSecure: 0
2013-09-13 17:15:26.857 VideoChat[6971:1303] -[QBVideoChat init] -> 
2013-09-13 17:15:26.857 VideoChat[6971:1303] -[QBVideoChat orientatioDidChange:] -> Portrait
2013-09-13 17:15:26.891 VideoChat[6971:1303] -[QBChat xmppStream:didSendIQ:] -> IQ: <iq type="get" id="561006823"><query xmlns="jabber:iq:roster"/></iq>
2013-09-13 17:15:26.892 VideoChat[6971:1303] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/>
2013-09-13 17:15:26.989 VideoChat[6971:1303] -[QBChat xmppStream:didReceiveIQ:] -> <iq xmlns="jabber:client" id="561006823" type="result" to="290427-3936@chat.quickblox.com/tigase-10437"><query xmlns="jabber:iq:roster"/></iq>
2013-09-13 17:15:29.573 VideoChat[6971:2203] -[QBVideoChat callUser:conferenceType:customParameters:] -> VideoChat configuration: {
    kQBVideoChatBadConnectionTimeout = 5;
    kQBVideoChatCallTimeout = 20;
    kQBVideoChatFrameQualityPreset = AVCaptureSessionPresetLow;
    kQBVideoChatP2PTimeout = "1.5";
    kQBVideoChatTURNServerEndPoint = "turnserver.quickblox.com";
    kQBVideoChatVideoFramesPerSecond = 10;
    kQBVideoChatWriteQueueMaxAudioOperationsThreshold = 25;
    kQBVideoChatWriteQueueMaxVideoOperationsThreshold = 25;
}
2013-09-13 17:15:29.574 VideoChat[6971:2203] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="282475249" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:31.574 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1622650073" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:33.574 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="984943658" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:35.574 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1144108930" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:37.573 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="470211272" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:39.573 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="101027544" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:41.573 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1457850878" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:43.573 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1458777923" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:45.573 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="2007237709" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:47.573 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="823564440" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:49.572 VideoChat[6971:c07] chatCallUserDidNotAnswer 503867
2013-09-13 17:15:49.711 VideoChat[6971:1303] -[QBVideoChat finishCallWithStatus:customParameters:] -> kStopVideoChatCallStatus_OpponentDidNotAnswer
2013-09-13 17:15:49.711 VideoChat[6971:1303] -[QBVideoChat deinitialization] -> 
2013-09-13 17:15:49.711 VideoChat[6971:1303] -[QBVideoChat releaseVideoCapture] -> 
2013-09-13 17:15:49.711 VideoChat[6971:1303] -[QBVideoChat releaseAudioCapture] -> 
2013-09-13 17:15:49.712 VideoChat[6971:1303] -[QBVideoChat releaseSocketConnection] -> 
2013-09-13 17:15:49.712 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1115438165" type="qbvideochat_call" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>1</body></message>
2013-09-13 17:15:49.712 VideoChat[6971:1303] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1784484492" type="qbvideochat_stopCall" to="503867-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>kStopVideoChatCallStatus_OpponentDidNotAnswer</body></message>
2013-09-13 17:15:57.267 VideoChat[6971:1307] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/>

我自己的应用程序过去看起来完全一样,但现在看起来像这样:

2013-09-13 17:21:20.884 DimChat[619:7e0f] -[QBChat loginWithUser:] -> Chat server endpoint: muc.chat.quickblox.com, User JID: 290427-3936@chat.quickblox.com
2013-09-13 17:21:22.244 DimChat[619:7e0f] QBChat/didConnect
2013-09-13 17:21:23.056 DimChat[619:7e0f] -[QBChat xmppStreamDidAuthenticate:] -> user: 290427, supportsStartTLS: 1, isSecure: 0
2013-09-13 17:21:23.063 DimChat[619:7e0f] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/>
2013-09-13 17:21:23.064 DimChat[619:7e0f] -[QBChat xmppStream:didSendIQ:] -> IQ: <iq type="get" id="561006823"><query xmlns="jabber:iq:roster"/></iq>
2013-09-13 17:21:23.069 DimChat[619:7e0f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="0" type="chat" to="290427-3936@chat.quickblox.com" from="290427-3936@chat.quickblox.com"><body>Are you listen to me?</body></message>
2013-09-13 17:21:23.463 DimChat[619:7e0f] -[QBChat xmppStream:didReceiveIQ:] -> <iq xmlns="jabber:client" id="561006823" type="result" to="290427-3936@chat.quickblox.com/tigase-11219"><query xmlns="jabber:iq:roster"/></iq>
2013-09-13 17:21:23.491 DimChat[619:907] -[ASCallManager chatDidReceiveMessage:] [Line 169] received a message: Are you listen to me? from user: 290427
2013-09-13 17:21:39.798 DimChat[619:7e0f] -[QBVideoChat callUser:conferenceType:customParameters:] -> VideoChat configuration: {
    kQBVideoChatBadConnectionTimeout = 5;
    kQBVideoChatCallTimeout = 15;
    kQBVideoChatFrameQualityPreset = AVCaptureSessionPresetLow;
    kQBVideoChatP2PTimeout = "1.5";
    kQBVideoChatTURNServerEndPoint = "turnserver.quickblox.com";
    kQBVideoChatVideoFramesPerSecond = 10;
    kQBVideoChatWriteQueueMaxAudioOperationsThreshold = 25;
    kQBVideoChatWriteQueueMaxVideoOperationsThreshold = 25;
}
2013-09-13 17:21:43.058 DimChat[619:7e0f] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/>
2013-09-13 17:21:54.782 DimChat[619:1733] -[QBVideoChat finishCallWithStatus:customParameters:] -> kStopVideoChatCallStatus_OpponentDidNotAnswer
2013-09-13 17:21:54.785 DimChat[619:1733] -[QBVideoChat deinitialization] -> 
2013-09-13 17:21:54.787 DimChat[619:1733] -[QBVideoChat releaseVideoCapture] -> 
2013-09-13 17:21:54.788 DimChat[619:1733] -[QBVideoChat releaseAudioCapture] -> 
2013-09-13 17:21:54.790 DimChat[619:1733] -[QBVideoChat releaseSocketConnection] -> 
2013-09-13 17:22:03.057 DimChat[619:1733] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/>

如您所见,在 kStopVideoChatCallStatus_OpponentDidNotAnswer 之前没有任何 xmppStream:didSendMessage。有谁知道问题可能是什么?

4

1 回答 1

2

我的错误在于:我曾经在 [QBChat loginWithUser:] 之前制作 [QBVideoChat init]

如果我以正确的顺序制作它们,则应用程序可以按预期执行视频通话。

于 2013-09-16T05:51:06.930 回答