调整 录制时长 和 超时控制

This commit is contained in:
shikong 2023-09-07 10:35:35 +08:00
parent 67a891ada8
commit c4ebda0713

View File

@ -69,7 +69,7 @@ public class RecordService {
scheduledExecutorService.schedule(() -> { scheduledExecutorService.schedule(() -> {
log.info("到达超时时间, 结束录制"); log.info("到达超时时间, 结束录制");
record.set(false); record.set(false);
}, timeout * 2, TimeUnit.SECONDS); }, timeout + 60, TimeUnit.SECONDS);
long maxTime = TimeUnit.SECONDS.toMicros(timeout); long maxTime = TimeUnit.SECONDS.toMicros(timeout);
try { try {
Frame frame; Frame frame;