currentRecordingDoc = null; // make us available
return;
}
currentRecordingDoc = doc; // keeps the rev up
if (state == RecordingState.START_ASKED) {
RecordingStartClickedEvent rsce = new RecordingStartClickedEvent(doc.get("_id").getTextValue());
SplitAudioRecorderConfiguration settings = loadConfig(doc);
if (settings != null) {
rsce.setConfig(settings);
}
EventBus.publish(rsce);
}
if (state == RecordingState.STOP_ASKED) {
EventBus.publish(new RecordingStopClickedEvent());