rx-player 3.29.0-dev.2022111000 → 3.29.0

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.
Files changed (106) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/VERSION +1 -1
  3. package/dist/_esm5.processed/compat/browser_compatibility_types.d.ts +1 -1
  4. package/dist/_esm5.processed/compat/browser_detection.js +10 -5
  5. package/dist/_esm5.processed/compat/eme/close_session.js +1 -1
  6. package/dist/_esm5.processed/compat/eme/custom_media_keys/index.d.ts +1 -1
  7. package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +1 -1
  8. package/dist/_esm5.processed/compat/eme/load_session.js +1 -1
  9. package/dist/_esm5.processed/compat/event_listeners.d.ts +1 -1
  10. package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.d.ts +3 -3
  11. package/dist/_esm5.processed/core/adaptive/network_analyzer.d.ts +1 -1
  12. package/dist/_esm5.processed/core/api/option_utils.d.ts +2 -2
  13. package/dist/_esm5.processed/core/api/playback_observer.d.ts +1 -1
  14. package/dist/_esm5.processed/core/api/public_api.js +2 -2
  15. package/dist/_esm5.processed/core/decrypt/attach_media_keys.js +1 -1
  16. package/dist/_esm5.processed/core/decrypt/content_decryptor.js +21 -18
  17. package/dist/_esm5.processed/core/decrypt/create_or_load_session.d.ts +1 -1
  18. package/dist/_esm5.processed/core/decrypt/create_or_load_session.js +1 -1
  19. package/dist/_esm5.processed/core/decrypt/create_session.d.ts +1 -1
  20. package/dist/_esm5.processed/core/decrypt/create_session.js +1 -1
  21. package/dist/_esm5.processed/core/decrypt/dispose_decryption_resources.js +1 -1
  22. package/dist/_esm5.processed/core/decrypt/find_key_system.d.ts +1 -1
  23. package/dist/_esm5.processed/core/decrypt/find_key_system.js +1 -1
  24. package/dist/_esm5.processed/core/decrypt/get_media_keys.js +1 -1
  25. package/dist/_esm5.processed/core/decrypt/init_media_keys.js +1 -1
  26. package/dist/_esm5.processed/core/decrypt/set_server_certificate.js +1 -1
  27. package/dist/_esm5.processed/core/decrypt/types.d.ts +1 -1
  28. package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.d.ts +1 -1
  29. package/dist/_esm5.processed/core/decrypt/utils/clean_old_loaded_sessions.js +1 -1
  30. package/dist/_esm5.processed/core/decrypt/utils/loaded_sessions_store.js +1 -1
  31. package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.js +1 -1
  32. package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.d.ts +1 -1
  33. package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.js +2 -1
  34. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.d.ts +1 -1
  35. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.js +1 -1
  36. package/dist/_esm5.processed/core/fetchers/segment/task_prioritizer.d.ts +1 -1
  37. package/dist/_esm5.processed/core/fetchers/utils/schedule_request.js +1 -1
  38. package/dist/_esm5.processed/core/init/content_time_boundaries_observer.d.ts +1 -1
  39. package/dist/_esm5.processed/core/init/initial_seek_and_play.d.ts +1 -1
  40. package/dist/_esm5.processed/core/init/link_drm_and_content.d.ts +1 -1
  41. package/dist/_esm5.processed/core/init/load_on_media_source.js +5 -7
  42. package/dist/_esm5.processed/core/init/manifest_update_scheduler.d.ts +2 -2
  43. package/dist/_esm5.processed/core/init/stream_events_emitter/types.d.ts +1 -1
  44. package/dist/_esm5.processed/core/init/types.d.ts +4 -4
  45. package/dist/_esm5.processed/core/segment_buffers/garbage_collector.js +1 -1
  46. package/dist/_esm5.processed/core/segment_buffers/implementations/types.d.ts +2 -2
  47. package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.d.ts +3 -3
  48. package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.d.ts +2 -2
  49. package/dist/_esm5.processed/core/stream/period/get_adaptation_switch_strategy.d.ts +1 -1
  50. package/dist/_esm5.processed/core/stream/period/period_stream.d.ts +1 -1
  51. package/dist/_esm5.processed/core/stream/representation/append_segment_to_buffer.js +1 -1
  52. package/dist/_esm5.processed/core/stream/representation/downloading_queue.d.ts +3 -3
  53. package/dist/_esm5.processed/core/stream/representation/force_garbage_collection.js +2 -5
  54. package/dist/_esm5.processed/core/stream/types.d.ts +5 -5
  55. package/dist/_esm5.processed/default_config.d.ts +1 -1
  56. package/dist/_esm5.processed/errors/error_codes.d.ts +7 -7
  57. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +5 -5
  58. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/types.d.ts +2 -2
  59. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +1 -1
  60. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +1 -1
  61. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +1 -1
  62. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +1 -1
  63. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +1 -1
  64. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +1 -1
  65. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/types.d.ts +1 -1
  66. package/dist/_esm5.processed/features/types.d.ts +10 -10
  67. package/dist/_esm5.processed/manifest/period.d.ts +1 -1
  68. package/dist/_esm5.processed/manifest/types.d.ts +1 -1
  69. package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.d.ts +1 -1
  70. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +1 -1
  71. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.d.ts +1 -1
  72. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.d.ts +2 -2
  73. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.d.ts +1 -1
  74. package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.d.ts +1 -1
  75. package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.d.ts +2 -2
  76. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +1 -1
  77. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +2 -4
  78. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +2 -2
  79. package/dist/_esm5.processed/parsers/manifest/local/types.d.ts +2 -2
  80. package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +1 -1
  81. package/dist/_esm5.processed/parsers/manifest/types.d.ts +2 -2
  82. package/dist/_esm5.processed/parsers/texttracks/ttml/get_styling.d.ts +1 -1
  83. package/dist/_esm5.processed/parsers/texttracks/types.d.ts +2 -2
  84. package/dist/_esm5.processed/public_types.d.ts +14 -14
  85. package/dist/_esm5.processed/transports/dash/image_pipelines.js +1 -1
  86. package/dist/_esm5.processed/transports/smooth/isobmff/create_init_segment.d.ts +1 -1
  87. package/dist/_esm5.processed/transports/smooth/pipelines.js +1 -1
  88. package/dist/_esm5.processed/transports/types.d.ts +11 -11
  89. package/dist/_esm5.processed/utils/assert.d.ts +1 -1
  90. package/dist/_esm5.processed/utils/deep_merge.d.ts +2 -2
  91. package/dist/_esm5.processed/utils/event_emitter.d.ts +2 -2
  92. package/dist/_esm5.processed/utils/logger.d.ts +2 -2
  93. package/dist/_esm5.processed/utils/request/fetch.js +1 -1
  94. package/dist/_esm5.processed/utils/task_canceller.d.ts +1 -1
  95. package/dist/rx-player.js +63 -64
  96. package/dist/rx-player.min.js +1 -1
  97. package/package.json +11 -11
  98. package/sonar-project.properties +1 -1
  99. package/src/compat/browser_detection.ts +15 -5
  100. package/src/core/api/public_api.ts +2 -2
  101. package/src/core/decrypt/content_decryptor.ts +13 -15
  102. package/src/core/fetchers/segment/prioritized_segment_fetcher.ts +3 -1
  103. package/src/core/init/load_on_media_source.ts +5 -7
  104. package/src/core/stream/representation/force_garbage_collection.ts +1 -4
  105. package/src/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.ts +6 -5
  106. package/src/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.ts +2 -4
@@ -168,7 +168,7 @@ export declare abstract class SegmentBuffer {
168
168
  abstract dispose(): void;
169
169
  }
170
170
  /** Every SegmentBuffer types. */
171
- export declare type IBufferType = "audio" | "video" | "text" | "image";
171
+ export type IBufferType = "audio" | "video" | "text" | "image";
172
172
  /**
173
173
  * Content of the `data` property when pushing a new chunk.
174
174
  *
@@ -260,7 +260,7 @@ export interface IPushChunkInfos<T> {
260
260
  inventoryInfos: IInsertedChunkInfos | null;
261
261
  }
262
262
  /** "Operations" scheduled by a SegmentBuffer. */
263
- export declare type ISBOperation<T> = IPushOperation<T> | IRemoveOperation | IEndOfSegmentOperation;
263
+ export type ISBOperation<T> = IPushOperation<T> | IRemoveOperation | IEndOfSegmentOperation;
264
264
  /**
265
265
  * Enum used by a SegmentBuffer as a discriminant in its queue of
266
266
  * "operations".
@@ -16,7 +16,7 @@
16
16
  import { CancellationSignal } from "../../utils/task_canceller";
17
17
  import { IBufferType, SegmentBuffer } from "./implementations";
18
18
  /** Options available for a "text" SegmentBuffer */
19
- export declare type ITextTrackSegmentBufferOptions = {
19
+ export type ITextTrackSegmentBufferOptions = {
20
20
  textTrackMode?: "native";
21
21
  hideNativeSubtitle?: boolean;
22
22
  } | {
@@ -24,9 +24,9 @@ export declare type ITextTrackSegmentBufferOptions = {
24
24
  textTrackElement: HTMLElement;
25
25
  };
26
26
  /** General Options available for any SegmentBuffer */
27
- export declare type ISegmentBufferOptions = ITextTrackSegmentBufferOptions;
27
+ export type ISegmentBufferOptions = ITextTrackSegmentBufferOptions;
28
28
  /** Types of "native" media buffers (i.e. which rely on a SourceBuffer) */
29
- declare type INativeMediaBufferType = "audio" | "video";
29
+ type INativeMediaBufferType = "audio" | "video";
30
30
  /**
31
31
  * Allows to easily create and dispose SegmentBuffers, which are interfaces to
32
32
  * push and remove segments.
@@ -22,9 +22,9 @@ import { SegmentFetcherCreator } from "../../fetchers";
22
22
  import SegmentBuffersStore from "../../segment_buffers";
23
23
  import { IPeriodStreamPlaybackObservation, IPeriodStreamOptions } from "../period";
24
24
  import { IStreamOrchestratorEvent } from "../types";
25
- export declare type IStreamOrchestratorPlaybackObservation = IPeriodStreamPlaybackObservation;
25
+ export type IStreamOrchestratorPlaybackObservation = IPeriodStreamPlaybackObservation;
26
26
  /** Options tweaking the behavior of the StreamOrchestrator. */
27
- export declare type IStreamOrchestratorOptions = IPeriodStreamOptions & {
27
+ export type IStreamOrchestratorOptions = IPeriodStreamOptions & {
28
28
  wantedBufferAhead: IReadOnlySharedReference<number>;
29
29
  maxVideoBufferSize: IReadOnlySharedReference<number>;
30
30
  maxBufferAhead: IReadOnlySharedReference<number>;
@@ -16,7 +16,7 @@
16
16
  import { Adaptation, Period } from "../../../manifest";
17
17
  import { IAudioTrackSwitchingMode } from "../../../public_types";
18
18
  import { SegmentBuffer } from "../../segment_buffers";
19
- export declare type IAdaptationSwitchStrategy = {
19
+ export type IAdaptationSwitchStrategy = {
20
20
  type: "continue";
21
21
  value: undefined;
22
22
  } | {
@@ -63,7 +63,7 @@ export interface IPeriodStreamArguments {
63
63
  maxVideoBufferSize: IReadOnlySharedReference<number>;
64
64
  }
65
65
  /** Options tweaking the behavior of the PeriodStream. */
66
- export declare type IPeriodStreamOptions = IAdaptationStreamOptions & {
66
+ export type IPeriodStreamOptions = IAdaptationStreamOptions & {
67
67
  /** RxPlayer's behavior when switching the audio track. */
68
68
  audioTrackSwitchingMode: IAudioTrackSwitchingMode;
69
69
  /** Behavior when a new video and/or audio codec is encountered. */
@@ -28,7 +28,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
28
28
  function verb(n) { return function (v) { return step([n, v]); }; }
29
29
  function step(op) {
30
30
  if (f) throw new TypeError("Generator is already executing.");
31
- while (_) try {
31
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32
32
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
33
  if (y = 0, t) op = [op[0] & 2, t.value];
34
34
  switch (op[0]) {
@@ -120,7 +120,7 @@ export default class DownloadingQueue<T> {
120
120
  private _requestInitSegment;
121
121
  }
122
122
  /** Event sent by the DownloadingQueue. */
123
- export declare type IDownloadingQueueEvent<T> = IParsedInitSegmentEvent<T> | IParsedSegmentEvent<T> | IEndOfSegmentEvent | ILoaderRetryEvent | IEndOfQueueEvent;
123
+ export type IDownloadingQueueEvent<T> = IParsedInitSegmentEvent<T> | IParsedSegmentEvent<T> | IEndOfSegmentEvent | ILoaderRetryEvent | IEndOfQueueEvent;
124
124
  /**
125
125
  * Notify that the initialization segment has been fully loaded and parsed.
126
126
  *
@@ -132,7 +132,7 @@ export declare type IDownloadingQueueEvent<T> = IParsedInitSegmentEvent<T> | IPa
132
132
  * In that case, an `IParsedInitSegmentEvent` will always be sent before any
133
133
  * `IParsedSegmentEvent` event is sent.
134
134
  */
135
- export declare type IParsedInitSegmentEvent<T> = ISegmentParserParsedInitChunk<T> & {
135
+ export type IParsedInitSegmentEvent<T> = ISegmentParserParsedInitChunk<T> & {
136
136
  segment: ISegment;
137
137
  type: "parsed-init";
138
138
  };
@@ -151,7 +151,7 @@ export declare type IParsedInitSegmentEvent<T> = ISegmentParserParsedInitChunk<T
151
151
  * You will know that all `IParsedSegmentEvent` have been loaded for a given
152
152
  * segment once you received the `IEndOfSegmentEvent` for that segment.
153
153
  */
154
- export declare type IParsedSegmentEvent<T> = ISegmentParserParsedMediaChunk<T> & {
154
+ export type IParsedSegmentEvent<T> = ISegmentParserParsedMediaChunk<T> & {
155
155
  segment: ISegment;
156
156
  type: "parsed-media";
157
157
  };
@@ -28,7 +28,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
28
28
  function verb(n) { return function (v) { return step([n, v]); }; }
29
29
  function step(op) {
30
30
  if (f) throw new TypeError("Generator is already executing.");
31
- while (_) try {
31
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32
32
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
33
  if (y = 0, t) op = [op[0] & 2, t.value];
34
34
  switch (op[0]) {
@@ -124,10 +124,7 @@ function selectGCedRanges(position, buffered, gcGap) {
124
124
  // current time and respect the gcGap
125
125
  for (var i = 0; i < outerRanges.length; i++) {
126
126
  var outerRange = outerRanges[i];
127
- if (position - gcGap > outerRange.end) {
128
- cleanedupRanges.push(outerRange);
129
- }
130
- else if (position + gcGap < outerRange.start) {
127
+ if ((position - gcGap > outerRange.end) || (position + gcGap < outerRange.start)) {
131
128
  cleanedupRanges.push(outerRange);
132
129
  }
133
130
  }
@@ -426,12 +426,12 @@ export interface INeedsBufferFlushEvent {
426
426
  value: undefined;
427
427
  }
428
428
  /** Event sent by a `RepresentationStream`. */
429
- export declare type IRepresentationStreamEvent = IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamTerminatingEvent | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
429
+ export type IRepresentationStreamEvent = IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamTerminatingEvent | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
430
430
  /** Event sent by an `AdaptationStream`. */
431
- export declare type IAdaptationStreamEvent = IBitrateEstimationChangeEvent | INeedsDecipherabilityFlush | IRepresentationChangeEvent | INeedsBufferFlushEvent | IWaitingMediaSourceReloadInternalEvent | IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
431
+ export type IAdaptationStreamEvent = IBitrateEstimationChangeEvent | INeedsDecipherabilityFlush | IRepresentationChangeEvent | INeedsBufferFlushEvent | IWaitingMediaSourceReloadInternalEvent | IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
432
432
  /** Event sent by a `PeriodStream`. */
433
- export declare type IPeriodStreamEvent = IPeriodStreamReadyEvent | IAdaptationChangeEvent | IWaitingMediaSourceReloadInternalEvent | IBitrateEstimationChangeEvent | INeedsMediaSourceReload | INeedsBufferFlushEvent | INeedsDecipherabilityFlush | IRepresentationChangeEvent | IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
433
+ export type IPeriodStreamEvent = IPeriodStreamReadyEvent | IAdaptationChangeEvent | IWaitingMediaSourceReloadInternalEvent | IBitrateEstimationChangeEvent | INeedsMediaSourceReload | INeedsBufferFlushEvent | INeedsDecipherabilityFlush | IRepresentationChangeEvent | IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
434
434
  /** Event coming from function(s) managing multiple PeriodStreams. */
435
- export declare type IMultiplePeriodStreamsEvent = IPeriodStreamClearedEvent | ICompletedStreamEvent | IPeriodStreamReadyEvent | INeedsBufferFlushEvent | IAdaptationChangeEvent | IWaitingMediaSourceReloadInternalEvent | IBitrateEstimationChangeEvent | INeedsMediaSourceReload | INeedsDecipherabilityFlush | IRepresentationChangeEvent | IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
435
+ export type IMultiplePeriodStreamsEvent = IPeriodStreamClearedEvent | ICompletedStreamEvent | IPeriodStreamReadyEvent | INeedsBufferFlushEvent | IAdaptationChangeEvent | IWaitingMediaSourceReloadInternalEvent | IBitrateEstimationChangeEvent | INeedsMediaSourceReload | INeedsDecipherabilityFlush | IRepresentationChangeEvent | IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
436
436
  /** Every event sent by the `StreamOrchestrator`. */
437
- export declare type IStreamOrchestratorEvent = IActivePeriodChangedEvent | IEndOfStreamEvent | IResumeStreamEvent | IPeriodStreamClearedEvent | ICompletedStreamEvent | IPeriodStreamReadyEvent | IAdaptationChangeEvent | ILockedStreamEvent | IBitrateEstimationChangeEvent | INeedsMediaSourceReload | INeedsBufferFlushEvent | INeedsDecipherabilityFlush | IRepresentationChangeEvent | IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
437
+ export type IStreamOrchestratorEvent = IActivePeriodChangedEvent | IEndOfStreamEvent | IResumeStreamEvent | IPeriodStreamClearedEvent | ICompletedStreamEvent | IPeriodStreamReadyEvent | IAdaptationChangeEvent | ILockedStreamEvent | IBitrateEstimationChangeEvent | INeedsMediaSourceReload | INeedsBufferFlushEvent | INeedsDecipherabilityFlush | IRepresentationChangeEvent | IStreamStatusEvent | IStreamEventAddedSegment<unknown> | IEncryptionDataEncounteredEvent | IStreamManifestMightBeOutOfSync | IStreamNeedsManifestRefresh | IStreamWarningEvent | IInbandEventsEvent;
@@ -1088,5 +1088,5 @@ declare const DEFAULT_CONFIG: {
1088
1088
  */
1089
1089
  UPTO_CURRENT_POSITION_CLEANUP: number;
1090
1090
  };
1091
- export declare type IDefaultConfig = typeof DEFAULT_CONFIG;
1091
+ export type IDefaultConfig = typeof DEFAULT_CONFIG;
1092
1092
  export default DEFAULT_CONFIG;
@@ -13,13 +13,13 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare type IErrorType = "NETWORK_ERROR" | "MEDIA_ERROR" | "ENCRYPTED_MEDIA_ERROR" | "OTHER_ERROR";
17
- export declare type IEncryptedMediaErrorCode = "INCOMPATIBLE_KEYSYSTEMS" | "INVALID_ENCRYPTED_EVENT" | "INVALID_KEY_SYSTEM" | "KEY_ERROR" | "KEY_GENERATE_REQUEST_ERROR" | "KEY_LOAD_ERROR" | "KEY_LOAD_TIMEOUT" | "KEY_STATUS_CHANGE_ERROR" | "KEY_UPDATE_ERROR" | "CREATE_MEDIA_KEYS_ERROR" | "LICENSE_SERVER_CERTIFICATE_ERROR" | "MEDIA_IS_ENCRYPTED_ERROR" | "MULTIPLE_SESSIONS_SAME_INIT_DATA";
18
- export declare type IMediaErrorCode = "BUFFER_APPEND_ERROR" | "BUFFER_FULL_ERROR" | "BUFFER_TYPE_UNKNOWN" | "MANIFEST_INCOMPATIBLE_CODECS_ERROR" | "MANIFEST_PARSE_ERROR" | "MANIFEST_UPDATE_ERROR" | "MANIFEST_UNSUPPORTED_ADAPTATION_TYPE" | "MEDIA_ERR_ABORTED" | "MEDIA_ERR_BLOCKED_AUTOPLAY" | "MEDIA_ERR_PLAY_NOT_ALLOWED" | "MEDIA_ERR_NOT_LOADED_METADATA" | "MEDIA_ERR_DECODE" | "MEDIA_ERR_NETWORK" | "MEDIA_ERR_SRC_NOT_SUPPORTED" | "MEDIA_ERR_UNKNOWN" | "MEDIA_KEYS_NOT_SUPPORTED" | "MEDIA_SOURCE_NOT_SUPPORTED" | "MEDIA_STARTING_TIME_NOT_FOUND" | "MEDIA_TIME_BEFORE_MANIFEST" | "MEDIA_TIME_AFTER_MANIFEST" | "MEDIA_TIME_NOT_FOUND" | "NO_PLAYABLE_REPRESENTATION" | "DISCONTINUITY_ENCOUNTERED";
19
- export declare type INetworkErrorCode = "PIPELINE_LOAD_ERROR";
20
- export declare type IOtherErrorCode = "PIPELINE_LOAD_ERROR" | "PIPELINE_PARSE_ERROR" | "INTEGRITY_ERROR" | "NONE";
21
- export declare type IErrorCode = INetworkErrorCode | IMediaErrorCode | IEncryptedMediaErrorCode | IOtherErrorCode;
22
- export declare type INetworkErrorType = "TIMEOUT" | "ERROR_EVENT" | "PARSE_ERROR" | "ERROR_HTTP_CODE";
16
+ export type IErrorType = "NETWORK_ERROR" | "MEDIA_ERROR" | "ENCRYPTED_MEDIA_ERROR" | "OTHER_ERROR";
17
+ export type IEncryptedMediaErrorCode = "INCOMPATIBLE_KEYSYSTEMS" | "INVALID_ENCRYPTED_EVENT" | "INVALID_KEY_SYSTEM" | "KEY_ERROR" | "KEY_GENERATE_REQUEST_ERROR" | "KEY_LOAD_ERROR" | "KEY_LOAD_TIMEOUT" | "KEY_STATUS_CHANGE_ERROR" | "KEY_UPDATE_ERROR" | "CREATE_MEDIA_KEYS_ERROR" | "LICENSE_SERVER_CERTIFICATE_ERROR" | "MEDIA_IS_ENCRYPTED_ERROR" | "MULTIPLE_SESSIONS_SAME_INIT_DATA";
18
+ export type IMediaErrorCode = "BUFFER_APPEND_ERROR" | "BUFFER_FULL_ERROR" | "BUFFER_TYPE_UNKNOWN" | "MANIFEST_INCOMPATIBLE_CODECS_ERROR" | "MANIFEST_PARSE_ERROR" | "MANIFEST_UPDATE_ERROR" | "MANIFEST_UNSUPPORTED_ADAPTATION_TYPE" | "MEDIA_ERR_ABORTED" | "MEDIA_ERR_BLOCKED_AUTOPLAY" | "MEDIA_ERR_PLAY_NOT_ALLOWED" | "MEDIA_ERR_NOT_LOADED_METADATA" | "MEDIA_ERR_DECODE" | "MEDIA_ERR_NETWORK" | "MEDIA_ERR_SRC_NOT_SUPPORTED" | "MEDIA_ERR_UNKNOWN" | "MEDIA_KEYS_NOT_SUPPORTED" | "MEDIA_SOURCE_NOT_SUPPORTED" | "MEDIA_STARTING_TIME_NOT_FOUND" | "MEDIA_TIME_BEFORE_MANIFEST" | "MEDIA_TIME_AFTER_MANIFEST" | "MEDIA_TIME_NOT_FOUND" | "NO_PLAYABLE_REPRESENTATION" | "DISCONTINUITY_ENCOUNTERED";
19
+ export type INetworkErrorCode = "PIPELINE_LOAD_ERROR";
20
+ export type IOtherErrorCode = "PIPELINE_LOAD_ERROR" | "PIPELINE_PARSE_ERROR" | "INTEGRITY_ERROR" | "NONE";
21
+ export type IErrorCode = INetworkErrorCode | IMediaErrorCode | IEncryptedMediaErrorCode | IOtherErrorCode;
22
+ export type INetworkErrorType = "TIMEOUT" | "ERROR_EVENT" | "PARSE_ERROR" | "ERROR_HTTP_CODE";
23
23
  declare const ErrorTypes: {
24
24
  readonly NETWORK_ERROR: "NETWORK_ERROR";
25
25
  readonly MEDIA_ERROR: "MEDIA_ERROR";
@@ -26,16 +26,16 @@
26
26
  * @returns {Observable}
27
27
  */
28
28
  export default function removeBufferAroundTime(videoElement, sourceBuffer, time, margin, cancelSignal) {
29
- if (margin === void 0) { margin = 10 * 60; }
29
+ var removalMargin = margin !== null && margin !== void 0 ? margin : 10 * 60;
30
30
  if (videoElement.buffered.length === 0) {
31
31
  return Promise.resolve();
32
32
  }
33
33
  var bufferRemovals = [];
34
- if ((time - margin) > 0) {
35
- bufferRemovals.push(sourceBuffer.removeBuffer(0, time - margin, cancelSignal));
34
+ if ((time - removalMargin) > 0) {
35
+ bufferRemovals.push(sourceBuffer.removeBuffer(0, time - removalMargin, cancelSignal));
36
36
  }
37
- if ((time + margin) < videoElement.duration) {
38
- bufferRemovals.push(sourceBuffer.removeBuffer(time + margin, videoElement.duration, cancelSignal));
37
+ if ((time + removalMargin) < videoElement.duration) {
38
+ bufferRemovals.push(sourceBuffer.removeBuffer(time + removalMargin, videoElement.duration, cancelSignal));
39
39
  }
40
40
  return Promise.all(bufferRemovals);
41
41
  }
@@ -21,5 +21,5 @@ export interface IContentInfo {
21
21
  adaptation: Adaptation;
22
22
  representation: Representation;
23
23
  }
24
- export declare type ILoaders = Partial<Record<string, ITransportPipelines>>;
25
- export declare type IThumbnailLoaderSegmentParser = ISegmentParser<Uint8Array | ArrayBuffer | null, Uint8Array | ArrayBuffer | null>;
24
+ export type ILoaders = Partial<Record<string, ITransportPipelines>>;
25
+ export type IThumbnailLoaderSegmentParser = ISegmentParser<Uint8Array | ArrayBuffer | null, Uint8Array | ArrayBuffer | null>;
@@ -28,7 +28,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
28
28
  function verb(n) { return function (v) { return step([n, v]); }; }
29
29
  function step(op) {
30
30
  if (f) throw new TypeError("Generator is already executing.");
31
- while (_) try {
31
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32
32
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
33
  if (y = 0, t) op = [op[0] & 2, t.value];
34
34
  switch (op[0]) {
@@ -16,7 +16,7 @@
16
16
  import { ICapabilitiesTypes } from "../capabilities";
17
17
  import { IResultsFromAPI } from "../probers";
18
18
  import { IMediaConfiguration, ProberStatus } from "../types";
19
- export declare type IBrowserAPIS = "isTypeSupported" | "isTypeSupportedWithFeatures" | "matchMedia" | "decodingInfos" | "requestMediaKeySystemAccess" | "getStatusForPolicy";
19
+ export type IBrowserAPIS = "isTypeSupported" | "isTypeSupportedWithFeatures" | "matchMedia" | "decodingInfos" | "requestMediaKeySystemAccess" | "getStatusForPolicy";
20
20
  export interface IProbedMediaConfiguration {
21
21
  globalStatus: ProberStatus;
22
22
  resultsFromAPIS: Array<{
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { IMediaConfiguration } from "./types";
17
- export declare type ICapabilitiesTypes = "decodingInfos" | "getStatusForPolicy" | "isTypeSupported" | "isTypeSupportedWithFeatures" | "matchMedia" | "requestMediaKeySystemAccess";
17
+ export type ICapabilitiesTypes = "decodingInfos" | "getStatusForPolicy" | "isTypeSupported" | "isTypeSupportedWithFeatures" | "matchMedia" | "requestMediaKeySystemAccess";
18
18
  /**
19
19
  * Get probed configuration.
20
20
  * @param {Object} config
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { IMediaConfiguration, ProberStatus } from "../types";
17
- export declare type IMediaKeyStatus = "usable" | "expired" | "released" | "output-restricted" | "output-downscaled" | "status-pending" | "internal-error";
17
+ export type IMediaKeyStatus = "usable" | "expired" | "released" | "output-restricted" | "output-downscaled" | "status-pending" | "internal-error";
18
18
  /**
19
19
  * @param {Object} config
20
20
  * @returns {Promise}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ICompatibleKeySystem, IMediaConfiguration, ProberStatus } from "../types";
17
- export declare type IResultsFromAPI = ICompatibleKeySystem;
17
+ export type IResultsFromAPI = ICompatibleKeySystem;
18
18
  declare const probers: {
19
19
  [id: string]: (config: IMediaConfiguration) => Promise<[ProberStatus, IResultsFromAPI?]>;
20
20
  };
@@ -18,7 +18,7 @@ export interface ITypeWithFeatures {
18
18
  keySystem: string;
19
19
  features: string | null;
20
20
  }
21
- export declare type ISupportWithFeatures = "" | "Maybe" | "Not Supported" | "Probably";
21
+ export type ISupportWithFeatures = "" | "Maybe" | "Not Supported" | "Probably";
22
22
  /**
23
23
  * @param {Object} config
24
24
  * @returns {Promise}
@@ -63,7 +63,7 @@ export declare enum ProberStatus {
63
63
  Unknown = 1,
64
64
  Supported = 2
65
65
  }
66
- export declare type ICapabilities = Array<(string | {
66
+ export type ICapabilities = Array<(string | {
67
67
  [key: string]: ICapabilities;
68
68
  })>;
69
69
  export {};
@@ -22,11 +22,11 @@ import { IDashParserResponse, IMPDParserArguments } from "../parsers/manifest/da
22
22
  import DashWasmParser from "../parsers/manifest/dash/wasm-parser";
23
23
  import { IHTMLTextTracksParserFn, INativeTextTracksParserFn } from "../parsers/texttracks";
24
24
  import { ITransportFunction } from "../transports";
25
- export declare type IDirectFileInit = (args: IDirectFileOptions) => Observable<IDirectfileEvent>;
26
- export declare type IContentDecryptorClass = typeof ContentDecryptor;
27
- export declare type IHTMLTextTracksBuffer = new (mediaElement: HTMLMediaElement, textTrackElement: HTMLElement) => SegmentBuffer;
28
- export declare type INativeTextTracksBuffer = new (mediaElement: HTMLMediaElement, hideNativeSubtitle: boolean) => SegmentBuffer;
29
- export declare type IMediaElementTrackChoiceManager = typeof MediaElementTrackChoiceManager;
25
+ export type IDirectFileInit = (args: IDirectFileOptions) => Observable<IDirectfileEvent>;
26
+ export type IContentDecryptorClass = typeof ContentDecryptor;
27
+ export type IHTMLTextTracksBuffer = new (mediaElement: HTMLMediaElement, textTrackElement: HTMLElement) => SegmentBuffer;
28
+ export type INativeTextTracksBuffer = new (mediaElement: HTMLMediaElement, hideNativeSubtitle: boolean) => SegmentBuffer;
29
+ export type IMediaElementTrackChoiceManager = typeof MediaElementTrackChoiceManager;
30
30
  interface IBifThumbnail {
31
31
  index: number;
32
32
  duration: number;
@@ -45,9 +45,9 @@ interface IBifObject {
45
45
  isVod: boolean;
46
46
  thumbs: IBifThumbnail[];
47
47
  }
48
- export declare type IImageBuffer = new () => SegmentBuffer;
49
- export declare type IImageParser = ((buffer: Uint8Array) => IBifObject);
50
- export declare type IDashJsParser = (document: Document, args: IMPDParserArguments) => IDashParserResponse<string>;
48
+ export type IImageBuffer = new () => SegmentBuffer;
49
+ export type IImageParser = ((buffer: Uint8Array) => IBifObject);
50
+ export type IDashJsParser = (document: Document, args: IMPDParserArguments) => IDashParserResponse<string>;
51
51
  export interface IFeaturesObject {
52
52
  directfile: {
53
53
  initDirectFile: IDirectFileInit;
@@ -69,6 +69,6 @@ export interface IFeaturesObject {
69
69
  export interface IFeatureObject {
70
70
  _addFeature(features: IFeaturesObject): void;
71
71
  }
72
- export declare type IFeatureFunction = (features: IFeaturesObject) => void;
73
- export declare type IFeature = IFeatureObject | IFeatureFunction;
72
+ export type IFeatureFunction = (features: IFeaturesObject) => void;
73
+ export type IFeature = IFeatureObject | IFeatureFunction;
74
74
  export {};
@@ -3,7 +3,7 @@ import { IPlayerError, IRepresentationFilter } from "../public_types";
3
3
  import Adaptation from "./adaptation";
4
4
  import { IAdaptationType } from "./types";
5
5
  /** Structure listing every `Adaptation` in a Period. */
6
- export declare type IManifestAdaptations = Partial<Record<IAdaptationType, Adaptation[]>>;
6
+ export type IManifestAdaptations = Partial<Record<IAdaptationType, Adaptation[]>>;
7
7
  /**
8
8
  * Class representing the tracks and qualities available from a given time
9
9
  * period in the the Manifest.
@@ -28,4 +28,4 @@ export declare enum MANIFEST_UPDATE_TYPE {
28
28
  Partial = 1
29
29
  }
30
30
  /** Every possible value for the Adaptation's `type` property. */
31
- export declare type IAdaptationType = "video" | "audio" | "text" | "image";
31
+ export type IAdaptationType = "video" | "audio" | "text" | "image";
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { IRepresentationIntermediateRepresentation } from "../node_parser_types";
17
17
  /** Different "type" a parsed Adaptation can be. */
18
- declare type IAdaptationType = "audio" | "video" | "text" | "image";
18
+ type IAdaptationType = "audio" | "video" | "text" | "image";
19
19
  /** Structure of a parsed "scheme-like" element in the MPD. */
20
20
  interface IScheme {
21
21
  schemeIdUri?: string | undefined;
@@ -45,5 +45,5 @@ export interface IAdaptationSetContext extends IInheritedRepresentationContext {
45
45
  * Supplementary context needed to parse a Representation common with
46
46
  * `IRepresentationContext`.
47
47
  */
48
- declare type IInheritedRepresentationContext = Omit<IRepresentationContext, "unsafelyBaseOnPreviousAdaptation" | "parentSegmentTemplates">;
48
+ type IInheritedRepresentationContext = Omit<IRepresentationContext, "unsafelyBaseOnPreviousAdaptation" | "parentSegmentTemplates">;
49
49
  export {};
@@ -85,7 +85,7 @@ export interface IIrParserResponseDone {
85
85
  warnings: Error[];
86
86
  };
87
87
  }
88
- export declare type IIrParserResponse = IIrParserResponseNeedsClock | IIrParserResponseNeedsXlinks | IIrParserResponseDone;
88
+ export type IIrParserResponse = IIrParserResponseNeedsClock | IIrParserResponseNeedsXlinks | IIrParserResponseDone;
89
89
  /**
90
90
  * Checks if xlinks needs to be loaded before actually parsing the manifest.
91
91
  * @param {Object} mpdIR
@@ -18,7 +18,7 @@ import { IParsedPeriod } from "../../types";
18
18
  import { IPeriodIntermediateRepresentation } from "../node_parser_types";
19
19
  import { IAdaptationSetContext } from "./parse_adaptation_sets";
20
20
  /** Information about each linked Xlink. */
21
- export declare type IXLinkInfos = WeakMap<IPeriodIntermediateRepresentation, {
21
+ export type IXLinkInfos = WeakMap<IPeriodIntermediateRepresentation, {
22
22
  /** Real URL (post-redirection) used to download this xlink. */
23
23
  url?: string | undefined;
24
24
  /** Time at which the request was sent (since the time origin), in ms. */
@@ -59,5 +59,5 @@ export interface IPeriodContext extends IInheritedAdaptationContext {
59
59
  value: string;
60
60
  }> | undefined;
61
61
  }
62
- declare type IInheritedAdaptationContext = Omit<IAdaptationSetContext, "availabilityTimeComplete" | "availabilityTimeOffset" | "duration" | "isLastPeriod" | "manifestBoundsCalculator" | "start" | "unsafelyBaseOnPreviousPeriod">;
62
+ type IInheritedAdaptationContext = Omit<IAdaptationSetContext, "availabilityTimeComplete" | "availabilityTimeOffset" | "duration" | "isLastPeriod" | "manifestBoundsCalculator" | "start" | "unsafelyBaseOnPreviousPeriod">;
63
63
  export {};
@@ -42,5 +42,5 @@ export interface IRepresentationContext extends IInheritedRepresentationIndexCon
42
42
  * Supplementary context needed to parse a Representation common with
43
43
  * `IRepresentationIndexContext`.
44
44
  */
45
- declare type IInheritedRepresentationIndexContext = Omit<IRepresentationIndexContext, "adaptation" | "unsafelyBaseOnPreviousRepresentation" | "inbandEventStreams">;
45
+ type IInheritedRepresentationIndexContext = Omit<IRepresentationIndexContext, "adaptation" | "unsafelyBaseOnPreviousRepresentation" | "inbandEventStreams">;
46
46
  export {};
@@ -386,4 +386,4 @@ export interface IEventStreamEventIntermediateRepresentation {
386
386
  */
387
387
  eventStreamData?: Element | ArrayBuffer;
388
388
  }
389
- export declare type ITimelineParser = () => HTMLCollection;
389
+ export type ITimelineParser = () => HTMLCollection;
@@ -16,7 +16,7 @@
16
16
  import { IParsedManifest } from "../types";
17
17
  export { IMPDParserArguments } from "./common";
18
18
  /** Response returned by a DASH MPD parser. */
19
- export declare type IDashParserResponse<T extends string | ArrayBuffer> = IDashParserNeedsResources<T> | IDashParserResponseDone;
19
+ export type IDashParserResponse<T extends string | ArrayBuffer> = IDashParserNeedsResources<T> | IDashParserResponseDone;
20
20
  /** Response when the MPD parser has been able to parse the whole MPD. */
21
21
  export interface IDashParserResponseDone {
22
22
  /** Identify this type of response. */
@@ -50,7 +50,7 @@ export interface IDashParserNeedsResources<T extends string | ArrayBuffer> {
50
50
  continue: (loadedResources: Array<ILoadedResource<T>>) => IDashParserResponse<string> | IDashParserResponse<ArrayBuffer>;
51
51
  };
52
52
  }
53
- export declare type IResponseData<T> = {
53
+ export type IResponseData<T> = {
54
54
  success: true;
55
55
  data: T;
56
56
  } | {
@@ -28,7 +28,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
28
28
  function verb(n) { return function (v) { return step([n, v]); }; }
29
29
  function step(op) {
30
30
  if (f) throw new TypeError("Generator is already executing.");
31
- while (_) try {
31
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32
32
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
33
  if (y = 0, t) op = [op[0] & 2, t.value];
34
34
  switch (op[0]) {
@@ -23,10 +23,8 @@ import { parseString } from "../utils";
23
23
  export function generateBaseUrlAttrParser(baseUrlAttrs, linearMemory) {
24
24
  var textDecoder = new TextDecoder();
25
25
  return function onMPDAttribute(attr, ptr, len) {
26
- switch (attr) {
27
- case 64 /* AttributeName.Text */:
28
- baseUrlAttrs.value = parseString(textDecoder, linearMemory.buffer, ptr, len);
29
- break;
26
+ if (attr === 64 /* AttributeName.Text */) {
27
+ baseUrlAttrs.value = parseString(textDecoder, linearMemory.buffer, ptr, len);
30
28
  }
31
29
  };
32
30
  }
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /** Type of the function called when a Node opening is encountered. */
17
- export declare type IChildrenParser = (node: number) => void;
17
+ export type IChildrenParser = (node: number) => void;
18
18
  /** Type of the function called when an attribute is encountered. */
19
- export declare type IAttributeParser = (attr: number, ptr: number, len: number) => void;
19
+ export type IAttributeParser = (attr: number, ptr: number, len: number) => void;
20
20
  /**
21
21
  * Maintains a stack of children and attributes parsers, to easily parse
22
22
  * the very hierarchical MPDs.
@@ -36,7 +36,7 @@
36
36
  * Calls to `resolve` and to `reject` won't be considered after the returned
37
37
  * callback is called.
38
38
  */
39
- export declare type ILocalManifestInitSegmentLoader = (callbacks: {
39
+ export type ILocalManifestInitSegmentLoader = (callbacks: {
40
40
  resolve: (args: {
41
41
  data: ArrayBuffer | null;
42
42
  }) => void;
@@ -68,7 +68,7 @@ export declare type ILocalManifestInitSegmentLoader = (callbacks: {
68
68
  * Calls to `resolve` and to `reject` won't be considered after the returned
69
69
  * callback is called.
70
70
  */
71
- export declare type ILocalManifestSegmentLoader = (segment: ILocalIndexSegment, // Same than the segment from `segments`
71
+ export type ILocalManifestSegmentLoader = (segment: ILocalIndexSegment, // Same than the segment from `segments`
72
72
  callbacks: {
73
73
  resolve: (args: {
74
74
  data: ArrayBuffer;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import Manifest from "../../../manifest";
17
17
  import { IParsedManifest } from "../types";
18
- export declare type IParserResponse<T> = {
18
+ export type IParserResponse<T> = {
19
19
  type: "needs-manifest-loader";
20
20
  value: {
21
21
  ressources: Array<{
@@ -150,12 +150,12 @@ export interface IParsedRepresentation {
150
150
  hdrInfo?: IHDRInformation | undefined;
151
151
  }
152
152
  /** Every possible types an Adaptation can have. */
153
- export declare type IParsedAdaptationType = "audio" | "video" | "text" | "image";
153
+ export type IParsedAdaptationType = "audio" | "video" | "text" | "image";
154
154
  /**
155
155
  * Collection of multiple `Adaptation`, regrouped by type, as used by a
156
156
  * `Period`.
157
157
  */
158
- export declare type IParsedAdaptations = Partial<Record<IParsedAdaptationType, IParsedAdaptation[]>>;
158
+ export type IParsedAdaptations = Partial<Record<IParsedAdaptationType, IParsedAdaptation[]>>;
159
159
  /** Representation of a "track" available in any Period. */
160
160
  export interface IParsedAdaptation {
161
161
  /**
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare type IStyleList = Partial<Record<string, string>>;
16
+ export type IStyleList = Partial<Record<string, string>>;
17
17
  export interface IStyleObject {
18
18
  id: string;
19
19
  style: IStyleList;
@@ -19,5 +19,5 @@ export interface IHTMLCue {
19
19
  end: number;
20
20
  element: HTMLElement;
21
21
  }
22
- export declare type INativeTextTracksParserFn = (texttrack: string, timeOffset: number, language?: string) => Array<ICompatVTTCue | TextTrackCue>;
23
- export declare type IHTMLTextTracksParserFn = (texttrack: string, timeOffset: number, language?: string) => IHTMLCue[];
22
+ export type INativeTextTracksParserFn = (texttrack: string, timeOffset: number, language?: string) => Array<ICompatVTTCue | TextTrackCue>;
23
+ export type IHTMLTextTracksParserFn = (texttrack: string, timeOffset: number, language?: string) => IHTMLCue[];