From b944fff7414cd5d9b274ffcaf0b010ad9be965e1 Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Fri, 25 Mar 2022 14:42:26 +0800
Subject: [PATCH] Modify config

---
 src/pages/page-pilot/pilot-liveshare.vue |   22 ++++------------------
 1 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/src/pages/page-pilot/pilot-liveshare.vue b/src/pages/page-pilot/pilot-liveshare.vue
index 7d6ee40..da54d73 100644
--- a/src/pages/page-pilot/pilot-liveshare.vue
+++ b/src/pages/page-pilot/pilot-liveshare.vue
@@ -117,20 +117,6 @@
 const rtmpParam = {
   url: config.rtmpURL + '12345'
 }
-const rtspParam = {
-  userName: 'dji-live-share',
-  password: '12345678',
-  port: '8554'
-}
-const gb28181Param = {
-  serverIp: '114.55.103.238',
-  serverPort: '5060',
-  serverId: '34020000002000000001',
-  agentId: '34020000001310000004',
-  password: '12345678',
-  agentPort: '7060',
-  agentChannel: '34020000001310000004'
-}
 const liveState = ref<string>('STOP')
 const livetypeSelected = ref<number>(1)
 const publishModeSelected = ref<string>('video-demand-aux-manual')
@@ -174,14 +160,14 @@
       break
     }
     case 3: {
-      message.info('rtspParam:' + JSON.stringify(rtspParam))
-      apiPilot.setLiveshareConfig(3, JSON.stringify(rtspParam))
+      message.info('rtspParam:' + config.rtspPara)
+      apiPilot.setLiveshareConfig(3, config.rtspPara)
       apiPilot.startLiveshare()
       break
     }
     case 4: {
-      message.info('gb28181Param:' + JSON.stringify(gb28181Param))
-      apiPilot.setLiveshareConfig(4, JSON.stringify(gb28181Param))
+      message.info('gb28181Param:' + config.gb28181Para)
+      apiPilot.setLiveshareConfig(4, config.gb28181Para)
       apiPilot.startLiveshare()
       break
     }

--
Gitblit v1.9.3