Add subtitle tracks and implement subtitle tracks for Matroska muxer

This commit is contained in:
David Payr
2024-11-16 17:23:24 +01:00
parent fd1f7e5316
commit 39aea03565
12 changed files with 1653 additions and 1150 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
import { Output } from "./output";
import { ArrayBufferTargetWriter, ChunkedStreamTargetWriter, FileSystemWritableFileStreamTargetWriter, StreamTargetWriter, Writer } from "./writer";
const isTarget = Symbol('isTarget');
export abstract class Target {
// If we didn't add this symbol, then {} would be assignable to Target
[isTarget]!: true;
output: Output | null = null;
abstract createWriter(): Writer;
}