hls.js 1.5.14-0.canary.10602 → 1.5.14-0.canary.10603
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 +7 -4
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +7 -4
- 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 +7 -4
- 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 +7 -4
- 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/demux/mp4demuxer.ts +13 -9
package/dist/hls.light.js
CHANGED
@@ -494,7 +494,7 @@
|
|
494
494
|
// Some browsers don't allow to use bind on console object anyway
|
495
495
|
// fallback to default if needed
|
496
496
|
try {
|
497
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.
|
497
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10603");
|
498
498
|
} catch (e) {
|
499
499
|
/* log fn threw an exception. All logger methods are no-ops. */
|
500
500
|
return createLogger();
|
@@ -14953,7 +14953,7 @@
|
|
14953
14953
|
emsgs.forEach(function (data) {
|
14954
14954
|
var emsgInfo = parseEmsg(data);
|
14955
14955
|
if (emsgSchemePattern.test(emsgInfo.schemeIdUri)) {
|
14956
|
-
var pts =
|
14956
|
+
var pts = getEmsgStartTime(emsgInfo, timeOffset);
|
14957
14957
|
var duration = emsgInfo.eventDuration === 0xffffffff ? Number.POSITIVE_INFINITY : emsgInfo.eventDuration / emsgInfo.timeScale;
|
14958
14958
|
// Safari takes anything <= 0.001 seconds and maps it to Infinity
|
14959
14959
|
if (duration <= 0.001) {
|
@@ -14969,7 +14969,7 @@
|
|
14969
14969
|
duration: duration
|
14970
14970
|
});
|
14971
14971
|
} else if (_this.config.enableEmsgKLVMetadata && emsgInfo.schemeIdUri.startsWith('urn:misb:KLV:bin:1910.1')) {
|
14972
|
-
var _pts =
|
14972
|
+
var _pts = getEmsgStartTime(emsgInfo, timeOffset);
|
14973
14973
|
id3Track.samples.push({
|
14974
14974
|
data: emsgInfo.payload,
|
14975
14975
|
len: emsgInfo.payload.byteLength,
|
@@ -14995,6 +14995,9 @@
|
|
14995
14995
|
};
|
14996
14996
|
return MP4Demuxer;
|
14997
14997
|
}();
|
14998
|
+
function getEmsgStartTime(emsgInfo, timeOffset) {
|
14999
|
+
return isFiniteNumber(emsgInfo.presentationTime) ? emsgInfo.presentationTime / emsgInfo.timeScale : timeOffset + emsgInfo.presentationTimeDelta / emsgInfo.timeScale;
|
15000
|
+
}
|
14998
15001
|
|
14999
15002
|
var getAudioBSID = function getAudioBSID(data, offset) {
|
15000
15003
|
// check the bsid to confirm ac-3 | ec-3
|
@@ -19298,7 +19301,7 @@
|
|
19298
19301
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
19299
19302
|
}
|
19300
19303
|
|
19301
|
-
var version = "1.5.14-0.canary.
|
19304
|
+
var version = "1.5.14-0.canary.10603";
|
19302
19305
|
|
19303
19306
|
// ensure the worker ends up in the bundle
|
19304
19307
|
// If the worker should not be included this gets aliased to empty.js
|