this.mode = Mode.LOCAL;
OutputStream outVideo, outActivities, outStatistics, outError;
InputStream inVideo, inActivities, inStatistics, inError;
videoCirc = new CircularByteBuffer(LOCAL_VIDEO_BUFFER, true);
activityCirc = new CircularByteBuffer(100 * 1024, true);
staticticsCirc = new CircularByteBuffer(100 * 1024, true);
errorCirc = new CircularByteBuffer(100 * 1024, true);
outVideo = videoCirc.getOutputStream();
inVideo = videoCirc.getInputStream();
outActivities = activityCirc.getOutputStream();