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/README.md +6 -7
- package/dist/boss-web-player-sdk.css +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +21 -0
- package/dist/core.js +1 -1
- package/dist/dash.all.min-CkVT4O2X.cjs +19 -0
- package/dist/dash.all.min-CkVT4O2X.cjs.map +1 -0
- package/dist/dash.all.min-srqAFNy2.js +38600 -0
- package/dist/dash.all.min-srqAFNy2.js.map +1 -0
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +21 -0
- package/dist/index.js +524 -496
- package/dist/index.js.map +1 -1
- package/dist/{src-DZrghpiH.cjs → src-Ddf1d9o2.cjs} +5 -5
- package/dist/{src-DZrghpiH.cjs.map → src-Ddf1d9o2.cjs.map} +1 -1
- package/dist/{src-9ogb0T2_.js → src-DxUyqslb.js} +90 -32
- package/dist/{src-9ogb0T2_.js.map → src-DxUyqslb.js.map} +1 -1
- package/package.json +2 -6
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
|
|