Skip to content

Commit

Permalink
fix typescript import
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent-Bouisset committed Nov 5, 2024
1 parent ebf2d46 commit 6c8ccdd
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/core/adaptive/network_analyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -32,7 +35,6 @@ import type {
IPushChunkInfos,
SegmentSink,
} from "../../../segment_sinks";
import type { IAdaptationStreamPlaybackObservation } from "../../adaptation";

/**
* Append a segment to the given segmentSink.
Expand Down
6 changes: 4 additions & 2 deletions src/core/stream/representation/utils/get_buffer_status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
6 changes: 4 additions & 2 deletions src/core/stream/representation/utils/push_init_segment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
6 changes: 4 additions & 2 deletions src/core/stream/representation/utils/push_media_segment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 6c8ccdd

Please sign in to comment.