Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cec9a35

Browse files
committed
[CHG]修复cavas绘图默认过多,导致内存消耗的问题
1 parent 6f81daf commit cec9a35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ezuikit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,8 @@
957957
iType: 1,
958958
iWidth: playParams.width || 600,
959959
iHeight: playParams.height || 400,
960-
iMaxSplit: 4,
961-
iCurrentSplit: playParams.splitBasis || 1,
960+
iMaxSplit: Math.ceil(Math.sqrt(playParams.url.split(",").length)),
961+
iCurrentSplit: playParams.splitBasis || Math.ceil(Math.sqrt(playParams.url.split(",").length)),
962962
szBasePath: playParams.decoderPath + '/js/',
963963
});
964964
// 注册全屏事件

0 commit comments

Comments
 (0)