@give-tech/ec-player 0.0.1-beta.4 → 0.0.1-beta.5
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/player/FLVPlayer.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2734,8 +2734,8 @@ class FLVPlayer extends BasePlayer {
|
|
|
2734
2734
|
* 开始播放(覆盖基类方法)
|
|
2735
2735
|
*/
|
|
2736
2736
|
async play() {
|
|
2737
|
-
const MIN_BUFFER_SIZE = this.dynamicMinBufferSize;
|
|
2738
|
-
const MAX_WAIT_TIME = 1e4;
|
|
2737
|
+
const MIN_BUFFER_SIZE = this.config.isLive ? 3 : this.dynamicMinBufferSize;
|
|
2738
|
+
const MAX_WAIT_TIME = this.config.isLive ? 3e3 : 1e4;
|
|
2739
2739
|
const startTime = Date.now();
|
|
2740
2740
|
console.log(`[FLVPlayer] Waiting for buffer (target: ${MIN_BUFFER_SIZE} frames)...`);
|
|
2741
2741
|
let aggressiveDecodeCount = 0;
|