mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: check null on SessionProperties forcedVideoCodec
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…
Reference in New Issue