From 12571e0db1b5014e707010e4ab2514ad22ee6fc1 Mon Sep 17 00:00:00 2001
From: wenyanjun <997745354@qq.com>
Date: 星期三, 14 九月 2022 14:32:22 +0800
Subject: [PATCH] 修复下载录像失败问题
---
src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java
index 708d693..6df1483 100644
--- a/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java
+++ b/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java
@@ -125,7 +125,7 @@
dynamicTask.startDelay(registerTaskKey,
// 娉ㄥ唽澶辫触锛堟敞鍐屾垚鍔熸椂鐢辩▼搴忕洿鎺ヨ皟鐢ㄤ簡online鏂规硶锛�
()->commanderForPlatform.register(parentPlatform, eventResult -> offline(parentPlatform),null),
- parentPlatform.getExpires()*1000);
+ (parentPlatform.getExpires() - 10) *1000);
final String keepaliveTaskKey = KEEPALIVE_KEY_PREFIX + parentPlatform.getServerGBId();
if (!dynamicTask.contains(keepaliveTaskKey)) {
@@ -164,7 +164,7 @@
redisCatchStorage.updatePlatformCatchInfo(platformCatch);
}
}),
- parentPlatform.getExpires()*1000);
+ (parentPlatform.getKeepTimeout() - 10)*1000);
}
}
@@ -213,7 +213,6 @@
param.put("stream", sendRtpItem.getStreamId());
zlmrtpServerFactory.stopSendRtpStream(mediaInfo, param);
}
-
}
}
--
Gitblit v1.8.0