mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: rollback RecorderEndpointWrapper
parent
c31f80c2c7
commit
cf6c71a71c
|
|
@ -27,7 +27,14 @@ public class RecorderEndpointWrapper {
|
||||||
|
|
||||||
private RecorderEndpoint recorder;
|
private RecorderEndpoint recorder;
|
||||||
private KurentoParticipant kParticipant;
|
private KurentoParticipant kParticipant;
|
||||||
|
private String connectionId;
|
||||||
private String recordingId;
|
private String recordingId;
|
||||||
|
private String streamId;
|
||||||
|
private String clientData;
|
||||||
|
private String serverData;
|
||||||
|
private boolean hasAudio;
|
||||||
|
private boolean hasVideo;
|
||||||
|
private String typeOfVideo;
|
||||||
|
|
||||||
private long startTime;
|
private long startTime;
|
||||||
private long endTime;
|
private long endTime;
|
||||||
|
|
@ -37,6 +44,13 @@ public class RecorderEndpointWrapper {
|
||||||
this.recorder = recorder;
|
this.recorder = recorder;
|
||||||
this.kParticipant = kParticipant;
|
this.kParticipant = kParticipant;
|
||||||
this.recordingId = recordingId;
|
this.recordingId = recordingId;
|
||||||
|
this.connectionId = kParticipant.getParticipantPublicId();
|
||||||
|
this.streamId = kParticipant.getPublisherStreamId();
|
||||||
|
this.clientData = kParticipant.getClientMetadata();
|
||||||
|
this.serverData = kParticipant.getServerMetadata();
|
||||||
|
this.hasAudio = kParticipant.getPublisher().getMediaOptions().hasAudio();
|
||||||
|
this.hasVideo = kParticipant.getPublisher().getMediaOptions().hasVideo();
|
||||||
|
this.typeOfVideo = kParticipant.getPublisher().getMediaOptions().getTypeOfVideo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public RecorderEndpoint getRecorder() {
|
public RecorderEndpoint getRecorder() {
|
||||||
|
|
@ -48,7 +62,7 @@ public class RecorderEndpointWrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConnectionId() {
|
public String getConnectionId() {
|
||||||
return kParticipant.getParticipantPublicId();
|
return connectionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRecordingId() {
|
public String getRecordingId() {
|
||||||
|
|
@ -56,15 +70,15 @@ public class RecorderEndpointWrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getStreamId() {
|
public String getStreamId() {
|
||||||
return kParticipant.getPublisherStreamId();
|
return streamId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getClientData() {
|
public String getClientData() {
|
||||||
return kParticipant.getClientMetadata();
|
return clientData;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getServerData() {
|
public String getServerData() {
|
||||||
return kParticipant.getServerMetadata();
|
return serverData;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getStartTime() {
|
public long getStartTime() {
|
||||||
|
|
@ -92,15 +106,15 @@ public class RecorderEndpointWrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasAudio() {
|
public boolean hasAudio() {
|
||||||
return kParticipant.getPublisher().getMediaOptions().hasAudio();
|
return hasAudio;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasVideo() {
|
public boolean hasVideo() {
|
||||||
return kParticipant.getPublisher().getMediaOptions().hasVideo();
|
return hasVideo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTypeOfVideo() {
|
public String getTypeOfVideo() {
|
||||||
return kParticipant.getPublisher().getMediaOptions().getTypeOfVideo();
|
return typeOfVideo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JsonObject toJson() {
|
public JsonObject toJson() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue