x1ongzhu 2 tahun lalu
induk
melakukan
50a12710b1
3 mengubah file dengan 7 tambahan dan 6 penghapusan
  1. 1 1
      lib/index.html
  2. 3 2
      lib/keyboard.css
  3. 3 3
      lib/parsec.js

+ 1 - 1
lib/index.html

@@ -12,7 +12,7 @@
         // VConsole will be exported to `window.VConsole` by default.
         var vConsole = new window.VConsole();
         var parsecPlugin = new VConsole.VConsolePlugin('parsec', 'Parsec')
-
+        window.frameInterval = localStorage.getItem('frameInterval') || 40;
         parsecPlugin.on('renderTab', function (callback) {
             var html = '<div id="vconsole-parsec"></div>';
             callback(html);

+ 3 - 2
lib/keyboard.css

@@ -5,7 +5,7 @@
     user-select: none;
     position: fixed;
     top: 0;
-    width: 800px;
+    width: 900px;
     border-radius: 10px;
     box-shadow: 0 1px 5px 2px rgba(0, 0, 0, 0.1);
     border: 1px solid #ddd;
@@ -19,7 +19,8 @@
 }
 
 .hg-theme-default .hg-button {
-    height: 45px;
+    height: 55px;
+    font-size: 18px;
 }
 
 .virtual-keyboard-window .window-top {

+ 3 - 3
lib/parsec.js

@@ -943,14 +943,14 @@ Parsec.prototype.clientNewAttempt = function (a) {
                 "configured" != b.i.state &&
                     b.i.configure({
                         codec: "avc1.42001e",
-                        hardwareAcceleration: "prefer-software",
-                        optimizeForLatency: !0,
+                        hardwareAcceleration: "prefer-hardware",
+                        optimizeForLatency: true,
                     });
                 c = new EncodedVideoChunk({
                     type: "key",
                     data: c.data,
                     timestamp: 1e3 * performance.now(),
-                    duration: 0,
+                    duration: 1000000,
                 });
                 b.i.decode(c);
             });