Hello, I’m trying to figure out how to record the video. Can you check if my code is correct? Also, I need to know the best place to call these functions. Thanks!!!
public void startRecording() {
Map<String, String> startRecording = new HashMap<>();
startRecording.put(“id”, session.getId());
startRecording.put(“name”,“TEST”);
this.ID_RECORDING_STARTED.set(this.sendJson(JsonConstants.RECORDING_STARTED, startRecording));
}
public void stopRecording() {
Map<String, String> stopRecording = new HashMap<>();
stopRecording.put(“id”, session.getId());
stopRecording.put(“name”,“TEST”);
stopRecording.put(“reason”,“Test Reason”);
this.ID_RECORDING_STOPPED.set(this.sendJson(JsonConstants.RECORDING_STOPPED, stopRecording));
}