关闭接口鉴权与自动一起使用可以完成单网页集成
This commit is contained in:
parent
fc6d4579e8
commit
5e497c4250
@ -54,6 +54,9 @@ public class ZLMHttpHookListener {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IRedisCatchStorage redisCatchStorage;
|
private IRedisCatchStorage redisCatchStorage;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ZLMRESTfulUtils zlmresTfulUtils;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ZLMServerManger zlmServerManger;
|
private ZLMServerManger zlmServerManger;
|
||||||
|
|
||||||
@ -335,8 +338,7 @@ public class ZLMHttpHookListener {
|
|||||||
if (userSetup.isAutoApplyPlay()) {
|
if (userSetup.isAutoApplyPlay()) {
|
||||||
String app = json.getString("app");
|
String app = json.getString("app");
|
||||||
String streamId = json.getString("stream");
|
String streamId = json.getString("stream");
|
||||||
StreamInfo streamInfo = redisCatchStorage.queryPlayByStreamId(streamId);
|
if ("rtp".equals(app) && streamId.contains("gb_play") ) {
|
||||||
if ("rtp".equals(app) && streamId.contains("gb_play") && streamInfo == null) {
|
|
||||||
String[] s = streamId.split("_");
|
String[] s = streamId.split("_");
|
||||||
if (s.length == 4) {
|
if (s.length == 4) {
|
||||||
String deviceId = s[2];
|
String deviceId = s[2];
|
||||||
@ -351,7 +353,6 @@ public class ZLMHttpHookListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user