org.webrtc.PeerConnection.IceConnectionState Java Examples
The following examples show how to use
org.webrtc.PeerConnection.IceConnectionState.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PeerConnectionClient.java From sample-videoRTC with Apache License 2.0 | 6 votes |
@Override public void onIceConnectionChange(final PeerConnection.IceConnectionState newState) { executor.execute(new Runnable() { @Override public void run() { Log.d(TAG, "IceConnectionState: " + newState); if (newState == IceConnectionState.CONNECTED) { events.onIceConnected(); } else if (newState == IceConnectionState.DISCONNECTED) { events.onIceDisconnected(); } else if (newState == IceConnectionState.FAILED) { reportError("ICE connection failed."); } } }); }
Example #2
Source File: PeerConnectionClient.java From janus-gateway-android with MIT License | 6 votes |
@Override public void onIceConnectionChange(final PeerConnection.IceConnectionState newState) { executor.execute(new Runnable() { @Override public void run() { Log.d(TAG, "IceConnectionState: " + newState); if (newState == IceConnectionState.CONNECTED) { events.onIceConnected(); } else if (newState == IceConnectionState.DISCONNECTED) { events.onIceDisconnected(); } else if (newState == IceConnectionState.FAILED) { reportError("ICE connection failed."); } } }); }
Example #3
Source File: PeerConnectionClient.java From Yahala-Messenger with MIT License | 6 votes |
@Override public void onIceConnectionChange( final IceConnectionState newState) { executor.execute(new Runnable() { @Override public void run() { Log.d(TAG, "IceConnectionState: " + newState); if (newState == IceConnectionState.CONNECTED) { events.onIceConnected(); } else if (newState == IceConnectionState.DISCONNECTED) { events.onIceDisconnected(); } else if (newState == IceConnectionState.FAILED) { reportError("ICE connection failed."); } } }); }
Example #4
Source File: PeerConnectionClient.java From voip_android with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Override public void onIceConnectionChange(final PeerConnection.IceConnectionState newState) { executor.execute(new Runnable() { @Override public void run() { Log.d(TAG, "IceConnectionState: " + newState); if (newState == IceConnectionState.CONNECTED) { events.onIceConnected(); } else if (newState == IceConnectionState.DISCONNECTED) { events.onIceDisconnected(); } else if (newState == IceConnectionState.FAILED) { reportError("ICE connection failed."); } } }); }
Example #5
Source File: PeerConnectionClient.java From restcomm-android-sdk with GNU Affero General Public License v3.0 | 6 votes |
@Override public void onIceConnectionChange(final PeerConnection.IceConnectionState newState) { executor.execute(new Runnable() { @Override public void run() { Log.d(TAG, "IceConnectionState: " + newState); if (newState == IceConnectionState.CONNECTED) { events.onIceConnected(); } else if (newState == IceConnectionState.DISCONNECTED) { events.onIceDisconnected(); } else if (newState == IceConnectionState.FAILED) { reportError("ICE connection failed."); } } }); }
Example #6
Source File: WebRTCNativeMgr.java From appinventor-extensions with Apache License 2.0 | 4 votes |
public void onIceConnectionChange(IceConnectionState iceConnectionState) { }
Example #7
Source File: LicodeConnector.java From licodeAndroidClient with MIT License | 4 votes |
@Override public void onIceConnectionChange(IceConnectionState arg0) { }
Example #8
Source File: NBMWebRTCPeer.java From webrtcpeer-android with Apache License 2.0 | 2 votes |
/** * WebRTC event which is triggered when ICE status has changed * @param state The new ICE connection state * @param connection The connection for which this event takes place */ void onIceStatusChanged(IceConnectionState state, NBMPeerConnection connection);
Example #9
Source File: Observer.java From webrtc-java with Apache License 2.0 | 2 votes |
@Override public synchronized void onIceConnectionChange(IceConnectionState newState) { }