[*] 日常优化

This commit is contained in:
acgist
2023-11-03 07:40:06 +08:00
parent 7fd9ae8860
commit 782e98784b

View File

@@ -195,9 +195,9 @@ public class Recorder {
this.running = true; this.running = true;
} }
this.buildSdpfile(); this.buildSdpfile();
this.thread = new Thread(this::record); this.thread = new Thread(this::recordVideo);
this.thread.setDaemon(true); this.thread.setDaemon(true);
this.thread.setName("TaoyaoRecord"); this.thread.setName("TaoyaoRecord-" + this.clientWrapper.getClientId());
this.thread.start(); this.thread.start();
this.updateRecordStatus(true); this.updateRecordStatus(true);
log.info("开始媒体录像:{}", this.folder); log.info("开始媒体录像:{}", this.folder);
@@ -206,7 +206,7 @@ public class Recorder {
/** /**
* 录像视频 * 录像视频
*/ */
private void record() { private void recordVideo() {
final String recordScript = String.format( final String recordScript = String.format(
this.ffmpegProperties.getRecord(), this.ffmpegProperties.getRecord(),
this.ffmpegProperties.getFrameRate(), this.ffmpegProperties.getFrameRate(),