Add negative timestamp muxing support to Matroska

This commit is contained in:
Vanilagy
2026-09-04 12:17:33 +02:00
parent 3c94d062d2
commit 9726b0cb4e
4 changed files with 109 additions and 11 deletions
+2 -2
View File
@@ -47,7 +47,7 @@
format = new Mediabunny.MkvOutputFormat();
format = new Mediabunny.MovOutputFormat();
format = new Mediabunny.Mp4OutputFormat({ fastStart: 'reserve' });
format = new Mediabunny.Mp4OutputFormat({ });
format = new Mediabunny.MkvOutputFormat({ });
let target = new Mediabunny.BufferTarget();
/*
@@ -197,7 +197,7 @@ Testing... <00:17.350>One... <00:18.125>Two...
const p = document.createElement('p');
document.body.append(p);
for (let i = 0; i < 1; i++) {
for (let i = 0; i < 100; i++) {
context.fillStyle = ['red', 'green', 'blue', 'yellow'][i % 4];
context.fillRect(canvas.width * Math.random(), canvas.height * Math.random(), canvas.width * Math.random(), canvas.height * Math.random());