Java Code Examples for org.webrtc.PeerConnection.IceGatheringState

The following are top voted examples for showing how to use org.webrtc.PeerConnection.IceGatheringState. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AndroidRTC   File: PeerConnectionTest.java   Source Code and License 5 votes vote down vote up
@Override
public synchronized void onIceGatheringChange(IceGatheringState newState) {
  // It's fine to get a variable number of GATHERING messages before
  // COMPLETE fires (depending on how long the test runs) so we don't assert
  // any particular count.
  if (newState == IceGatheringState.GATHERING) {
    return;
  }
  assertEquals(expectedIceGatheringChanges.removeFirst(), newState);
}
 
Example 2
Project: webrtc-java   File: Observer.java   Source Code and License 5 votes vote down vote up
@Override
public synchronized void onIceGatheringChange(IceGatheringState newState) {
    //System.out.println("DEBUG: ICE Gathering state " + newState);
    if (newState == IceGatheringState.GATHERING) {
        return;
    }

}
 
Example 3
Project: AndroidRTC   File: PeerConnectionTest.java   Source Code and License 4 votes vote down vote up
public synchronized void expectIceGatheringChange(IceGatheringState newState) {
  expectedIceGatheringChanges.add(newState);
}
 
Example 4
Project: licodeAndroidClient   File: LicodeConnector.java   Source Code and License 4 votes vote down vote up
@Override
public void onIceGatheringChange(IceGatheringState iceGatherState) {
	if (iceGatherState == IceGatheringState.COMPLETE) {
		mSdpObserver.iceReady();
	}
}
 
Example 5
Project: webrtc-workshop   File: PeerConnectionWrapper.java   Source Code and License votes vote down vote up
public void onIceGatheringChange(IceGatheringState iceGatheringState) {}