hls.js 1.6.0-beta.1.0.canary.10803 → 1.6.0-beta.1.0.canary.10804

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
@@ -235,8 +235,8 @@ export declare type BaseData = {
235
235
 
236
236
  export declare class BasePlaylistController extends Logger implements NetworkComponentAPI {
237
237
  protected hls: Hls;
238
+ protected canLoad: boolean;
238
239
  private timer;
239
- private canLoad;
240
240
  constructor(hls: Hls, logPrefix: string);
241
241
  destroy(): void;
242
242
  private clearTimer;
@@ -248,7 +248,7 @@ export declare class BasePlaylistController extends Logger implements NetworkCom
248
248
  protected shouldLoadPlaylist(playlist: Level | MediaPlaylist | null | undefined): playlist is Level | MediaPlaylist;
249
249
  protected getUrlWithDirectives(uri: string, hlsUrlParameters: HlsUrlParameters | undefined): string;
250
250
  protected playlistLoaded(index: number, data: LevelLoadedData | AudioTrackLoadedData | TrackLoadedData, previousDetails?: LevelDetails): void;
251
- protected scheduleLoading(levelOrTrack: Level | MediaPlaylist, deliveryDirectives?: HlsUrlParameters): void;
251
+ protected scheduleLoading(levelOrTrack: Level | MediaPlaylist, deliveryDirectives?: HlsUrlParameters, updatedDetails?: LevelDetails): void;
252
252
  private getDeliveryDirectives;
253
253
  protected checkRetry(errorEvent: ErrorData): boolean;
254
254
  }
@@ -376,7 +376,7 @@ export declare class BaseStreamController extends TaskLoop implements NetworkCom
376
376
  protected afterBufferFlushed(media: Bufferable, bufferType: SourceBufferName, playlistType: PlaylistLevelType): void;
377
377
  protected resetLoadingState(): void;
378
378
  protected resetStartWhenNotLoaded(level: Level | null): void;
379
- protected resetWhenMissingContext(chunkMeta: ChunkMetadata): void;
379
+ protected resetWhenMissingContext(chunkMeta: ChunkMetadata | Fragment): void;
380
380
  protected removeUnbufferedFrags(start?: number): void;
381
381
  private updateLevelTiming;
382
382
  private playlistLabel;
@@ -1505,8 +1505,9 @@ declare class Hls implements HlsEventEmitter {
1505
1505
  private cmcdController?;
1506
1506
  private _media;
1507
1507
  private _url;
1508
- private triggeringException?;
1509
1508
  private _sessionId?;
1509
+ private triggeringException?;
1510
+ private started;
1510
1511
  /**
1511
1512
  * Get the video-dev/hls.js package version.
1512
1513
  */
@@ -1593,6 +1594,10 @@ declare class Hls implements HlsEventEmitter {
1593
1594
  * Stop loading of any stream data.
1594
1595
  */
1595
1596
  stopLoad(): void;
1597
+ /**
1598
+ * Returns whether loading, toggled with `startLoad()` and `stopLoad()`, is active or not`.
1599
+ */
1600
+ get loadingEnabled(): boolean;
1596
1601
  /**
1597
1602
  * Returns state of fragment loading toggled by calling `pauseBuffering()` and `resumeBuffering()`.
1598
1603
  */
@@ -2306,6 +2311,7 @@ export declare class InterstitialsController extends Logger implements NetworkCo
2306
2311
  private getPrimaryResumption;
2307
2312
  private isAssetBuffered;
2308
2313
  private attachPrimary;
2314
+ private startLoadingPrimaryAt;
2309
2315
  private onManifestLoading;
2310
2316
  private onLevelUpdated;
2311
2317
  private onAudioTrackUpdated;
@@ -2589,6 +2595,7 @@ export declare class LevelDetails {
2589
2595
  get fragmentStart(): number;
2590
2596
  get age(): number;
2591
2597
  get lastPartIndex(): number;
2598
+ get maxPartIndex(): number;
2592
2599
  get lastPartSn(): number;
2593
2600
  get expired(): boolean;
2594
2601
  }
@@ -2618,6 +2625,7 @@ export declare interface LevelLoadedData {
2618
2625
  networkDetails: any;
2619
2626
  stats: LoaderStats;
2620
2627
  deliveryDirectives: HlsUrlParameters | null;
2628
+ withoutMultiVariant?: boolean;
2621
2629
  }
2622
2630
 
2623
2631
  export declare interface LevelLoadingData {