Files
mediabunny/src/demuxer.ts
T
2025-09-05 18:59:13 +02:00

25 lines
680 B
TypeScript

/*!
* Copyright (c) 2025-present, Vanilagy and contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { Input } from './input';
import { InputTrack } from './input-track';
import { MetadataTags } from './tags';
export abstract class Demuxer {
input: Input;
constructor(input: Input) {
this.input = input;
}
abstract computeDuration(): Promise<number>;
abstract getTracks(): Promise<InputTrack[]>;
abstract getMimeType(): Promise<string>;
abstract getMetadataTags(): Promise<MetadataTags>;
}