0

我正在尝试使用 quickblox v2.5 构建视频聊天应用程序。

我的聊天应用在 iOS9.2 和 android 4+、5+ 上运行良好。

但它不适用于android 6。:(

我用过 Nexus 5 和三星 Galaxy s4、s5。

当我使用 Nexus5 进行测试时,它在 iOS 到 android、android-android 之间运行良好。

但我无法在 android 和 iOS 之间进行视频通话。(仅工作音频通话)。

当我使用三星 galax 时,它并非适用于所有情况(ios-android、android-android、android-ios)。

经过几天的谷歌搜索和调试,我发现这个问题发生在与对手创建会话时。

QBRTCSession newSessionWithOpponents = rtcClient.createNewSessionWithOpponents(
                getOpponentsIds(opponents), qbConferenceType);

以下是 logcat 的一部分。

03-06 14:45:31.901 15892-16599/com.quickblox.sample.groupchatwebrtc D/VideoRendererGui:VideoRendererGui.onSurfaceChanged:1056 x 1056
groupchatwebrtc D/RTCClient.QBMediaStreamManager:添加视频流 03-06 14:45:32.323 15892-16578/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBRTCSession:对手 2436257 的对等通道中出现 onError,找不到视频输入设备03-06 14:45:32.323 15892-16578/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor:请求 Looper 执行。03-06 14:45:32.323 15892-16578/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor: POST.Run on thread:1056 for QBRTCClient 03-06 14:45:32.323 15892-16406/com.quickblox。 sample.groupchatwebrtc D/RTCClient.QBPeerChannel:呼叫 hangUp 到对手 2436257 03-06 14:45:32.323 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBPeerChannel:关闭 03-06 14:45:32.323 15892- 16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBPeerChannel。PeerChannelLifeCycleTimers:停止 DialingTimer 03-06 14:45:32.323 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBPeerChannel.PeerChannelLifeCycleTimers:停止 WaitTimer 03-06 14:45:32.323 15892-16406/com.quickblox.sample .groupchatwebrtc D/RTCClient.QBPeerChannel.PeerChannelLifeCycleTimers:停止 DisconnectTimer 03-06 14:45:32.323 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor:请求 Looper 执行。03-06 14:45:32.324 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor: POST.Run on thread:1062 for QBPeerChannel 03-06 14:45:32.325 15892-16578/com.quickblox。 sample.groupchatwebrtc D/RTCClient.QBPeerChannel:关闭对等连接开始。03-06 14:45:32.326 15892-16592/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBPeerChannel.SDPObserver:: groupchatwebrtc D/RTCClient.LooperExecutor:请求 Looper 执行。03-06 14:45:32.332 15892-16578/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor: POST.Run on thread:1056 for QBRTCClient 03-06 14:45:32.332 15892-16578/com.quickblox。 sample.groupchatwebrtc D/RTCClient.LooperExecutor:请求 Looper 停止。在 QBPeerChannel 03-06 14:45:32.332 15892-16578/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor:Looper 线程完成。03-06 14:45:32.332 15892-16578/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBPeerChannel: onExecutorStop.PeerChannel 成功停止 03-06 14:45:32.333 15892-16406/com.quickblox.sample.groupchatwebrtc D /ConversationFragment:getViewForOpponent 持有者用户 ID 为:2436257 03-06 14:45:32.333 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBRTCSession:检查会话是否需要关闭 03-06 14:45:32.333 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBRTCSession: Session isNeedToClose true 03-06 14:45:32.333 15892-16406/com.quickblox.sample .groupchatwebrtc D/RTCClient.QBRTCSession:closeSession 03-06 14:45:32.333 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor:请求 Looper 执行。03-06 14:45:32.334 15892-16406/com.quickblox.sample.groupchatwebrtc D/SessionClosedListener: onSessionStartClose 03-06 14:45:32.334 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor:请求Looper 执行。03-06 14:45:32.334 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor: POST.Run on thread:1060 for PeerFactoryManager 03-06 14:45:32.334 15892-16406/com.quickblox。样本。groupchatwebrtc D/RTCClient.QBRTCSession.SessionWaitingTimers:停止 WaitTimer 03-06 14:45:32.334 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBRTCSession:通知会话回调计数:2 03-06 14:45 :32.335 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor:请求 Looper 执行。03-06 14:45:32.335 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor: POST.Run on thread:1060 for PeerFactoryManager 03-06 14:45:32.335 15892-16406/com.quickblox。 sample.groupchatwebrtc D/RTCClient.: onSessionClosed 03-06 14:45:32.335 15892-16406/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor: EXECUTE.Run on thread:1056 for QBRTCClient 03-06 14:45: 32.335 15892-16574/com.quickblox.sample.groupchatwebrtc D/RTCClient.QBMediaStreamManager:LooperExecutor:请求 Looper 停止。在 PeerFactoryManager 03-06 14:45:32.699 15892-16574/com.quickblox.sample.groupchatwebrtc D/RTCClient.LooperExecutor:Looper 线程完成。

在这条线上,应用程序崩溃了。所以通话活动无法启动。

任何人,请帮助我。

4

1 回答 1

0

您应该在运行时请求权限。
相机许可在您的情况下。请在此处阅读更多内容。

于 2016-03-07T12:26:33.280 回答