openvidu-server: rename Kms#getMediaServer to Kms#getMediaServerType

pull/707/head
pabloFuente 2022-03-21 14:48:21 +01:00
parent 96a0bbc155
commit 5c209a55ba
2 changed files with 2 additions and 3 deletions

View File

@ -30,7 +30,6 @@ import org.kurento.jsonrpc.client.JsonRpcClientNettyWebSocket;
import org.kurento.jsonrpc.client.JsonRpcWSConnectionListener;
import io.openvidu.java.client.RecordingProperties;
import io.openvidu.server.core.MediaServer;
import io.openvidu.server.core.Session;
import io.openvidu.server.core.SessionManager;
@ -60,7 +59,7 @@ public class FixedOneKmsManager extends KmsManager {
this.addKms(kms);
// Set Media Server in OpenVidu configuration
this.openviduConfig.setMediaServer(kms.getMediaServer());
this.openviduConfig.setMediaServer(kms.getMediaServerType());
} catch (KurentoException e) {
log.error("KMS in {} is not reachable by OpenVidu Server", firstProps.getUri());

View File

@ -301,7 +301,7 @@ public class Kms {
return this.activeComposedRecordings.intValue();
}
public MediaServer getMediaServer() {
public MediaServer getMediaServerType() {
if (this.mediaServer == null) {
this.fetchMediaServerType();
}