diff --git a/README.md b/README.md index db1dd1f..768c77b 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ In your application's `build.gradle`, you will first need to include a few depen ```gradle dependencies { ... - compile 'io.pristine:libjingle:9127@aar' - compile 'me.kevingleason:pnwebrtc:1.0.5@aar' + compile 'io.pristine:libjingle:9694@aar' + compile 'me.kevingleason:pnwebrtc:1.0.6@aar' compile 'com.pubnub:pubnub-android:3.7.4' //optional } ``` diff --git a/gradle.properties b/gradle.properties index 338eb64..cef4240 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,7 +17,7 @@ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true -VERSION_NAME=1.0.5 +VERSION_NAME=1.0.6 VERSION_CODE=6 GROUP=me.kevingleason diff --git a/pnwebrtc/build.gradle b/pnwebrtc/build.gradle index 17a4021..eec7036 100644 --- a/pnwebrtc/build.gradle +++ b/pnwebrtc/build.gradle @@ -21,7 +21,7 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'io.pristine:libjingle:9127@aar' + compile 'io.pristine:libjingle:9694@aar' compile 'com.pubnub:pubnub-android:3.7.4' } diff --git a/pnwebrtc/src/main/java/me/kevingleason/pnwebrtc/PnPeer.java b/pnwebrtc/src/main/java/me/kevingleason/pnwebrtc/PnPeer.java index beeb2f1..e554929 100644 --- a/pnwebrtc/src/main/java/me/kevingleason/pnwebrtc/PnPeer.java +++ b/pnwebrtc/src/main/java/me/kevingleason/pnwebrtc/PnPeer.java @@ -94,7 +94,7 @@ public String getId() { public void hangup(){ if (this.status.equals(STATUS_DISCONNECTED)) return; // Already hung up on. this.pcClient.removePeer(this.id); - setStatus(STATUS_DISCONNECTED); // Todo: Consider <- necessary? depends when onIceConnectionChange is called. + setStatus(STATUS_DISCONNECTED); } @Override @@ -131,11 +131,17 @@ public void onSignalingChange(PeerConnection.SignalingState signalingState) { public void onIceConnectionChange(PeerConnection.IceConnectionState iceConnectionState) { if (this.status.equals(STATUS_DISCONNECTED)) return; // Already hung up on. if (iceConnectionState == PeerConnection.IceConnectionState.DISCONNECTED) { - pcClient.removePeer(id); // Should I remove? TODO: Ponder. Also, might want to Pub a disconnect. + pcClient.removePeer(id); // TODO: Ponder. Also, might want to Pub a disconnect. setStatus(STATUS_DISCONNECTED); } } + // Todo: Look into what this should be used for + @Override + public void onIceConnectionReceivingChange(boolean iceConnectionReceivingChange){ + + } + @Override public void onIceGatheringChange(PeerConnection.IceGatheringState iceGatheringState) { }