boss-web-player-sdk 1.1.2 → 1.1.4

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.d.ts CHANGED
@@ -530,6 +530,12 @@ export declare class VideoPlayerSDK {
530
530
  private networkErrorRetries;
531
531
  private mediaErrorRecovered;
532
532
  private static readonly MAX_NETWORK_RETRIES;
533
+ private static readonly TERMINAL_HTTP_STATUSES;
534
+ private static readonly STALL_TIMEOUT_MS;
535
+ private stallTimer;
536
+ private isBuffering;
537
+ private progressTick;
538
+ private hasFailed;
533
539
  private eventListeners;
534
540
  constructor(options: PlayerSDKOptions);
535
541
  /**
@@ -620,6 +626,21 @@ export declare class VideoPlayerSDK {
620
626
  lang: string;
621
627
  }>;
622
628
  setAudioTrack(id: number): void;
629
+ /**
630
+ * Arms a one-shot timer while buffering. If the timer fires and no data has
631
+ * arrived since it was armed (progressTick unchanged) and we're still
632
+ * buffering, the stream is considered dead. If data did arrive but we're still
633
+ * buffering (slow connection), it re-arms for another window rather than
634
+ * failing — so slow internet never trips it.
635
+ */
636
+ private armStallWatchdog;
637
+ private clearStallWatchdog;
638
+ /**
639
+ * Terminal error path: emit 'error' (which drives the error screen) and tear
640
+ * down the player. Guarded so it runs at most once, no matter how many error
641
+ * events fire during teardown.
642
+ */
643
+ private fail;
623
644
  destroy(): void;
624
645
  }
625
646