Files
mediabunny/src/demuxer.ts
T

25 lines
682 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 { MediaMetadata } from './metadata';
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 getMetadata(): Promise<MediaMetadata>;
}