hls.js 1.6.0-rc.1.0.canary.11077 → 1.6.0-rc.1.0.canary.11078
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 +25 -12
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +25 -12
- 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 +25 -12
- 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 +25 -12
- 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 +28 -10
package/dist/hls.js
CHANGED
@@ -1073,7 +1073,7 @@
|
|
1073
1073
|
// Some browsers don't allow to use bind on console object anyway
|
1074
1074
|
// fallback to default if needed
|
1075
1075
|
try {
|
1076
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-rc.1.0.canary.
|
1076
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-rc.1.0.canary.11078");
|
1077
1077
|
} catch (e) {
|
1078
1078
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1079
1079
|
return createLogger();
|
@@ -1845,16 +1845,27 @@
|
|
1845
1845
|
}[hdlrType];
|
1846
1846
|
if (type) {
|
1847
1847
|
// Parse codec details
|
1848
|
-
var
|
1849
|
-
var
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1848
|
+
var stsdBox = findBox(trak, ['mdia', 'minf', 'stbl', 'stsd'])[0];
|
1849
|
+
var stsd = parseStsd(stsdBox);
|
1850
|
+
if (type) {
|
1851
|
+
// Add 'audio', 'video', and 'audiovideo' track records that will map to SourceBuffers
|
1852
|
+
result[trackId] = {
|
1853
|
+
timescale: timescale,
|
1854
|
+
type: type,
|
1855
|
+
stsd: stsd
|
1856
|
+
};
|
1857
|
+
result[type] = _objectSpread2({
|
1858
|
+
timescale: timescale,
|
1859
|
+
id: trackId
|
1860
|
+
}, stsd);
|
1861
|
+
} else {
|
1862
|
+
// Add 'meta' and other track records required by `offsetStartDTS`
|
1863
|
+
result[trackId] = {
|
1864
|
+
timescale: timescale,
|
1865
|
+
type: hdlrType,
|
1866
|
+
stsd: stsd
|
1867
|
+
};
|
1868
|
+
}
|
1858
1869
|
}
|
1859
1870
|
}
|
1860
1871
|
}
|
@@ -2306,6 +2317,8 @@
|
|
2306
2317
|
}
|
2307
2318
|
return duration;
|
2308
2319
|
}
|
2320
|
+
|
2321
|
+
// TODO: Remove `offsetStartDTS` in favor of using `timestampOffset` (issue #5715)
|
2309
2322
|
function offsetStartDTS(initData, fmp4, timeOffset) {
|
2310
2323
|
findBox(fmp4, ['moof', 'traf']).forEach(function (traf) {
|
2311
2324
|
findBox(traf, ['tfhd']).forEach(function (tfhd) {
|
@@ -16547,7 +16560,7 @@
|
|
16547
16560
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
16548
16561
|
}
|
16549
16562
|
|
16550
|
-
var version = "1.6.0-rc.1.0.canary.
|
16563
|
+
var version = "1.6.0-rc.1.0.canary.11078";
|
16551
16564
|
|
16552
16565
|
// ensure the worker ends up in the bundle
|
16553
16566
|
// If the worker should not be included this gets aliased to empty.js
|