hls.js 1.6.0-rc.2 → 1.6.0-rc.2.0.canary.11081
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/hls.js +22 -24
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +22 -24
- package/dist/hls.light.js.map +1 -1
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.min.js.map +1 -1
- package/dist/hls.light.mjs +22 -24
- package/dist/hls.light.mjs.map +1 -1
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +22 -24
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/mp4-tools.ts +13 -15
package/package.json
CHANGED
package/src/utils/mp4-tools.ts
CHANGED
@@ -275,22 +275,20 @@ export function parseInitSegment(initSegment: Uint8Array): InitData {
|
|
275
275
|
soun: ElementaryStreamTypes.AUDIO as const,
|
276
276
|
vide: ElementaryStreamTypes.VIDEO as const,
|
277
277
|
}[hdlrType];
|
278
|
+
// Parse codec details
|
279
|
+
const stsdBox = findBox(trak, ['mdia', 'minf', 'stbl', 'stsd'])[0];
|
280
|
+
const stsd = parseStsd(stsdBox);
|
278
281
|
if (type) {
|
279
|
-
//
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
timescale,
|
290
|
-
type: hdlrType as HdlrType,
|
291
|
-
stsd,
|
292
|
-
};
|
293
|
-
}
|
282
|
+
// Add 'audio', 'video', and 'audiovideo' track records that will map to SourceBuffers
|
283
|
+
result[trackId] = { timescale, type, stsd };
|
284
|
+
result[type] = { timescale, id: trackId, ...stsd };
|
285
|
+
} else {
|
286
|
+
// Add 'meta' and other track records required by `offsetStartDTS`
|
287
|
+
result[trackId] = {
|
288
|
+
timescale,
|
289
|
+
type: hdlrType as HdlrType,
|
290
|
+
stsd,
|
291
|
+
};
|
294
292
|
}
|
295
293
|
}
|
296
294
|
}
|