Commit 1ec6c4506a278eeed7b0a663a57d78279d3cdc23

Authored by 648540858
1 parent d5806458

修复重复调用open rtp server

src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
@@ -311,7 +311,8 @@ public class ZLMHttpHookListener { @@ -311,7 +311,8 @@ public class ZLMHttpHookListener {
311 if (autoApplyPlay) { 311 if (autoApplyPlay) {
312 String app = json.getString("app"); 312 String app = json.getString("app");
313 String streamId = json.getString("stream"); 313 String streamId = json.getString("stream");
314 - if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1) { 314 + StreamInfo streamInfo = storager.queryPlayByStreamId(streamId);
  315 + if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1 && streamInfo == null) {
315 String[] s = streamId.split("_"); 316 String[] s = streamId.split("_");
316 if (s.length == 4) { 317 if (s.length == 4) {
317 String deviceId = s[2]; 318 String deviceId = s[2];