Example #1
0
  public void start() {
    if (encodeThread != null) {
      encodeThread.exit();
    }

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