4路相机获得数据后,在执行录制业务
AtomicBoolean mSyncReady = new AtomicBoolean(false);
mSyncReady.set(true);
synchronized (mSyncReady) {
mSyncReady.notify();
}
同步信号,等到4录同步录制
while (!isRecordFinish.get()) {
if (!mSyncReady.get()) {
synchronized (mSyncReady) {
try {
mSyncReady.wait(WAIT_SYNC_READY_TIME);
} catch (InterruptedException e) {
}
mSyncReady.set(true);
}
}
}
//dosomthing 分割视频
网友评论