Browse Source

Merge branch 'master' of http://192.168.1.222:3000/jiayi/zl-zhyl-web

weieryang 2 months ago
parent
commit
eb7810fb9e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bigScreen3/src/views/dashboard/cpns/VideoSurveillance.vue

+ 2 - 2
bigScreen3/src/views/dashboard/cpns/VideoSurveillance.vue

@@ -116,7 +116,7 @@ function handleImageError(event, index) {
116 116
 }
117 117
 // WebRTC服务器配置
118 118
 const WEBRTC_CONFIG = {
119
-  server: "http://127.0.0.1:8000",
119
+  server: "http://192.168.1.89:8000",    // WebRTC服务器地址  http://192.168.1.89:8000   http://127.0.0.1:8000
120 120
   connectParams: "rtptransport=tcp&timeout=30&connectiontimeout=5",
121 121
   reconnectDelay: 3000,
122 122
   timeoutDelay: 10000
@@ -297,7 +297,7 @@ async function initAndPlayStream() {
297 297
       // 初始化WebRTC实例
298 298
       if (!modalWebRtcServer.value) {
299 299
         modalWebRtcServer.value = new WebRtcStreamer("video", WEBRTC_CONFIG.server);
300
-        console.log('模态框WebRTC实例创建成功')
300
+        console.log('模态框WebRTC实例创建成功',WEBRTC_CONFIG.server)
301 301
         
302 302
         // 添加错误处理和状态监听
303 303
         modalWebRtcServer.value.onStateChange = (state) => {