关闭接口鉴权与自动一起使用可以完成单网页集成
This commit is contained in:
parent
667257a75a
commit
5e598f7deb
@ -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…
Reference in New Issue
Block a user