wenhongquan 3 anos atrás
pai
commit
86de6d5b9b
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1 1
      index.html
  2. 2 2
      public/webClient/webClient_initWnd.js

+ 1 - 1
index.html

@@ -12,7 +12,7 @@
     <!-- <script src="./flexible.js"></script> -->
     <script src="./webClient/defaultConfig.js?time=111"></script>
     <script src="./webClient/initWebSocket.js?time=111"></script>
-    <script src="./webClient/webClient_initWnd.js?time=112"></script>
+    <script src="./webClient/webClient_initWnd.js?time=113"></script>
     <script src="./lib/jquery.js"></script>
     <script src="./lib/md5.js"></script>
     <script src="./lib/jsencrypt.min.js"></script>

+ 2 - 2
public/webClient/webClient_initWnd.js

@@ -106,8 +106,8 @@ class VideoPlay {
 
 
             // 实时存储目前视频的大小位置;
-            this.width = width;
-            this.height = height;
+            this.width = Math.round(width * window.devicePixelRatio);
+            this.height = Math.round(height * window.devicePixelRatio);
             this.posX = Math.round(posX * window.devicePixelRatio);
             this.posY = Math.round(posY * window.devicePixelRatio);