|
@@ -106,10 +106,15 @@ class VideoPlay {
|
|
|
|
|
|
|
|
|
// 实时存储目前视频的大小位置;
|
|
|
- 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);
|
|
|
+ this.width =
|
|
|
+ Math.round(width * window.devicePixelRatio + 5 * window.devicePixelRatio);
|
|
|
+ this.height = Math.round(height * window.devicePixelRatio + 5 * window.devicePixelRatio);
|
|
|
+ this.posX = Math.round(
|
|
|
+ posX * window.devicePixelRatio + 5 * window.devicePixelRatio,
|
|
|
+ );
|
|
|
+ this.posY = Math.round(
|
|
|
+ posY * window.devicePixelRatio + 5 * window.devicePixelRatio,
|
|
|
+ );
|
|
|
|
|
|
// this.width = width;
|
|
|
// this.height = height;
|