修复重复调用open rtp server

This commit is contained in:
648540858 2020-12-21 11:35:28 +08:00
parent 51630f54e8
commit f6a59b06e3

View File

@ -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];