本文整理汇总了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
));
}
}
示例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);
}
示例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;
}
示例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());
}
}
示例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();
}
}
}
示例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();
}
}
示例7: onIceGatheringChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState newState) {
Log.w(TAG, "onIceGatheringChange:" + newState);
}
示例8: onIceGatheringChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
}
示例9: onIceGatheringChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState newState) {
Log.d(TAG, "IceGatheringState: " + newState);
}
示例10: onIceGatheringChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState newState) {
Log.d(TAG, "IceGatheringState: " + newState);
}
示例11: onIceGatheringChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
LogUtils.d("onIceGatheringChange");
}
示例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());
}
示例13: onIceGatheringChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
Log.d(logTag, "onIceGatheringChange() called with: iceGatheringState = [" + iceGatheringState + "]");
}
示例14: onIceGatheringChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {}
示例15: onIceGatheringChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) {
Log.d(TAG, "IceGatheringState: " + iceGatheringState);
}