Browse Source

关闭接口鉴权与自动一起使用可以完成单网页集成

pull/110/head
64850858 4 years ago
parent
commit
5e598f7deb
  1. 7
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java

7
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java

@ -54,6 +54,9 @@ public class ZLMHttpHookListener {
@Autowired
private IRedisCatchStorage redisCatchStorage;
@Autowired
private ZLMRESTfulUtils zlmresTfulUtils;
@Autowired
private ZLMServerManger zlmServerManger;
@ -335,8 +338,7 @@ public class ZLMHttpHookListener {
if (userSetup.isAutoApplyPlay()) {
String app = json.getString("app");
String streamId = json.getString("stream");
StreamInfo streamInfo = redisCatchStorage.queryPlayByStreamId(streamId);
if ("rtp".equals(app) && streamId.contains("gb_play") && streamInfo == null) {
if ("rtp".equals(app) && streamId.contains("gb_play") ) {
String[] s = streamId.split("_");
if (s.length == 4) {
String deviceId = s[2];
@ -351,7 +353,6 @@ public class ZLMHttpHookListener {
}
}
}
}

Loading…
Cancel
Save