mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: extended onIceCandidate log
parent
9efeb6c7a6
commit
1ffa632d41
|
@ -380,8 +380,9 @@ public class RpcHandler extends DefaultJsonRpcHandler<JsonObject> {
|
|||
String sdpMid = getStringParam(request, ProtocolElements.ONICECANDIDATE_SDPMIDPARAM);
|
||||
int sdpMLineIndex = getIntParam(request, ProtocolElements.ONICECANDIDATE_SDPMLINEINDEX_PARAM);
|
||||
|
||||
log.info("New candidate received from client: {connectionId: \"{}\", sdpMid: {}, sdpMLineIndex: {}, candidate: \"{}\"}",
|
||||
endpointName, sdpMid, sdpMLineIndex, candidate);
|
||||
log.info(
|
||||
"New candidate received from participant {}: {connectionId: \"{}\", sdpMid: {}, sdpMLineIndex: {}, candidate: \"{}\"}",
|
||||
participant.getParticipantPublicId(), endpointName, sdpMid, sdpMLineIndex, candidate);
|
||||
|
||||
sessionManager.onIceCandidate(participant, endpointName, candidate, sdpMLineIndex, sdpMid, request.getId());
|
||||
}
|
||||
|
|
|
@ -2,14 +2,16 @@ package io.openvidu.server.utils;
|
|||
|
||||
public class GeoLocation {
|
||||
|
||||
private String ip;
|
||||
private String country;
|
||||
private String city;
|
||||
private String timezone;
|
||||
private Double latitude;
|
||||
private Double longitude;
|
||||
|
||||
public GeoLocation(String country, String city, String timezone, Double latitude, Double longitude) {
|
||||
public GeoLocation(String ip, String country, String city, String timezone, Double latitude, Double longitude) {
|
||||
super();
|
||||
this.ip = ip;
|
||||
this.country = country;
|
||||
this.city = city;
|
||||
this.timezone = timezone;
|
||||
|
@ -17,6 +19,10 @@ public class GeoLocation {
|
|||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue