Skip to content
This repository was archived by the owner on Sep 19, 2019. It is now read-only.

Commit 7c343bb

Browse files
committedJul 11, 2018
Miscellaneous improvements
1 parent cdca389 commit 7c343bb

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed
 

‎app/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,5 @@ dependencies {
3636
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
3737
compile 'com.neovisionaries:nv-websocket-client:2.3'
3838
compile 'com.squareup.okhttp3:okhttp:3.10.0'
39-
implementation files('libs/java-client-6.0.0.jar')
4039
}
4140

‎app/src/main/java/com/sergiopaniegoblanco/webrtcexampleapp/listeners/CustomWebSocketListener.java

-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ private void handleResult(final WebSocket webSocket, JSONObject json) throws JSO
212212

213213
private void addParticipantsAlreadyInRoom(JSONObject result, final WebSocket webSocket) throws JSONException {
214214
for (int i = 0; i < result.getJSONArray(JSONConstants.VALUE).length(); i++) {
215-
if (!new JSONObject(result.getJSONArray(JSONConstants.VALUE).getJSONObject(i).getString(JSONConstants.METADATA)).getString("clientData").equals("Participant42")) {
216215
remoteParticipantId = result.getJSONArray(JSONConstants.VALUE).getJSONObject(i).getString(JSONConstants.ID);
217216
final RemoteParticipant remoteParticipant = new RemoteParticipant();
218217
remoteParticipant.setId(remoteParticipantId);
@@ -231,7 +230,6 @@ public void onCreateSuccess(SessionDescription sessionDescription) {
231230
sendJson(webSocket, "receiveVideoFrom", remoteOfferParams);
232231
}
233232
}, new MediaConstraints());
234-
}
235233
}
236234
}
237235

0 commit comments

Comments
 (0)
This repository has been archived.