Skip to content

Commit 8d13c1c

Browse files
committed
media section state
1 parent 17de1c7 commit 8d13c1c

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

packages/media-parser/src/state/iso-base-media/iso-state.ts

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type {PrefetchCache} from '../../fetch';
33
import type {LogLevel} from '../../log';
44
import type {ParseMediaSrc} from '../../options';
55
import type {ReaderInterface} from '../../readers/reader';
6-
import type {MediaSectionState} from '../video-section';
76
import {cachedSamplePositionsState} from './cached-sample-positions';
87
import {lazyMfraLoad} from './lazy-mfra-load';
98
import {moovState} from './moov-box';
@@ -17,15 +16,13 @@ export const isoBaseMediaState = ({
1716
src,
1817
logLevel,
1918
prefetchCache,
20-
mediaSectionState,
2119
}: {
2220
contentLength: number;
2321
controller: MediaParserController;
2422
readerInterface: ReaderInterface;
2523
src: ParseMediaSrc;
2624
logLevel: LogLevel;
2725
prefetchCache: PrefetchCache;
28-
mediaSectionState: MediaSectionState;
2926
}) => {
3027
return {
3128
flatSamples: cachedSamplePositionsState(),
@@ -37,7 +34,6 @@ export const isoBaseMediaState = ({
3734
src,
3835
logLevel,
3936
prefetchCache,
40-
mediaSectionState,
4137
}),
4238
moof: precomputedMoofState(),
4339
tfra: precomputedTfraState(),

packages/media-parser/src/state/iso-base-media/lazy-mfra-load.ts

-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {Log, type LogLevel} from '../../log';
66
import type {ParseMediaSrc} from '../../options';
77
import type {ReaderInterface} from '../../readers/reader';
88
import type {IsoBaseMediaSeekingHints} from '../../seeking-hints';
9-
import type {MediaSectionState} from '../video-section';
109

1110
export const lazyMfraLoad = ({
1211
contentLength,
@@ -15,15 +14,13 @@ export const lazyMfraLoad = ({
1514
src,
1615
logLevel,
1716
prefetchCache,
18-
mediaSectionState,
1917
}: {
2018
contentLength: number;
2119
controller: MediaParserController;
2220
readerInterface: ReaderInterface;
2321
src: ParseMediaSrc;
2422
logLevel: LogLevel;
2523
prefetchCache: PrefetchCache;
26-
mediaSectionState: MediaSectionState;
2724
}) => {
2825
let prom: Promise<IsoBaseMediaBox[] | null> | null = null;
2926
let result: IsoBaseMediaBox[] | null = null;

packages/media-parser/src/state/parser-state.ts

-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ export const makeParserState = ({
163163
src,
164164
logLevel,
165165
prefetchCache,
166-
mediaSectionState: mediaSection,
167166
}),
168167
mp3,
169168
aac: aacState(),

0 commit comments

Comments
 (0)