mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: remove city from Geolocation if null
parent
69ab47edc8
commit
f23383008c
|
@ -897,7 +897,7 @@ public class KurentoSessionManager extends SessionManager {
|
|||
|
||||
String rtspConnectionId = kMediaOptions.getTypeOfVideo() + "_" + protocol + "_"
|
||||
+ RandomStringUtils.randomAlphanumeric(4).toUpperCase() + "_" + url.getAuthority() + url.getPath();
|
||||
rtspConnectionId = rtspConnectionId.replace("/", "_").replace("-", "").replace(".", "_");
|
||||
rtspConnectionId = rtspConnectionId.replace("/", "_").replace("-", "").replace(".", "_").replace(":", "_");
|
||||
rtspConnectionId = IdentifierPrefixes.IPCAM_ID + rtspConnectionId;
|
||||
|
||||
// Store a "fake" participant for the IpCam connection
|
||||
|
|
|
@ -39,7 +39,11 @@ public class GeoLocation {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.city + ", " + this.country;
|
||||
String location = this.country;
|
||||
if (this.city != null) {
|
||||
location = this.city + ", " + location;
|
||||
}
|
||||
return location;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue