@give-tech/ec-player 0.0.1-beta.30 → 0.0.1-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -118,9 +118,11 @@ class H264Decoder {
|
|
|
118
118
|
}
|
|
119
119
|
const DEFAULT_PLAYER_CONFIG = {
|
|
120
120
|
wasmPath: "/wasm/decoder-simd.js",
|
|
121
|
-
targetBufferSize:
|
|
121
|
+
targetBufferSize: 90,
|
|
122
|
+
// 90 帧(约 3.6 秒 @25fps),适应高分辨率视频
|
|
122
123
|
decodeBatchSize: 2,
|
|
123
|
-
maxQueueSize:
|
|
124
|
+
maxQueueSize: 300,
|
|
125
|
+
// 增加 sample 队列上限
|
|
124
126
|
isLive: false
|
|
125
127
|
};
|
|
126
128
|
class BasePlayer {
|
|
@@ -1510,7 +1512,8 @@ const HLS_PREFETCHER_CONFIG = {
|
|
|
1510
1512
|
...DEFAULT_SEGMENT_PREFETCHER_CONFIG,
|
|
1511
1513
|
lowWaterMark: 30,
|
|
1512
1514
|
highWaterMark: 100,
|
|
1513
|
-
prefetchAhead:
|
|
1515
|
+
prefetchAhead: 6,
|
|
1516
|
+
// 预载 6 个分片(约 30 秒),适应高分辨率视频
|
|
1514
1517
|
prefetchInterval: 10,
|
|
1515
1518
|
dynamicInterval: true
|
|
1516
1519
|
};
|