Browse Source

修复重复调用open rtp server

pull/31/head
648540858 4 years ago
parent
commit
1ec6c4506a
  1. 3
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java

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

@ -311,7 +311,8 @@ public class ZLMHttpHookListener {
if (autoApplyPlay) {
String app = json.getString("app");
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("_");
if (s.length == 4) {
String deviceId = s[2];

Loading…
Cancel
Save