Ranaming
This commit is contained in:
@@ -358,15 +358,15 @@ public class AthosScreens extends Panel {
|
||||
|
||||
void startRecording() throws Exception {
|
||||
stopRecording();
|
||||
Context.getInterpreter().startExecution(CommandSource.plugin, null, cameraName, null, false);
|
||||
Context.getInterpreter().setExecutionPar("name", cameraName);
|
||||
Context.getInterpreter().setExecutionPar("open", true);
|
||||
Context.getSequencer().startExecution(CommandSource.plugin, null, cameraName, null, false);
|
||||
Context.getSequencer().setExecutionPar("name", cameraName);
|
||||
Context.getSequencer().setExecutionPar("open", true);
|
||||
recordingScan = new MonitorScan(dataPipeline.getStream(), getReadables(), -1, -1);
|
||||
Threading.getFuture(() -> recordingScan.start()).handle((ret, t) -> {
|
||||
recordingScan = null;
|
||||
return ret;
|
||||
});
|
||||
String fileName = Context.getInterpreter().getExecutionPars().getPath();
|
||||
String fileName = Context.getSequencer().getExecutionPars().getPath();
|
||||
logger.info("Start recording: " + fileName);
|
||||
fileHistory.add(fileName);
|
||||
listFile.setModel(new javax.swing.AbstractListModel<String>() {
|
||||
@@ -387,7 +387,7 @@ public class AthosScreens extends Panel {
|
||||
if (recordingScan != null) {
|
||||
logger.info("Stop recording");
|
||||
recordingScan.abort();
|
||||
Context.getInterpreter().endExecution();
|
||||
Context.getSequencer().endExecution();
|
||||
recordingScan = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user