mirror of https://github.com/OpenVidu/openvidu.git
openvidu-java-client: bug fix in sent JSON parameter types
parent
74104ac2d3
commit
92ce094840
|
@ -196,7 +196,7 @@ public class OpenVidu {
|
||||||
JSONObject json = new JSONObject();
|
JSONObject json = new JSONObject();
|
||||||
json.put("session", sessionId);
|
json.put("session", sessionId);
|
||||||
json.put("name", properties.name());
|
json.put("name", properties.name());
|
||||||
json.put("outputMode", properties.outputMode());
|
json.put("outputMode", properties.outputMode().name());
|
||||||
json.put("hasAudio", properties.hasAudio());
|
json.put("hasAudio", properties.hasAudio());
|
||||||
json.put("hasVideo", properties.hasVideo());
|
json.put("hasVideo", properties.hasVideo());
|
||||||
|
|
||||||
|
|
|
@ -561,10 +561,10 @@ public class Session {
|
||||||
json.put("createdAt", this.createdAt);
|
json.put("createdAt", this.createdAt);
|
||||||
json.put("customSessionId", this.properties.customSessionId());
|
json.put("customSessionId", this.properties.customSessionId());
|
||||||
json.put("recording", this.recording);
|
json.put("recording", this.recording);
|
||||||
json.put("mediaMode", this.properties.mediaMode());
|
json.put("mediaMode", this.properties.mediaMode().name());
|
||||||
json.put("recordingMode", this.properties.recordingMode());
|
json.put("recordingMode", this.properties.recordingMode().name());
|
||||||
json.put("defaultOutputMode", this.properties.defaultOutputMode());
|
json.put("defaultOutputMode", this.properties.defaultOutputMode().name());
|
||||||
json.put("defaultRecordingLayout", this.properties.defaultRecordingLayout());
|
json.put("defaultRecordingLayout", this.properties.defaultRecordingLayout().name());
|
||||||
json.put("defaultCustomLayout", this.properties.defaultCustomLayout());
|
json.put("defaultCustomLayout", this.properties.defaultCustomLayout());
|
||||||
JSONObject connections = new JSONObject();
|
JSONObject connections = new JSONObject();
|
||||||
connections.put("numberOfElements", this.getActiveConnections().size());
|
connections.put("numberOfElements", this.getActiveConnections().size());
|
||||||
|
@ -572,7 +572,7 @@ public class Session {
|
||||||
this.getActiveConnections().forEach(con -> {
|
this.getActiveConnections().forEach(con -> {
|
||||||
JSONObject c = new JSONObject();
|
JSONObject c = new JSONObject();
|
||||||
c.put("connectionId", con.getConnectionId());
|
c.put("connectionId", con.getConnectionId());
|
||||||
c.put("role", con.getRole());
|
c.put("role", con.getRole().name());
|
||||||
c.put("token", con.getToken());
|
c.put("token", con.getToken());
|
||||||
c.put("clientData", con.getClientData());
|
c.put("clientData", con.getClientData());
|
||||||
c.put("serverData", con.getServerData());
|
c.put("serverData", con.getServerData());
|
||||||
|
|
Loading…
Reference in New Issue