Add WebVTT subtitle support to MP4 & a bunch of misc changes

This commit is contained in:
Vanilagy
2024-11-24 14:57:31 +01:00
parent 39aea03565
commit 29ecccb26a
15 changed files with 2355 additions and 1557 deletions
+4
View File
@@ -67,6 +67,10 @@ export class ArrayBufferTargetWriter extends Writer {
this.#ensureSize(this.#pos);
this.#target.buffer = this.#buffer.slice(0, Math.max(this.#maxPos, this.#pos));
}
getSlice(start: number, end: number) {
return this.#bytes.slice(start, end);
}
}
/**