protected ObjectNode getRecordingState(ObjectNode recordingDoc) {
return (ObjectNode)recordingDoc.get("recordingState");
}
public void watch() {
ChangesCommand cmd = new ChangesCommand.Builder().filter("couchaudiorecorder/recordings").build();
System.out.println("CouchDB recorder starting");
while (running) {
try {
feed = connector.changesFeed(cmd);