zhzhenqin 1 year ago
parent
commit
4b22433d96
3 changed files with 4 additions and 4 deletions
  1. 2 2
      global.js
  2. 1 1
      src/components/videoList.vue
  3. 1 1
      vue.config.js

+ 2 - 2
global.js

@@ -1,6 +1,6 @@
-const serverip="172.16.63.208"
+const serverip ="192.168.1.100:9092"
 const host = 'http://' + serverip + '/index/api';
 const host = 'http://' + serverip + '/index/api';
-const secret = '035c73f7-bb6b-4889-a715-d9eb2d1925cc';
+const secret = 'HKF3wqABTqxNK49nXEhrHzALVG9i0LV4';
 const baseMediaUrl='ws://' + serverip + '/';
 const baseMediaUrl='ws://' + serverip + '/';
 function genApiUrl(method){
 function genApiUrl(method){
 	return host+method+"?secret="+secret;
 	return host+method+"?secret="+secret;

+ 1 - 1
src/components/videoList.vue

@@ -135,7 +135,7 @@
 			},
 			},
 			showVideo: function(streamInfo) {
 			showVideo: function(streamInfo) {
 				this.showVideoDialog = true;
 				this.showVideoDialog = true;
-				this.videoUrl = this.$global.baseMediaUrl + streamInfo.app + '/' + streamInfo.stream + ".flv?st="+new Date().getTime();
+				this.videoUrl = this.$global.baseMediaUrl + streamInfo.app + '/' + streamInfo.stream + ".live.flv?st="+new Date().getTime();
 				this.currentPlayerInfo = streamInfo;
 				this.currentPlayerInfo = streamInfo;
 			},
 			},
 			copySharedInfo: function(data) {
 			copySharedInfo: function(data) {

+ 1 - 1
vue.config.js

@@ -2,7 +2,7 @@ module.exports = {
   devServer: {
   devServer: {
     proxy: {
     proxy: {
       '/bpi': {                                //   以'/bpi'开头的请求会被代理进行转发
       '/bpi': {                                //   以'/bpi'开头的请求会被代理进行转发
-        target: 'http://172.16.63.208:801/index/api',       //   要发向的后台服务器地址  如果后台服务跑在后台开发人员的机器上,就写成 `http://ip:port` 如 `http:192.168.12.213:8081`   ip为后台服务器的ip
+        target: 'http://192.168.1.100:9092/index/api',       //   要发向的后台服务器地址  如果后台服务跑在后台开发人员的机器上,就写成 `http://ip:port` 如 `http:192.168.12.213:8081`   ip为后台服务器的ip
         changeOrigin: true                     
         changeOrigin: true                     
       }
       }
     }
     }