Browse Source

打包加入依赖的onvif包

pull/93/head
panlinlin 4 years ago
parent
commit
bc2b288547
  1. 3
      pom.xml
  2. 2
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
  3. 4
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRTPServerFactory.java

3
pom.xml

@ -202,6 +202,9 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

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

@ -251,7 +251,7 @@ public class ZLMHttpHookListener {
JSONArray tracks = json.getJSONArray("tracks"); JSONArray tracks = json.getJSONArray("tracks");
boolean regist = json.getBoolean("regist"); boolean regist = json.getBoolean("regist");
if (tracks != null) { if (tracks != null) {
logger.info("[stream: " + streamId + "]on_stream_changed->>" + schema); logger.info("[stream: " + streamId + "] on_stream_changed->>" + schema);
} }
if ("rtmp".equals(schema)){ if ("rtmp".equals(schema)){
if ("rtp".equals(app) && !regist ) { if ("rtp".equals(app) && !regist ) {

4
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRTPServerFactory.java

@ -194,7 +194,7 @@ public class ZLMRTPServerFactory {
logger.error("RTP推流失败: 请检查ZLM服务"); logger.error("RTP推流失败: 请检查ZLM服务");
} else if (jsonObject.getInteger("code") == 0) { } else if (jsonObject.getInteger("code") == 0) {
result= true; result= true;
logger.error("RTP推流请求成功,本地推流端口:" + jsonObject.getString("local_port")); logger.info("RTP推流请求成功,本地推流端口:" + jsonObject.getString("local_port"));
} else { } else {
logger.error("RTP推流失败: " + jsonObject.getString("msg")); logger.error("RTP推流失败: " + jsonObject.getString("msg"));
} }
@ -238,7 +238,7 @@ public class ZLMRTPServerFactory {
logger.error("停止RTP推流失败: 请检查ZLM服务"); logger.error("停止RTP推流失败: 请检查ZLM服务");
} else if (jsonObject.getInteger("code") == 0) { } else if (jsonObject.getInteger("code") == 0) {
result= true; result= true;
logger.error("停止RTP推流成功"); logger.info("停止RTP推流成功");
} else { } else {
logger.error("停止RTP推流失败: " + jsonObject.getString("msg")); logger.error("停止RTP推流失败: " + jsonObject.getString("msg"));
} }

Loading…
Cancel
Save