diff --git a/.gitignore b/.gitignore index d76c026c..0c96aafd 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ .mtj.tmp/ # Package Files # -*.jar +#*.jar *.war *.nar *.ear diff --git a/libs/jain-sip-ri-1.3.0-91.jar b/libs/jain-sip-ri-1.3.0-91.jar new file mode 100644 index 00000000..18e4f3b3 Binary files /dev/null and b/libs/jain-sip-ri-1.3.0-91.jar differ diff --git a/pom.xml b/pom.xml index 62b9d926..51db7774 100644 --- a/pom.xml +++ b/pom.xml @@ -123,6 +123,8 @@ javax.sip jain-sip-ri 1.3.0-91 + system + ${basedir}/libs/jain-sip-ri-1.3.0-91.jar org.dom4j diff --git a/src/main/java/com/genersoft/iot/vmp/storager/redis/VideoManagerRedisStoragerImpl.java b/src/main/java/com/genersoft/iot/vmp/storager/redis/VideoManagerRedisStoragerImpl.java index d46c357b..10f38159 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/redis/VideoManagerRedisStoragerImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/redis/VideoManagerRedisStoragerImpl.java @@ -155,6 +155,13 @@ public class VideoManagerRedisStoragerImpl implements IVideoManagerStorager { "_" + "*"; // List deviceChannelList = redis.keys(queryStr); List deviceChannelList = redis.scan(queryStr); + //对查询结果排序,避免出现通道排列顺序乱序的情况 + Collections.sort(deviceChannelList,new Comparator(){ + @Override + public int compare(Object o1, Object o2) { + return o1.toString().compareToIgnoreCase(o2.toString()); + } + }); pageResult.setPage(page); pageResult.setCount(count); pageResult.setTotal(deviceChannelList.size()); diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/play/PlayController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/play/PlayController.java index 3827fc7c..134e692c 100644 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/play/PlayController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/play/PlayController.java @@ -58,13 +58,13 @@ public class PlayController { } String streamId = String.format("%08x", Integer.parseInt(streamInfo.getSsrc())).toUpperCase(); - // 等待推流, TODO 默认超时15s + // 等待推流, TODO 默认超时30s boolean lockFlag = true; long startTime = System.currentTimeMillis(); while (lockFlag) { try { - if (System.currentTimeMillis() - startTime > 15 * 1000) { + if (System.currentTimeMillis() - startTime > 30 * 1000) { storager.stopPlay(streamInfo); return new ResponseEntity("timeout",HttpStatus.OK); }else { diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue index c478e6e3..4bcbe31c 100644 --- a/web_src/src/components/channelList.vue +++ b/web_src/src/components/channelList.vue @@ -54,7 +54,8 @@