mediabunny 1.52.0 → 1.52.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/mediabunny.cjs +5 -2
- package/dist/bundles/mediabunny.min.cjs +3 -3
- package/dist/bundles/mediabunny.min.mjs +4 -4
- package/dist/bundles/mediabunny.mjs +5 -2
- package/dist/bundles/mediabunny.node.cjs +5 -2
- package/dist/modules/src/isobmff/isobmff-boxes.d.ts.map +1 -1
- package/dist/modules/src/isobmff/isobmff-boxes.js +2 -1
- package/dist/modules/src/media-sink.js +1 -1
- package/dist/modules/src/sample.d.ts.map +1 -1
- package/dist/modules/src/sample.js +1 -0
- package/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/isobmff/isobmff-boxes.ts +2 -1
- package/src/media-sink.ts +1 -1
- package/src/sample.ts +2 -0
|
@@ -20265,6 +20265,7 @@ var Mediabunny = (() => {
|
|
|
20265
20265
|
"The '2d' canvas context is required to transform VideoSamples. Register a custom transformer using registerVideoSampleTransformer to work around this limitation."
|
|
20266
20266
|
);
|
|
20267
20267
|
}
|
|
20268
|
+
context.imageSmoothingQuality = "high";
|
|
20268
20269
|
if (description.alpha === "discard") {
|
|
20269
20270
|
context.fillStyle = "black";
|
|
20270
20271
|
context.fillRect(0, 0, description.width, description.height);
|
|
@@ -23520,7 +23521,7 @@ var Mediabunny = (() => {
|
|
|
23520
23521
|
// Firefox has VideoFrame glitches with opaque canvases
|
|
23521
23522
|
});
|
|
23522
23523
|
assert(context);
|
|
23523
|
-
context.
|
|
23524
|
+
context.imageSmoothingQuality = "high";
|
|
23524
23525
|
if (!canvasIsNew) {
|
|
23525
23526
|
if (!this._alpha && isFirefox()) {
|
|
23526
23527
|
context.fillStyle = "black";
|
|
@@ -27400,8 +27401,10 @@ var Mediabunny = (() => {
|
|
|
27400
27401
|
u16(1),
|
|
27401
27402
|
// Frame count
|
|
27402
27403
|
// Compressor name
|
|
27404
|
+
u8("Mediabunny".length),
|
|
27405
|
+
// Weird Pascal-style string
|
|
27403
27406
|
ascii("Mediabunny"),
|
|
27404
|
-
Array(
|
|
27407
|
+
Array(31 - "Mediabunny".length).fill(0),
|
|
27405
27408
|
u16(trackData.info.hasAlphaChannel ? 32 : 24),
|
|
27406
27409
|
// Depth
|
|
27407
27410
|
i16(65535)
|