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

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