mediabunny 1.7.4 → 1.7.6
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 +6 -3
- package/dist/bundles/mediabunny.min.cjs +3 -3
- package/dist/bundles/mediabunny.min.mjs +3 -3
- package/dist/bundles/mediabunny.mjs +6 -3
- package/dist/modules/src/conversion.js +2 -2
- package/dist/modules/src/source.d.ts.map +1 -1
- package/dist/modules/src/source.js +6 -1
- package/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/conversion.ts +2 -2
- package/src/source.ts +5 -1
|
@@ -12231,7 +12231,10 @@ ${cue.notes ?? ""}`;
|
|
|
12231
12231
|
}
|
|
12232
12232
|
} else if (rangeResponse.status === 200) {
|
|
12233
12233
|
this._fullData = await rangeResponse.arrayBuffer();
|
|
12234
|
-
|
|
12234
|
+
if (this._fullData.byteLength !== 1) {
|
|
12235
|
+
return this._fullData.byteLength;
|
|
12236
|
+
} else {
|
|
12237
|
+
}
|
|
12235
12238
|
}
|
|
12236
12239
|
const { response } = await this._makeRequest();
|
|
12237
12240
|
return response.byteLength;
|
|
@@ -17344,7 +17347,7 @@ ${cue.notes ?? ""}`;
|
|
|
17344
17347
|
return;
|
|
17345
17348
|
}
|
|
17346
17349
|
let adjustedSampleTimestamp = Math.max(timestamp - this._startTimestamp, 0);
|
|
17347
|
-
lastCanvasEndTimestamp =
|
|
17350
|
+
lastCanvasEndTimestamp = adjustedSampleTimestamp + duration;
|
|
17348
17351
|
if (frameRate !== void 0) {
|
|
17349
17352
|
const alignedTimestamp = Math.floor(adjustedSampleTimestamp * frameRate) / frameRate;
|
|
17350
17353
|
if (lastCanvas !== null) {
|
|
@@ -17406,7 +17409,7 @@ ${cue.notes ?? ""}`;
|
|
|
17406
17409
|
return;
|
|
17407
17410
|
}
|
|
17408
17411
|
let adjustedSampleTimestamp = Math.max(sample.timestamp - this._startTimestamp, 0);
|
|
17409
|
-
lastSampleEndTimestamp =
|
|
17412
|
+
lastSampleEndTimestamp = adjustedSampleTimestamp + sample.duration;
|
|
17410
17413
|
if (frameRate !== void 0) {
|
|
17411
17414
|
const alignedTimestamp = Math.floor(adjustedSampleTimestamp * frameRate) / frameRate;
|
|
17412
17415
|
if (lastSample !== null) {
|