mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 05:43:50 +02:00
Add WebVTT subtitle support to MP4 & a bunch of misc changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user