mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: TODO comment in Participant class
parent
117366a57f
commit
f2c37f29a5
|
@ -38,6 +38,10 @@ public class Participant {
|
|||
protected GeoLocation location; // Location of the participant
|
||||
protected String platform; // Platform used by the participant to connect to the session
|
||||
protected EndpointType endpointType; // Type of participant (web participant, IP cam participant...)
|
||||
|
||||
// TODO
|
||||
// Unify with "PublisherEndpoint.MediaOptions"
|
||||
// Also unify "streamPropertyChanged" and "videoData" RPCs when possible
|
||||
protected Integer videoWidth = 0;
|
||||
protected Integer videoHeight = 0;
|
||||
protected Boolean videoActive = false;
|
||||
|
@ -145,7 +149,7 @@ public class Participant {
|
|||
public EndpointType getEndpointType() {
|
||||
return this.endpointType;
|
||||
}
|
||||
|
||||
|
||||
public Integer getVideoWidth() {
|
||||
return videoWidth;
|
||||
}
|
||||
|
@ -161,7 +165,7 @@ public class Participant {
|
|||
public void setVideoHeight(Integer videoHeight) {
|
||||
this.videoHeight = videoHeight;
|
||||
}
|
||||
|
||||
|
||||
public Boolean isVideoActive() {
|
||||
return videoActive;
|
||||
}
|
||||
|
|
|
@ -636,7 +636,7 @@ public class RpcHandler extends DefaultJsonRpcHandler<JsonObject> {
|
|||
new JsonObject(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void updateVideoData(RpcConnection rpcConnection, Request<JsonObject> request) {
|
||||
Participant participant;
|
||||
try {
|
||||
|
@ -648,7 +648,7 @@ public class RpcHandler extends DefaultJsonRpcHandler<JsonObject> {
|
|||
sessionManager.onVideoData(participant, request.getId(), height, width, videoActive, audioActive);
|
||||
} catch (OpenViduException e) {
|
||||
log.error("Error getting video data: {}", e.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void leaveRoomAfterConnClosed(String participantPrivateId, EndReason reason) {
|
||||
|
|
Loading…
Reference in New Issue