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 {