Skip to content

Commit

Permalink
Updated to use the most recent WebRTC files. Pushed to version 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
GleasonK committed Aug 24, 2015
1 parent 4da4fb9 commit c62fcb6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pnwebrtc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down
10 changes: 8 additions & 2 deletions pnwebrtc/src/main/java/me/kevingleason/pnwebrtc/PnPeer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
}
Expand Down

0 comments on commit c62fcb6

Please sign in to comment.