openvidu-server: check null on SessionProperties forcedVideoCodec
This commit is contained in:
parent
5110923929
commit
3c209188ad
@ -256,7 +256,9 @@ public class Session implements SessionInterface {
|
||||
connections.add("content", participants);
|
||||
json.add("connections", connections);
|
||||
json.addProperty("recording", this.recordingManager.sessionIsBeingRecorded(this.sessionId));
|
||||
json.addProperty("forcedVideoCodec", this.sessionProperties.forcedVideoCodec().name());
|
||||
if (this.sessionProperties.forcedVideoCodec() != null) {
|
||||
json.addProperty("forcedVideoCodec", this.sessionProperties.forcedVideoCodec().name());
|
||||
}
|
||||
json.addProperty("allowTranscoding", this.sessionProperties.isTranscodingAllowed());
|
||||
return json;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user