public void start() { if (encodeThread != null) { encodeThread.exit(); } encodeThread = new EncodeThread(); encodeThread.start(); }
public void stop() { if (encodeThread != null) { encodeThread.exit(); } captureQueue.clear(); }