mediabunny 1.53.0 → 1.53.1
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 +8 -1
- package/dist/bundles/mediabunny.min.cjs +7 -7
- package/dist/bundles/mediabunny.min.mjs +8 -8
- package/dist/bundles/mediabunny.mjs +8 -1
- package/dist/bundles/mediabunny.node.cjs +8 -1
- package/dist/modules/src/target.d.ts.map +1 -1
- package/dist/modules/src/target.js +11 -2
- package/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/target.ts +12 -2
|
@@ -29209,9 +29209,16 @@ var Mediabunny = (() => {
|
|
|
29209
29209
|
if (this._monotonicity === true && position !== this._lastFlushEnd) {
|
|
29210
29210
|
throw new Error("Internal error: Monotonicity violation.");
|
|
29211
29211
|
}
|
|
29212
|
+
const isPartialView = section.start !== 0 || section.end !== chunk.data.byteLength;
|
|
29213
|
+
let data;
|
|
29214
|
+
if (isPartialView && isWebKit()) {
|
|
29215
|
+
data = chunk.data.slice(section.start, section.end);
|
|
29216
|
+
} else {
|
|
29217
|
+
data = chunk.data.subarray(section.start, section.end);
|
|
29218
|
+
}
|
|
29212
29219
|
void this._streamWriter.write({
|
|
29213
29220
|
type: "write",
|
|
29214
|
-
data
|
|
29221
|
+
data,
|
|
29215
29222
|
position
|
|
29216
29223
|
}).catch((error) => {
|
|
29217
29224
|
this._writeError ??= error;
|