mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
Rewrite reader logic, add separate reader for caching MP4 chunks, add more advanced drain iterators
This commit is contained in:
+5
-2
@@ -10,10 +10,12 @@ export type InputOptions = {
|
||||
};
|
||||
|
||||
export class Input {
|
||||
/** @internal */
|
||||
_source: Source;
|
||||
/** @internal */
|
||||
_formats: InputFormat[];
|
||||
/** @internal */
|
||||
_reader: Reader;
|
||||
_mainReader: Reader;
|
||||
/** @internal */
|
||||
_demuxerPromise: Promise<Demuxer> | null = null;
|
||||
/** @internal */
|
||||
@@ -21,7 +23,8 @@ export class Input {
|
||||
|
||||
constructor(options: InputOptions) {
|
||||
this._formats = options.formats;
|
||||
this._reader = new Reader(options.source);
|
||||
this._source = options.source;
|
||||
this._mainReader = new Reader(options.source);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
Reference in New Issue
Block a user