mirror of https://github.com/OpenVidu/openvidu.git
openvidu-java-client: fix NullPointers if non-defined Connection properties
parent
df70d5ca6f
commit
b76ec484e5
|
@ -153,7 +153,7 @@ public class Connection {
|
|||
* <strong>Only for
|
||||
* {@link io.openvidu.java.client.ConnectionType#IPCAM}</strong>
|
||||
*/
|
||||
public boolean adaptativeBitrate() {
|
||||
public Boolean adaptativeBitrate() {
|
||||
return this.connectionProperties.adaptativeBitrate();
|
||||
}
|
||||
|
||||
|
@ -169,7 +169,7 @@ public class Connection {
|
|||
* <strong>Only for
|
||||
* {@link io.openvidu.java.client.ConnectionType#IPCAM}</strong>
|
||||
*/
|
||||
public boolean onlyPlayWithSubscribers() {
|
||||
public Boolean onlyPlayWithSubscribers() {
|
||||
return this.connectionProperties.onlyPlayWithSubscribers();
|
||||
}
|
||||
|
||||
|
@ -185,7 +185,7 @@ public class Connection {
|
|||
* <strong>Only for
|
||||
* {@link io.openvidu.java.client.ConnectionType#IPCAM}</strong>
|
||||
*/
|
||||
public int getNetworkCache() {
|
||||
public Integer getNetworkCache() {
|
||||
return this.connectionProperties.getNetworkCache();
|
||||
}
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ public class OpenVidu {
|
|||
JsonObject json = new JsonObject();
|
||||
json.addProperty("session", sessionId);
|
||||
json.addProperty("name", properties.name());
|
||||
json.addProperty("outputMode", properties.outputMode().name());
|
||||
json.addProperty("outputMode", properties.outputMode() != null ? properties.outputMode().name() : null);
|
||||
json.addProperty("hasAudio", properties.hasAudio());
|
||||
json.addProperty("hasVideo", properties.hasVideo());
|
||||
|
||||
|
|
Loading…
Reference in New Issue