【问题标题】:onIceGatheringChange not been in COMPLETE stateonIceGatheringChange 未处于 COMPLETE 状态
【发布时间】:2017-11-17 17:40:00
【问题描述】:

生成所有候选后,IceGatheringState 应该处于 COMPLETE 状态。但是 IceGatheringState 处于 GATHERING 状态,只有在信号状态变为 CLOSED 时才会进入 COMPLETE。

PeerConnection::OnIceGatheringChange 已被调用一次,IceGatheringState 变为 GATHERING 状态,但在所有候选者生成后 IceGatheringState 仍处于 GATHERING 状态。当呼叫断开时,信令状态变为 CLOSED,然后只有 IceGatheringState 处于 COMPLETE 状态。

    @Override
    public void onIceGatheringChange(PeerConnection.IceGatheringState newState) {
        Log.d(TAG, "IceGatheringState: " + newState);
    }

有人知道吗?我正在使用 AppRTCMobile 应用程序在 Ubuntu 16.0.4 中构建 android webrtc

【问题讨论】:

    标签: android webrtc libjingle


    【解决方案1】:

    它的Continuous Nomination 功能可在 WiFi 和蜂窝网络之间进行无缝切换。 (仅适用于本机客户端)

    我们可以通过 peerConnection configuration 来控制它。
    如果您启用PeerConnection.RTCConfiguration.continualGatheringPolicy,那么 PeerConnection 将不断寻找网络变化/新的候选者。您始终必须将新候选人发送到远程对等方。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-17
      • 1970-01-01
      相关资源
      最近更新 更多