From 6c8ccdd105fb1d82e96b9d421ca26878c4e1a739 Mon Sep 17 00:00:00 2001 From: Florent Bouisset Date: Tue, 5 Nov 2024 11:30:51 +0100 Subject: [PATCH] fix typescript import --- src/core/adaptive/network_analyzer.ts | 2 +- .../adaptation/get_representations_switch_strategy.ts | 6 ++++-- .../stream/representation/utils/append_segment_to_buffer.ts | 6 ++++-- src/core/stream/representation/utils/get_buffer_status.ts | 6 ++++-- src/core/stream/representation/utils/push_init_segment.ts | 6 ++++-- src/core/stream/representation/utils/push_media_segment.ts | 6 ++++-- 6 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/core/adaptive/network_analyzer.ts b/src/core/adaptive/network_analyzer.ts index 953d70129f..125357c84b 100644 --- a/src/core/adaptive/network_analyzer.ts +++ b/src/core/adaptive/network_analyzer.ts @@ -17,10 +17,10 @@ import config from "../../config"; import log from "../../log"; import type { IRepresentation } from "../../manifest"; +import type { IAdaptationStreamPlaybackObservation } from "../../playback_observer"; import arrayFind from "../../utils/array_find"; import isNullOrUndefined from "../../utils/is_null_or_undefined"; import getMonotonicTimeStamp from "../../utils/monotonic_timestamp"; -import type { IAdaptationStreamPlaybackObservation } from "../stream/adaptation"; import type BandwidthEstimator from "./utils/bandwidth_estimator"; import EWMA from "./utils/ewma"; import type { diff --git a/src/core/stream/adaptation/get_representations_switch_strategy.ts b/src/core/stream/adaptation/get_representations_switch_strategy.ts index 5f900bb2a8..4337b462a6 100644 --- a/src/core/stream/adaptation/get_representations_switch_strategy.ts +++ b/src/core/stream/adaptation/get_representations_switch_strategy.ts @@ -16,7 +16,10 @@ import config from "../../../config"; import type { IAdaptation, IPeriod } from "../../../manifest"; -import type { IReadOnlyPlaybackObserver } from "../../../playback_observer"; +import type { + IReadOnlyPlaybackObserver, + IAdaptationStreamPlaybackObservation, +} from "../../../playback_observer"; import arrayIncludes from "../../../utils/array_includes"; import type { IRange } from "../../../utils/ranges"; import { excludeFromRanges, insertInto } from "../../../utils/ranges"; @@ -27,7 +30,6 @@ import { SegmentSinkOperation, } from "../../segment_sinks"; import type { IRepresentationsChoice } from "../representation"; -import type { IAdaptationStreamPlaybackObservation } from "./types"; export default function getRepresentationsSwitchingStrategy( period: IPeriod, diff --git a/src/core/stream/representation/utils/append_segment_to_buffer.ts b/src/core/stream/representation/utils/append_segment_to_buffer.ts index 88124375bc..c1ed41a605 100644 --- a/src/core/stream/representation/utils/append_segment_to_buffer.ts +++ b/src/core/stream/representation/utils/append_segment_to_buffer.ts @@ -21,7 +21,10 @@ import { MediaError, SourceBufferError } from "../../../../errors"; import log from "../../../../log"; import { toTaggedTrack } from "../../../../manifest"; -import type { IReadOnlyPlaybackObserver } from "../../../../playback_observer"; +import type { + IReadOnlyPlaybackObserver, + IAdaptationStreamPlaybackObservation, +} from "../../../../playback_observer"; import type { IRange } from "../../../../utils/ranges"; import type { IReadOnlySharedReference } from "../../../../utils/reference"; import sleep from "../../../../utils/sleep"; @@ -32,7 +35,6 @@ import type { IPushChunkInfos, SegmentSink, } from "../../../segment_sinks"; -import type { IAdaptationStreamPlaybackObservation } from "../../adaptation"; /** * Append a segment to the given segmentSink. diff --git a/src/core/stream/representation/utils/get_buffer_status.ts b/src/core/stream/representation/utils/get_buffer_status.ts index d4a5438f0b..2d3bce886f 100644 --- a/src/core/stream/representation/utils/get_buffer_status.ts +++ b/src/core/stream/representation/utils/get_buffer_status.ts @@ -20,14 +20,16 @@ import type { IPeriod, IRepresentation, } from "../../../../manifest"; -import type { IReadOnlyPlaybackObserver } from "../../../../playback_observer"; +import type { + IReadOnlyPlaybackObserver, + IAdaptationStreamPlaybackObservation, +} from "../../../../playback_observer"; import isNullOrUndefined from "../../../../utils/is_null_or_undefined"; import type { ISignalCompleteSegmentOperation, SegmentSink, } from "../../../segment_sinks"; import SegmentSinksStore, { SegmentSinkOperation } from "../../../segment_sinks"; -import type { IAdaptationStreamPlaybackObservation } from "../../adaptation"; import type { IBufferDiscontinuity, IQueuedSegment } from "../types"; import checkForDiscontinuity from "./check_for_discontinuity"; import getNeededSegments from "./get_needed_segments"; diff --git a/src/core/stream/representation/utils/push_init_segment.ts b/src/core/stream/representation/utils/push_init_segment.ts index cb11f1b178..1f89ff6fa8 100644 --- a/src/core/stream/representation/utils/push_init_segment.ts +++ b/src/core/stream/representation/utils/push_init_segment.ts @@ -21,12 +21,14 @@ import type { IPeriod, IRepresentation, } from "../../../../manifest"; -import type { IReadOnlyPlaybackObserver } from "../../../../playback_observer"; +import type { + IReadOnlyPlaybackObserver, + IAdaptationStreamPlaybackObservation, +} from "../../../../playback_observer"; import objectAssign from "../../../../utils/object_assign"; import type { IReadOnlySharedReference } from "../../../../utils/reference"; import type { CancellationSignal } from "../../../../utils/task_canceller"; import type { IPushedChunkData, SegmentSink } from "../../../segment_sinks"; -import type { IAdaptationStreamPlaybackObservation } from "../../adaptation"; import type { IStreamEventAddedSegmentPayload } from "../types"; import appendSegmentToBuffer from "./append_segment_to_buffer"; diff --git a/src/core/stream/representation/utils/push_media_segment.ts b/src/core/stream/representation/utils/push_media_segment.ts index 42e6c166bd..b4f34e65d3 100644 --- a/src/core/stream/representation/utils/push_media_segment.ts +++ b/src/core/stream/representation/utils/push_media_segment.ts @@ -22,13 +22,15 @@ import type { IPeriod, IRepresentation, } from "../../../../manifest"; -import type { IReadOnlyPlaybackObserver } from "../../../../playback_observer"; +import type { + IReadOnlyPlaybackObserver, + IAdaptationStreamPlaybackObservation, +} from "../../../../playback_observer"; import type { ISegmentParserParsedMediaChunk } from "../../../../transports"; import objectAssign from "../../../../utils/object_assign"; import type { IReadOnlySharedReference } from "../../../../utils/reference"; import type { CancellationSignal } from "../../../../utils/task_canceller"; import type { SegmentSink } from "../../../segment_sinks"; -import type { IAdaptationStreamPlaybackObservation } from "../../adaptation"; import type { IStreamEventAddedSegmentPayload } from "../types"; import appendSegmentToBuffer from "./append_segment_to_buffer";