mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
25 lines
680 B
TypeScript
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>;
|
|
}
|