From b17280522b3569b49c0d524b7ed7fb45ef0e991a Mon Sep 17 00:00:00 2001
From: panlinlin <648540858@qq.com>
Date: 星期五, 02 四月 2021 19:04:01 +0800
Subject: [PATCH] 增加推流转发到国标,尚不完善

---
 web_src/src/components/dialog/devicePlayer.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/web_src/src/components/dialog/devicePlayer.vue b/web_src/src/components/dialog/devicePlayer.vue
index 48d295a..6780095 100644
--- a/web_src/src/components/dialog/devicePlayer.vue
+++ b/web_src/src/components/dialog/devicePlayer.vue
@@ -163,6 +163,7 @@
             },
             showVideoDialog: false,
             streamId: '',
+            app : '',
             convertKey: '',
             deviceId: '',
             channelId: '',
@@ -198,7 +199,7 @@
             if (tab.name == "codec") {
                 this.$axios({
                     method: 'get',
-                    url: '/zlm/index/api/getMediaInfo?vhost=__defaultVhost__&schema=rtmp&app=rtp&stream='+ this.streamId
+                    url: '/zlm/index/api/getMediaInfo?vhost=__defaultVhost__&schema=rtmp&app='+ this.app +'&stream='+ this.streamId
                 }).then(function (res) {
                     that.tracksLoading = false;
                     if (res.data.code == 0 && res.data.online) {
@@ -218,6 +219,7 @@
             this.channelId = channelId;
             this.deviceId = deviceId;
             this.streamId = "";
+            this.app = "";
             this.videoUrl = ""
             if (!!this.$refs.videoPlayer) {
                 this.$refs.videoPlayer.pause();
@@ -228,11 +230,11 @@
                     break;
                 case "record":
                     this.showVideoDialog = true;
-
                     this.videoHistory.date = param.date;
                     this.queryRecords()
                     break;
                 case "streamPlay":
+                    this.tabActiveName = "media";
                     this.showRrecord = false,
                     this.showPtz = false,
                     this.play(param.streamInfo, param.hasAudio)
@@ -250,6 +252,7 @@
             this.isLoging = false;
             this.videoUrl = streamInfo.ws_flv;
             this.streamId = streamInfo.streamId;
+            this.app = streamInfo.app;
             this.playFromStreamInfo(false, streamInfo)
         },
         coverPlay: function () {

--
Gitblit v1.8.0