hls.js 1.5.17 → 1.5.19

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/hls.js.d.ts CHANGED
@@ -249,6 +249,7 @@ export declare class BaseStreamController extends TaskLoop implements NetworkCom
249
249
  protected startFragRequested: boolean;
250
250
  protected decrypter: Decrypter;
251
251
  protected initPTS: RationalTimestamp[];
252
+ protected buffering: boolean;
252
253
  protected onvseeking: EventListener | null;
253
254
  protected onvended: EventListener | null;
254
255
  private readonly logPrefix;
@@ -259,6 +260,8 @@ export declare class BaseStreamController extends TaskLoop implements NetworkCom
259
260
  protected onTickEnd(): void;
260
261
  startLoad(startPosition: number): void;
261
262
  stopLoad(): void;
263
+ pauseBuffering(): void;
264
+ resumeBuffering(): void;
262
265
  protected _streamEnded(bufferInfo: BufferInfo, levelDetails: LevelDetails): boolean;
263
266
  protected getLevelDetails(): LevelDetails | undefined;
264
267
  protected onMediaAttached(event: Events.MEDIA_ATTACHED, data: MediaAttachedData): void;
@@ -798,8 +801,6 @@ export declare class EMEController implements ComponentAPI {
798
801
  private mediaKeySessions;
799
802
  private keyIdToKeySessionPromise;
800
803
  private setMediaKeysQueue;
801
- private onMediaEncrypted;
802
- private onWaitingForKey;
803
804
  private debug;
804
805
  private log;
805
806
  private warn;
@@ -809,6 +810,7 @@ export declare class EMEController implements ComponentAPI {
809
810
  private registerListeners;
810
811
  private unregisterListeners;
811
812
  private getLicenseServerUrl;
813
+ private getLicenseServerUrlOrThrow;
812
814
  private getServerCertificateUrl;
813
815
  private attemptKeySystemAccess;
814
816
  private requestMediaKeySystemAccess;
@@ -824,8 +826,8 @@ export declare class EMEController implements ComponentAPI {
824
826
  private handleError;
825
827
  private getKeySystemForKeyPromise;
826
828
  private getKeySystemSelectionPromise;
827
- private _onMediaEncrypted;
828
- private _onWaitingForKey;
829
+ private onMediaEncrypted;
830
+ private onWaitingForKey;
829
831
  private attemptSetMediaKeys;
830
832
  private generateRequestWithPreferredKeySession;
831
833
  private onKeyStatusChange;
@@ -1410,11 +1412,11 @@ declare class Hls implements HlsEventEmitter {
1410
1412
  */
1411
1413
  stopLoad(): void;
1412
1414
  /**
1413
- * Resumes stream controller segment loading if previously started.
1415
+ * Resumes stream controller segment loading after `pauseBuffering` has been called.
1414
1416
  */
1415
1417
  resumeBuffering(): void;
1416
1418
  /**
1417
- * Stops stream controller segment loading without changing 'started' state like stopLoad().
1419
+ * Prevents stream controller from loading new segments until `resumeBuffering` is called.
1418
1420
  * This allows for media buffering to be paused without interupting playlist loading.
1419
1421
  */
1420
1422
  pauseBuffering(): void;
@@ -2401,6 +2403,8 @@ export declare type MP4RemuxerConfig = {
2401
2403
  export declare interface NetworkComponentAPI extends ComponentAPI {
2402
2404
  startLoad(startPosition: number): void;
2403
2405
  stopLoad(): void;
2406
+ pauseBuffering?(): void;
2407
+ resumeBuffering?(): void;
2404
2408
  }
2405
2409
 
2406
2410
  export declare const enum NetworkErrorAction {