Commit 7f48246165b3c815e928cee04f8d4e2cf689b6aa

Authored by panlinlin
1 parent a29a0a07

增加对设备录像播放的兼容性

src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/SIPRequestHeaderProvider.java
@@ -37,8 +37,7 @@ public class SIPRequestHeaderProvider { @@ -37,8 +37,7 @@ public class SIPRequestHeaderProvider {
37 SipURI requestURI = sipFactory.createAddressFactory().createSipURI(device.getDeviceId(), device.getHostAddress()); 37 SipURI requestURI = sipFactory.createAddressFactory().createSipURI(device.getDeviceId(), device.getHostAddress());
38 // via 38 // via
39 ArrayList<ViaHeader> viaHeaders = new ArrayList<ViaHeader>(); 39 ArrayList<ViaHeader> viaHeaders = new ArrayList<ViaHeader>();
40 - ViaHeader viaHeader = sipFactory.createHeaderFactory().createViaHeader(sipConfig.getSipIp(), sipConfig.getSipPort(),  
41 - device.getTransport(), viaTag); 40 + ViaHeader viaHeader = sipFactory.createHeaderFactory().createViaHeader(sipConfig.getSipIp(), sipConfig.getSipPort(), device.getTransport(), viaTag);
42 viaHeader.setRPort(); 41 viaHeader.setRPort();
43 viaHeaders.add(viaHeader); 42 viaHeaders.add(viaHeader);
44 // from 43 // from
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
@@ -254,7 +254,6 @@ public class ZLMHttpHookListener { @@ -254,7 +254,6 @@ public class ZLMHttpHookListener {
254 System.out.println("on_stream_changed->>" + schema); 254 System.out.println("on_stream_changed->>" + schema);
255 } 255 }
256 if ("rtmp".equals(schema)){ 256 if ("rtmp".equals(schema)){
257 -  
258 if ("rtp".equals(app) && !regist ) { 257 if ("rtp".equals(app) && !regist ) {
259 StreamInfo streamInfo = redisCatchStorage.queryPlayByStreamId(streamId); 258 StreamInfo streamInfo = redisCatchStorage.queryPlayByStreamId(streamId);
260 if (streamInfo!=null){ 259 if (streamInfo!=null){
web_src/src/components/StreamProxyList.vue
@@ -194,7 +194,7 @@ @@ -194,7 +194,7 @@
194 that.initData() 194 that.initData()
195 }).catch(function (error) { 195 }).catch(function (error) {
196 console.log(error); 196 console.log(error);
197 - that.getListLoading = false; 197 + that.getListLoading = false;
198 }); 198 });
199 }, 199 },
200 start: function(row){ 200 start: function(row){
web_src/src/components/dialog/StreamProxyEdit.vue
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 @close="close()" 10 @close="close()"
11 > 11 >
12 <div id="shared" style="margin-top: 1rem;margin-right: 100px;"> 12 <div id="shared" style="margin-top: 1rem;margin-right: 100px;">
13 - <el-form ref="streamProxy" :rules="rules" :model="proxyParam" label-width="140px"> 13 + <el-form ref="streamProxy" :rules="rules" :model="proxyParam" label-width="140px" >
14 <el-form-item label="类型" prop="type"> 14 <el-form-item label="类型" prop="type">
15 <el-select 15 <el-select
16 v-model="proxyParam.type" 16 v-model="proxyParam.type"
@@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
66 </el-form-item> 66 </el-form-item>
67 <el-form-item> 67 <el-form-item>
68 <div style="float: right;"> 68 <div style="float: right;">
69 - <el-button type="primary" @click="onSubmit">{{onSubmit_text}}</el-button> 69 + <el-button type="primary" @click="onSubmit" :loading="dialogLoading" >{{onSubmit_text}}</el-button>
70 <el-button @click="close">取消</el-button> 70 <el-button @click="close">取消</el-button>
71 </div> 71 </div>
72 72
@@ -104,6 +104,7 @@ export default { @@ -104,6 +104,7 @@ export default {
104 listChangeCallback: null, 104 listChangeCallback: null,
105 showDialog: false, 105 showDialog: false,
106 isLoging: false, 106 isLoging: false,
  107 + dialogLoading: false,
107 onSubmit_text: "立即创建", 108 onSubmit_text: "立即创建",
108 proxyParam: { 109 proxyParam: {
109 name: null, 110 name: null,
@@ -145,12 +146,14 @@ export default { @@ -145,12 +146,14 @@ export default {
145 }, 146 },
146 onSubmit: function () { 147 onSubmit: function () {
147 console.log("onSubmit"); 148 console.log("onSubmit");
  149 + this.dialogLoading = true;
148 var that = this; 150 var that = this;
149 that.$axios({ 151 that.$axios({
150 method: 'post', 152 method: 'post',
151 url:`/api/proxy/save`, 153 url:`/api/proxy/save`,
152 data: that.proxyParam 154 data: that.proxyParam
153 }).then(function (res) { 155 }).then(function (res) {
  156 + that.dialogLoading = false;
154 if (typeof (res.data.code) != "undefined" && res.data.code === 0) { 157 if (typeof (res.data.code) != "undefined" && res.data.code === 0) {
155 that.$message({ 158 that.$message({
156 showClose: true, 159 showClose: true,
@@ -164,11 +167,13 @@ export default { @@ -164,11 +167,13 @@ export default {
164 } 167 }
165 }).catch(function (error) { 168 }).catch(function (error) {
166 console.log(error); 169 console.log(error);
  170 + this.dialogLoading = false;
167 }); 171 });
168 }, 172 },
169 close: function () { 173 close: function () {
170 console.log("关闭添加视频平台"); 174 console.log("关闭添加视频平台");
171 this.showDialog = false; 175 this.showDialog = false;
  176 + this.dialogLoading = false;
172 this.$refs.streamProxy.resetFields(); 177 this.$refs.streamProxy.resetFields();
173 }, 178 },
174 deviceGBIdExit: async function (deviceGbId) { 179 deviceGBIdExit: async function (deviceGbId) {