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/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.2");
|
1076
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-rc.2.0.canary.11081");
|
1077
1077
|
} catch (e) {
|
1078
1078
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1079
1079
|
return createLogger();
|
@@ -1843,29 +1843,27 @@
|
|
1843
1843
|
soun: ElementaryStreamTypes.AUDIO,
|
1844
1844
|
vide: ElementaryStreamTypes.VIDEO
|
1845
1845
|
}[hdlrType];
|
1846
|
+
// Parse codec details
|
1847
|
+
var stsdBox = findBox(trak, ['mdia', 'minf', 'stbl', 'stsd'])[0];
|
1848
|
+
var stsd = parseStsd(stsdBox);
|
1846
1849
|
if (type) {
|
1847
|
-
//
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
timescale: timescale,
|
1865
|
-
type: hdlrType,
|
1866
|
-
stsd: stsd
|
1867
|
-
};
|
1868
|
-
}
|
1850
|
+
// Add 'audio', 'video', and 'audiovideo' track records that will map to SourceBuffers
|
1851
|
+
result[trackId] = {
|
1852
|
+
timescale: timescale,
|
1853
|
+
type: type,
|
1854
|
+
stsd: stsd
|
1855
|
+
};
|
1856
|
+
result[type] = _objectSpread2({
|
1857
|
+
timescale: timescale,
|
1858
|
+
id: trackId
|
1859
|
+
}, stsd);
|
1860
|
+
} else {
|
1861
|
+
// Add 'meta' and other track records required by `offsetStartDTS`
|
1862
|
+
result[trackId] = {
|
1863
|
+
timescale: timescale,
|
1864
|
+
type: hdlrType,
|
1865
|
+
stsd: stsd
|
1866
|
+
};
|
1869
1867
|
}
|
1870
1868
|
}
|
1871
1869
|
}
|
@@ -16588,7 +16586,7 @@
|
|
16588
16586
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
16589
16587
|
}
|
16590
16588
|
|
16591
|
-
var version = "1.6.0-rc.2";
|
16589
|
+
var version = "1.6.0-rc.2.0.canary.11081";
|
16592
16590
|
|
16593
16591
|
// ensure the worker ends up in the bundle
|
16594
16592
|
// If the worker should not be included this gets aliased to empty.js
|