hls.js 1.5.8-0.canary.10154 → 1.5.8-0.canary.10156

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/package.json CHANGED
@@ -130,5 +130,5 @@
130
130
  "url-toolkit": "2.2.5",
131
131
  "wrangler": "3.45.0"
132
132
  },
133
- "version": "1.5.8-0.canary.10154"
133
+ "version": "1.5.8-0.canary.10156"
134
134
  }
@@ -1,8 +1,13 @@
1
1
  import type Hls from '../hls';
2
2
  import type { NetworkComponentAPI } from '../types/component-api';
3
- import { getSkipValue, HlsSkip, HlsUrlParameters, Level } from '../types/level';
3
+ import {
4
+ getSkipValue,
5
+ HlsSkip,
6
+ HlsUrlParameters,
7
+ type Level,
8
+ } from '../types/level';
4
9
  import { computeReloadInterval, mergeDetails } from '../utils/level-helper';
5
- import { ErrorData } from '../types/events';
10
+ import type { ErrorData } from '../types/events';
6
11
  import { getRetryDelay, isTimeoutError } from '../utils/error-helper';
7
12
  import { NetworkErrorAction } from './error-controller';
8
13
  import { Logger } from '../utils/logger';
@@ -1,5 +1,5 @@
1
1
  import { Events } from '../events';
2
- import Hls from '../hls';
2
+ import type Hls from '../hls';
3
3
  import { Cmcd } from '@svta/common-media-library/cmcd/Cmcd';
4
4
  import { CmcdObjectType } from '@svta/common-media-library/cmcd/CmcdObjectType';
5
5
  import { CmcdStreamingFormat } from '@svta/common-media-library/cmcd/CmcdStreamingFormat';
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  ManifestLoadedData,
3
3
  ManifestParsedData,
4
4
  LevelLoadedData,
@@ -1,12 +1,12 @@
1
1
  import {
2
- DemuxerResult,
3
- Demuxer,
4
- DemuxedAudioTrack,
5
- AudioFrame,
6
- DemuxedMetadataTrack,
7
- DemuxedVideoTrackBase,
8
- DemuxedUserdataTrack,
9
- KeyData,
2
+ type DemuxerResult,
3
+ type Demuxer,
4
+ type DemuxedAudioTrack,
5
+ type AudioFrame,
6
+ type DemuxedMetadataTrack,
7
+ type DemuxedVideoTrackBase,
8
+ type DemuxedUserdataTrack,
9
+ type KeyData,
10
10
  MetadataSchema,
11
11
  } from '../../types/demuxer';
12
12
  import { dummyTrack } from '../dummy-demuxed-track';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * MPEG parser helper
3
3
  */
4
- import { DemuxedAudioTrack } from '../../types/demuxer';
4
+ import type { DemuxedAudioTrack } from '../../types/demuxer';
5
5
 
6
6
  let chromeVersion: number | null = null;
7
7
 
@@ -2,13 +2,13 @@
2
2
  * MP4 demuxer
3
3
  */
4
4
  import {
5
- Demuxer,
6
- DemuxerResult,
7
- PassthroughTrack,
8
- DemuxedAudioTrack,
9
- DemuxedUserdataTrack,
10
- DemuxedMetadataTrack,
11
- KeyData,
5
+ type Demuxer,
6
+ type DemuxerResult,
7
+ type PassthroughTrack,
8
+ type DemuxedAudioTrack,
9
+ type DemuxedUserdataTrack,
10
+ type DemuxedMetadataTrack,
11
+ type KeyData,
12
12
  MetadataSchema,
13
13
  } from '../types/demuxer';
14
14
  import {
@@ -1,5 +1,8 @@
1
1
  import BaseVideoParser from './base-video-parser';
2
- import { DemuxedVideoTrack, DemuxedUserdataTrack } from '../../types/demuxer';
2
+ import type {
3
+ DemuxedVideoTrack,
4
+ DemuxedUserdataTrack,
5
+ } from '../../types/demuxer';
3
6
  import { parseSEIMessageFromNALu } from '../../utils/mp4-tools';
4
7
 
5
8
  import type { PES } from '../tsdemuxer';
package/src/events.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  ManifestLoadedData,
3
3
  ManifestLoadingData,
4
4
  MediaAttachedData,
@@ -1,7 +1,7 @@
1
1
  import Hls from './hls';
2
2
  import { Events } from './events';
3
3
  import { ErrorTypes, ErrorDetails } from './errors';
4
- import { Level } from './types/level';
4
+ import type { Level } from './types/level';
5
5
  import AbrController from './controller/abr-controller';
6
6
  import AudioTrackController from './controller/audio-track-controller';
7
7
  import AudioStreamController from './controller/audio-stream-controller';
@@ -1,6 +1,6 @@
1
1
  import { ErrorTypes, ErrorDetails } from '../errors';
2
2
  import { Fragment } from './fragment';
3
- import {
3
+ import type {
4
4
  Loader,
5
5
  LoaderConfiguration,
6
6
  FragmentLoaderContext,
@@ -1,5 +1,5 @@
1
1
  import { ErrorTypes, ErrorDetails } from '../errors';
2
- import {
2
+ import type {
3
3
  LoaderStats,
4
4
  LoaderResponse,
5
5
  LoaderConfiguration,
@@ -4,7 +4,7 @@ import type { HlsEventEmitter } from '../events';
4
4
  import { Events } from '../events';
5
5
  import { ErrorTypes, ErrorDetails } from '../errors';
6
6
  import { logger } from '../utils/logger';
7
- import {
7
+ import type {
8
8
  InitSegmentData,
9
9
  Remuxer,
10
10
  RemuxerResult,
@@ -1,4 +1,4 @@
1
- import EwmaBandWidthEstimator from '../utils/ewma-bandwidth-estimator';
1
+ import type EwmaBandWidthEstimator from '../utils/ewma-bandwidth-estimator';
2
2
 
3
3
  export interface ComponentAPI {
4
4
  destroy(): void;
@@ -1,5 +1,5 @@
1
1
  import type { TrackSet } from './track';
2
- import {
2
+ import type {
3
3
  DemuxedAudioTrack,
4
4
  DemuxedMetadataTrack,
5
5
  DemuxedUserdataTrack,
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  LoaderCallbacks,
3
3
  LoaderContext,
4
4
  Loader,