Explorar o código

Merge branch 'master' of http://face3d.4dage.com:7005/xushiting/Metaverse

gemercheung %!s(int64=3) %!d(string=hai) anos
pai
achega
3b2853a257
Modificáronse 2 ficheiros con 18 adicións e 18 borrados
  1. 6 6
      src/Rtcp.js
  2. 12 12
      src/Workers.js

+ 6 - 6
src/Rtcp.js

@@ -133,12 +133,12 @@ export default class Rtcp extends EventEmitter {
         }
         );*/
 
-        this.network = e,
-        this.workers = new Workers(this,logger),
-        this.workers.registerLogger(logger),
-        this.workers.registerFunction("data", t=>{
-            this.emit("data", t)
-        });
+        this.network = e;
+        this.workers = new Workers(this,logger);
+        // this.workers.registerLogger(logger),
+        // this.workers.registerFunction("data", t=>{
+        //     this.emit("data", t)
+        // });
 
         this.heartbeat = new Heartbeat({
             ping: t=>{

+ 12 - 12
src/Workers.js

@@ -16,18 +16,18 @@ import ServerData from "./ServerData.js"
 
 export default class Workers {
     constructor(e, t) {
-        this.rtcp = e,
-        this.cacheSize = 0,
-        this.cacheBuffer = new Uint8Array(262144),
-        this.cacheFrameCnt = 0,
-        this.startReceiveTime = 0,
-        this.cacheFrameComposes = new Array(0),
-        this.cacheSizes = new Array(5).fill(0),
-        this.cacheFrameCnts = new Array(5).fill(-1),
-        this.cacheStartReceiveTimes = new Array(5).fill(0),
-        this.cacheBuffers = [new Uint8Array(262144), new Uint8Array(262144), new Uint8Array(262144), new Uint8Array(262144), new Uint8Array(262144)],
-        this.panoCacheSize = 0,
-        this.panoCacheBuffer = new Uint8Array(2097152),
+        // this.rtcp = e,
+        // this.cacheSize = 0,
+        // this.cacheBuffer = new Uint8Array(262144),
+        // this.cacheFrameCnt = 0,
+        // this.startReceiveTime = 0,
+        // this.cacheFrameComposes = new Array(0),
+        // this.cacheSizes = new Array(5).fill(0),
+        // this.cacheFrameCnts = new Array(5).fill(-1),
+        // this.cacheStartReceiveTimes = new Array(5).fill(0),
+        // this.cacheBuffers = [new Uint8Array(262144), new Uint8Array(262144), new Uint8Array(262144), new Uint8Array(262144), new Uint8Array(262144)],
+        // this.panoCacheSize = 0,
+        // this.panoCacheBuffer = new Uint8Array(2097152),
         this.cachePanoTileID = 0,
         this.receivedMedia = 0,
         this.receivedMedia_worker = 0,