Commit a683d9f6763cbe7a36dc36dd09502ce2a595f937

Authored by panlinlin
1 parent 2d8054be

关闭播放窗口停止回放

回滚回放代码
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java
... ... @@ -409,12 +409,7 @@ public class SIPCommander implements ISIPCommander {
409 409 try {
410 410 MediaServerConfig mediaInfo = redisCatchStorage.getMediaInfo();
411 411 String ssrc = streamSession.createPlayBackSsrc();
412   - String streamId = null;
413   - if (rtpEnable) {
414   - streamId = String.format("gb_playback_%s_%s", device.getDeviceId(), channelId);
415   - }else {
416   - streamId = String.format("%08x", Integer.parseInt(ssrc)).toUpperCase();
417   - }
  412 + String streamId = String.format("%08x", Integer.parseInt(ssrc)).toUpperCase();
418 413 // 添加订阅
419 414 JSONObject subscribeKey = new JSONObject();
420 415 subscribeKey.put("app", "rtp");
... ...
web_src/src/components/gb28181/devicePlayer.vue
... ... @@ -183,7 +183,8 @@ export default {
183 183 scanGroup: 0,
184 184 tracks: [],
185 185 coverPlaying:false,
186   - tracksLoading: false
  186 + tracksLoading: false,
  187 + recordPlay: ""
187 188 };
188 189 },
189 190 methods: {
... ... @@ -318,6 +319,10 @@ export default {
318 319 this.convertStop();
319 320 }
320 321 this.convertKey = ''
  322 + if (this.recordPlay != '') {
  323 + this.stopPlayRecord();
  324 + }
  325 + this.recordPlay = ''
321 326 },
322 327  
323 328 copySharedInfo: function (data) {
... ... @@ -384,6 +389,7 @@ export default {
384 389 var streamInfo = res.data;
385 390 that.streamId = streamInfo.streamId;
386 391 that.videoUrl = streamInfo.ws_flv;
  392 + that.recordPlay = true;
387 393 });
388 394 }
389 395 },
... ...