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.
@@ -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: chunk.data.subarray(section.start, section.end),
29221
+ data,
29215
29222
  position
29216
29223
  }).catch((error) => {
29217
29224
  this._writeError ??= error;