init commit

This commit is contained in:
Carlos
2026-02-21 10:33:18 +01:00
parent c863a943ed
commit 9d955bf338
9512 changed files with 2015317 additions and 1305 deletions

View File

@@ -0,0 +1,29 @@
import type { SeekingHints } from '../seeking-hints';
import type { SeekResolution } from '../work-on-seek-request';
import { MediaParserEmitter } from './emitter';
import type { PauseSignal } from './pause-signal';
import type { PerformedSeeksSignal } from './performed-seeks-stats';
import type { SeekSignal } from './seek-signal';
export type MediaParserController = {
abort: (reason?: any) => void;
pause: PauseSignal['pause'];
resume: PauseSignal['resume'];
seek: SeekSignal['seek'];
simulateSeek: (seekInSeconds: number) => Promise<SeekResolution>;
addEventListener: MediaParserEmitter['addEventListener'];
removeEventListener: MediaParserEmitter['removeEventListener'];
getSeekingHints: () => Promise<SeekingHints | null>;
/**
* @deprecated Not public API
*/
_internals: {
signal: AbortSignal;
checkForAbortAndPause: () => Promise<void>;
seekSignal: SeekSignal;
markAsReadyToEmitEvents: () => void;
performedSeeksSignal: PerformedSeeksSignal;
attachSeekingHintResolution: (callback: () => Promise<SeekingHints | null>) => void;
attachSimulateSeekResolution: (callback: (seekInSeconds: number) => Promise<SeekResolution>) => void;
};
};
export declare const mediaParserController: () => MediaParserController;