xushiting 3 rokov pred
rodič
commit
4db526cc97
5 zmenil súbory, kde vykonal 14 pridanie a 14 odobranie
  1. 1 1
      src/ActionsHandler.js
  2. 1 1
      src/Rtcp.js
  3. 6 6
      src/Workers-bk.js
  4. 5 5
      src/Workers.js
  5. 1 1
      src/main.js

+ 1 - 1
src/ActionsHandler.js

@@ -29,7 +29,7 @@ export default class ActionsHandler {
 
     async sendData(actionData) {
 
-        console.log('发送数据:'+JSON.stringify(actionData))
+        //console.log('发送数据:'+JSON.stringify(actionData))
 
         await this.beforeSend(actionData);
         const traceId = util.uuid();

+ 1 - 1
src/Rtcp.js

@@ -120,7 +120,7 @@ export default class Rtcp extends EventEmitter {
             var o = this.inputChannel;
 			if(!this.actived || !this.inputChannel || this.inputChannel.readyState === "open"){
 				if(o != null){
-					console.log('发送webrtc数据:'+e)
+					//console.log('发送webrtc数据:'+e)
 					o.send(e)
 				}
 			}

+ 6 - 6
src/Workers-bk.js

@@ -1199,7 +1199,7 @@ export default class Workers {
             position: st,
           };
           if (this.inPanoMode) {
-            console.log("接受webrtc请求:" + JSON.stringify(Rt));
+            //("接受webrtc请求:" + JSON.stringify(Rt));
             this.executeFunction("signal", {
               signal: Rt,
               pts: -1,
@@ -1264,7 +1264,7 @@ export default class Workers {
   }
   dataHandle(e) {
     if (this.saveframe) {
-      console.log("接受webrtc请求:录制视频");
+      //console.log("接受webrtc请求:录制视频");
       this.decoderWorker.postMessage({
         t: 6,
       });
@@ -1272,7 +1272,7 @@ export default class Workers {
     }
 
     if (this.SaveMediaStream) {
-      console.log("接受webrtc请求:下载视频");
+      //console.log("接受webrtc请求:下载视频");
       this.decoderWorker.postMessage({
         t: 7,
       }),
@@ -1281,18 +1281,18 @@ export default class Workers {
 
     const i = new Uint8Array(e);
     if (i.length >= 4 && this.isHeartBeatPacket(i.buffer, i.length) == !0) {
-      console.log("接受webrtc请求:心跳");
+      //console.log("接受webrtc请求:心跳");
       return;
     }
     if (i.length > 36 && this.unmarshalStream(i.buffer) == !0) {
       this.reconnectSignal &&
         (this.executeFunction("reconnectedFrame", {}),
         (this.reconnectSignal = !1));
-      console.log("接受webrtc请求:视频流");
+      //console.log("接受webrtc请求:视频流");
       return;
     }
     if (i.length > 20 && this.unmarshalPano(i.buffer) == !0) {
-      console.log("接受webrtc请求:全景图");
+      //console.log("接受webrtc请求:全景图");
       return;
     }
     this.noWasmBytesReceived += e.byteLength;

+ 5 - 5
src/Workers.js

@@ -1245,8 +1245,8 @@ export default class Workers {
             position: st,
           };
           //有效Iframe
-          console.error("IT", It);
-          console.log("It.data", It.data);
+          //console.error("IT", It);
+          //console.log("It.data", It.data);
 
           // this.downloadBlob([At.buffer], `${It.frameCnt}.gt.h264`, "application/octet-stream");
 
@@ -1316,7 +1316,7 @@ export default class Workers {
   }
   dataHandle(e) {
     if (this.saveframe) {
-      console.log("接受webrtc请求:录制视频");
+      //console.log("接受webrtc请求:录制视频");
       this.decoderWorker.postMessage({
         t: 6,
       });
@@ -1324,7 +1324,7 @@ export default class Workers {
     }
 
     if (this.SaveMediaStream) {
-      console.log("接受webrtc请求:下载视频");
+      //console.log("接受webrtc请求:下载视频");
       this.decoderWorker.postMessage({
         t: 7,
       }),
@@ -1349,7 +1349,7 @@ export default class Workers {
     }
     this.noWasmBytesReceived += e.byteLength;
     const o = JSON.parse(this.Stringify(i));
-    console.log("接受webrtc请求:" + JSON.stringify(o));
+    //console.log("接受webrtc请求:" + JSON.stringify(o));
     this.executeFunction("signal", {
       signal: o,
       pts: -1,

+ 1 - 1
src/main.js

@@ -36,7 +36,7 @@ const l = async()=>{
             userId: nickname,
             wsServerUrl: 'wss://uat-eks.xverse.cn/ws',
             // wsServerUrl: "ws://localhost:6688/ws",
-            // wsServerUrl: "wss://meta-socket.4dage.com/ws",
+            //wsServerUrl: "wss://meta-socket.4dage.com/ws",
             appId: "10016",
             token: " ",
             nickname: nickname,