@give-tech/ec-player 0.0.1-beta.51 → 0.0.1-beta.52

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 CHANGED
@@ -3478,8 +3478,6 @@ class FLVPlayer extends BasePlayer {
3478
3478
  this.consecutiveEmptyBuffer++;
3479
3479
  if (isLive && this.bufferEmptyStartTime > 0) {
3480
3480
  this.pausedTime = now - this.bufferEmptyStartTime;
3481
- } else if (!isLive && this.bufferEmptyStartTime > 0) {
3482
- this.playStartTimeOffset = now - this.bufferEmptyStartTime;
3483
3481
  }
3484
3482
  if (this.consecutiveEmptyBuffer === 1) {
3485
3483
  console.warn("[FLVPlayer] Buffer empty, waiting for frames... queue:", this._videoTagQueue.length);
@@ -4457,6 +4455,10 @@ class EcPlayerCore {
4457
4455
  this.player.load(url),
4458
4456
  this.player.preInitDecoder()
4459
4457
  ]);
4458
+ if (!this.player) {
4459
+ console.log("[EcPlayerCore] Player destroyed during load, aborting");
4460
+ return;
4461
+ }
4460
4462
  if (this.player instanceof HLSPlayer) {
4461
4463
  this.detectedFormat = this.player.isFMP4 ? "hls-fmp4" : "hls-ts";
4462
4464
  console.log("[EcPlayerCore] Updated format after playlist parse:", this.detectedFormat);