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);
|
String sdpMid = getStringParam(request, ProtocolElements.ONICECANDIDATE_SDPMIDPARAM);
|
||||||
int sdpMLineIndex = getIntParam(request, ProtocolElements.ONICECANDIDATE_SDPMLINEINDEX_PARAM);
|
int sdpMLineIndex = getIntParam(request, ProtocolElements.ONICECANDIDATE_SDPMLINEINDEX_PARAM);
|
||||||
|
|
||||||
log.info("New candidate received from client: {connectionId: \"{}\", sdpMid: {}, sdpMLineIndex: {}, candidate: \"{}\"}",
|
log.info(
|
||||||
endpointName, sdpMid, sdpMLineIndex, candidate);
|
"New candidate received from participant {}: {connectionId: \"{}\", sdpMid: {}, sdpMLineIndex: {}, candidate: \"{}\"}",
|
||||||
|
participant.getParticipantPublicId(), endpointName, sdpMid, sdpMLineIndex, candidate);
|
||||||
|
|
||||||
sessionManager.onIceCandidate(participant, endpointName, candidate, sdpMLineIndex, sdpMid, request.getId());
|
sessionManager.onIceCandidate(participant, endpointName, candidate, sdpMLineIndex, sdpMid, request.getId());
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,14 +2,16 @@ package io.openvidu.server.utils;
|
||||||
|
|
||||||
public class GeoLocation {
|
public class GeoLocation {
|
||||||
|
|
||||||
|
private String ip;
|
||||||
private String country;
|
private String country;
|
||||||
private String city;
|
private String city;
|
||||||
private String timezone;
|
private String timezone;
|
||||||
private Double latitude;
|
private Double latitude;
|
||||||
private Double longitude;
|
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();
|
super();
|
||||||
|
this.ip = ip;
|
||||||
this.country = country;
|
this.country = country;
|
||||||
this.city = city;
|
this.city = city;
|
||||||
this.timezone = timezone;
|
this.timezone = timezone;
|
||||||
|
@ -17,6 +19,10 @@ public class GeoLocation {
|
||||||
this.longitude = longitude;
|
this.longitude = longitude;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getIp() {
|
||||||
|
return this.ip;
|
||||||
|
}
|
||||||
|
|
||||||
public String getCountry() {
|
public String getCountry() {
|
||||||
return country;
|
return country;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue