Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/fr/pchab/AndroidRTC/RTCClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,20 @@ public void setCamera(String cameraFacing, String height, String width){
VideoTrack videoTrack = factory.createVideoTrack("ARDAMSv0", videoSource);
lMS.addTrack(videoTrack);
lMS.addTrack(factory.createAudioTrack("ARDAMSa0"));

mListener.onLocalStream(lMS);
}

public void start(){
JSONArray arguments = new JSONArray();
arguments.put(name);
JSONObject message = new JSONObject();
try {
client.emit("readyToStream", arguments);
message.put("name", name);
message.put("privacy", true);
client.emit("readyToStream", new JSONArray().put(message));
} catch (JSONException e) {
e.printStackTrace();
}

mListener.onLocalStream(lMS);
mListener.onCallReady(callId);
}

Expand Down