From e30e28712f7ec5a3c5514484b34bdde11d0954c3 Mon Sep 17 00:00:00 2001 From: Lawrence <1934378145@qq.com> Date: Sat, 24 Oct 2020 15:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=AD=E6=94=BE=E7=AD=89=E5=BE=85=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=A2=9E=E5=8A=A0=E5=88=B030=E7=A7=92=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=83=A8=E5=88=86=E8=AE=BE=E5=A4=87=EF=BC=88?= =?UTF-8?q?NVR=EF=BC=89=E6=92=AD=E6=94=BE=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/genersoft/iot/vmp/vmanager/play/PlayController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/play/PlayController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/play/PlayController.java index 3827fc7c..134e692c 100644 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/play/PlayController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/play/PlayController.java @@ -58,13 +58,13 @@ public class PlayController { } String streamId = String.format("%08x", Integer.parseInt(streamInfo.getSsrc())).toUpperCase(); - // 等待推流, TODO 默认超时15s + // 等待推流, TODO 默认超时30s boolean lockFlag = true; long startTime = System.currentTimeMillis(); while (lockFlag) { try { - if (System.currentTimeMillis() - startTime > 15 * 1000) { + if (System.currentTimeMillis() - startTime > 30 * 1000) { storager.stopPlay(streamInfo); return new ResponseEntity("timeout",HttpStatus.OK); }else {