Add internalCodecId field

This commit is contained in:
Vanilagy
2025-08-23 16:24:36 +02:00
parent e6420caea4
commit 803e58a0d2
9 changed files with 49 additions and 1 deletions
+4
View File
@@ -1282,6 +1282,10 @@ abstract class MatroskaTrackBacking implements InputTrackBacking {
throw new Error('Not implemented on base class.');
}
getInternalCodecId() {
return this.internalTrack.codecId;
}
async computeDuration() {
const lastPacket = await this.getPacket(Infinity, { metadataOnly: true });
return (lastPacket?.timestamp ?? 0) + (lastPacket?.duration ?? 0);