xushiting 3 vuotta sitten
vanhempi
commit
121120fd07
3 muutettua tiedostoa jossa 20 lisäystä ja 20 poistoa
  1. 2 2
      dist/index.html
  2. 6 6
      src/Rtcp.js
  3. 12 12
      src/Workers.js

+ 2 - 2
dist/index.html

@@ -38,12 +38,12 @@
     <script src="./libs/nipplejs.min.js"></script>
     <script src="./shader.js"></script>
 
-    <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.9.0/vconsole.min.js"></script>
+    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.9.0/vconsole.min.js"></script>
     <script>
         // init vConsole
         var vConsole = new VConsole();
         console.log('Hello world');
-    </script>
+    </script> -->
 
     <!-- <script src="./webrtc//adapter-7.4.0.min.js"></script>
     <script src="./webrtc/srs.sdk.js"></script> -->

+ 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,