mediabunny 1.4.0 → 1.4.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 +4 -0
- package/dist/bundles/mediabunny.min.cjs +1 -1
- package/dist/bundles/mediabunny.min.mjs +1 -1
- package/dist/bundles/mediabunny.mjs +4 -0
- package/dist/modules/matroska/matroska-demuxer.d.ts.map +1 -1
- package/dist/modules/matroska/matroska-demuxer.js +6 -0
- package/package.json +1 -1
- package/src/matroska/matroska-demuxer.ts +7 -0
|
@@ -14315,6 +14315,10 @@ ${cue.notes ?? ""}`;
|
|
|
14315
14315
|
await this.metadataReader.reader.loadRange(this.metadataReader.pos, this.metadataReader.pos + size);
|
|
14316
14316
|
this.readContiguousElements(this.metadataReader, size);
|
|
14317
14317
|
}
|
|
14318
|
+
if (this.currentSegment.timestampScale === -1) {
|
|
14319
|
+
this.currentSegment.timestampScale = 1e6;
|
|
14320
|
+
this.currentSegment.timestampFactor = 1e9 / 1e6;
|
|
14321
|
+
}
|
|
14318
14322
|
this.currentSegment.tracks.sort((a, b) => Number(b.isDefault) - Number(a.isDefault));
|
|
14319
14323
|
this.currentSegment.cuePoints.sort((a, b) => a.clusterPosition - b.clusterPosition);
|
|
14320
14324
|
const allTrackIds = this.currentSegment.tracks.map((x) => x.id);
|