修复重复调用open rtp server
parent
d58064587d
commit
1ec6c4506a
|
@ -311,7 +311,8 @@ public class ZLMHttpHookListener {
|
||||||
if (autoApplyPlay) {
|
if (autoApplyPlay) {
|
||||||
String app = json.getString("app");
|
String app = json.getString("app");
|
||||||
String streamId = json.getString("stream");
|
String streamId = json.getString("stream");
|
||||||
if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1) {
|
StreamInfo streamInfo = storager.queryPlayByStreamId(streamId);
|
||||||
|
if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1 && 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];
|
||||||
|
|
Loading…
Reference in New Issue