当前位置: 首页>>代码示例>>Java>>正文


Java PeerConnection.IceGatheringState方法代码示例

本文整理汇总了Java中org.webrtc.PeerConnection.IceGatheringState方法的典型用法代码示例。如果您正苦于以下问题:Java PeerConnection.IceGatheringState方法的具体用法?Java PeerConnection.IceGatheringState怎么用?Java PeerConnection.IceGatheringState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.webrtc.PeerConnection的用法示例。


在下文中一共展示了PeerConnection.IceGatheringState方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(@Nonnull final PeerConnection.IceGatheringState state) {
  Log.d("WebRTC", "IceGatheringState is " + state);
  if (state == PeerConnection.IceGatheringState.COMPLETE
      && peerConnection.iceConnectionState() != PeerConnection.IceConnectionState.CONNECTED
      && peerConnection.iceConnectionState() != PeerConnection.IceConnectionState.CLOSED
      && progressState.getValue() != ProgressState.ENDED) {
    progressState.changeValue(ProgressState.IDLE);
    bin.add(xmpp.subscribe(
        it -> it.getSessions().get(localJid).getPluginManager().getPlugin(WebRtcPlugin.class).sendSdp(
            remoteJid,
            id,
            peerConnection.getLocalDescription(),
            ACTION_CALL_OUTBOUND.equals(getIntent().getAction())
        ),
        CallingActivity.this::fail
    ));
  }
}
 
开发者ID:seamlik,项目名称:viska-android,代码行数:20,代码来源:CallingActivity.java

示例2: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
    Log.d(TAG, "onIceGatheringChange" + iceGatheringState.name());
    WritableMap params = Arguments.createMap();
    params.putInt("id", id);
    params.putString("iceGatheringState", iceGatheringStateString(iceGatheringState));
    webRTCModule.sendEvent("peerConnectionIceGatheringChanged", params);
}
 
开发者ID:angellsl10,项目名称:react-native-webrtc,代码行数:9,代码来源:PeerConnectionObserver.java

示例3: iceGatheringStateString

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Nullable
private String iceGatheringStateString(PeerConnection.IceGatheringState iceGatheringState) {
    switch (iceGatheringState) {
        case NEW:
            return "new";
        case GATHERING:
            return "gathering";
        case COMPLETE:
            return "complete";
    }
    return null;
}
 
开发者ID:angellsl10,项目名称:react-native-webrtc,代码行数:13,代码来源:PeerConnectionObserver.java

示例4: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(final PeerConnection.IceGatheringState iceGatheringState) {
    if (BuildConfig.DEBUG) {
        Log.d(TAG, "@@@ onIceGatheringChange");
        Log.d(TAG, "@@@ IceGatheringState: " + iceGatheringState.toString());
    }
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:8,代码来源:MediaConnection.java

示例5: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override public void onIceGatheringChange(
        PeerConnection.IceGatheringState newState) {
    if (isActive()) {
        Log.d(TAG, "ICE Gathering state: " + newState.toString());
        if (newState == PeerConnection.IceGatheringState.COMPLETE) {
            sendFinalCandidates();
        }
    }
}
 
开发者ID:respoke,项目名称:respoke-sdk-android,代码行数:10,代码来源:RespokeCall.java

示例6: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState newState) {
  Log.d(TAG, "IceGatheringState: " + newState);
  if (newState == PeerConnection.IceGatheringState.COMPLETE) {
    events.onIceGatheringComplete();
  }
}
 
开发者ID:RestComm,项目名称:restcomm-android-sdk,代码行数:8,代码来源:PeerConnectionClient.java

示例7: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState newState) {
  Log.w(TAG, "onIceGatheringChange:" + newState);

}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:6,代码来源:WebRtcCallService.java

示例8: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
}
 
开发者ID:newbie007fx,项目名称:newwebrtc,代码行数:4,代码来源:PnPeer.java

示例9: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState newState) {
    Log.d(TAG, "IceGatheringState: " + newState);
}
 
开发者ID:nhancv,项目名称:nc-android-webrtcpeer,代码行数:5,代码来源:PeerConnectionClient.java

示例10: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState newState) {
  Log.d(TAG, "IceGatheringState: " + newState);
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:5,代码来源:PeerConnectionClient.java

示例11: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
    LogUtils.d("onIceGatheringChange");
}
 
开发者ID:vuatovuanang,项目名称:WebRTC-VideoCall-Anrdoid,代码行数:5,代码来源:VideoCallActivity.java

示例12: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
	Log.d(LOG_TAG, "ICE gathering change: " + iceGatheringState.name());
	WebRTC.this.activity.setState(StateType.RTC_ICE_GATHERING, iceGatheringState.name());
}
 
开发者ID:saltyrtc,项目名称:saltyrtc-demo,代码行数:6,代码来源:WebRTC.java

示例13: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
    Log.d(logTag, "onIceGatheringChange() called with: iceGatheringState = [" + iceGatheringState + "]");
}
 
开发者ID:vivek1794,项目名称:webrtc-android-codelab,代码行数:5,代码来源:CustomPeerConnectionObserver.java

示例14: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {}
 
开发者ID:ardnezar,项目名称:webrtc-android,代码行数:3,代码来源:PeerConnectionClient.java

示例15: onIceGatheringChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
    Log.d(TAG, "IceGatheringState: " + iceGatheringState);
}
 
开发者ID:nubomedia-vtt,项目名称:webrtcpeer-android,代码行数:5,代码来源:NBMPeerConnection.java


注:本文中的org.webrtc.PeerConnection.IceGatheringState方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。