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.mjs
CHANGED
@@ -421,7 +421,7 @@ function enableLogs(debugConfig, context, id) {
|
|
421
421
|
// Some browsers don't allow to use bind on console object anyway
|
422
422
|
// fallback to default if needed
|
423
423
|
try {
|
424
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.
|
424
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.10603"}`);
|
425
425
|
} catch (e) {
|
426
426
|
/* log fn threw an exception. All logger methods are no-ops. */
|
427
427
|
return createLogger();
|
@@ -11081,7 +11081,7 @@ function concatUint8Arrays(chunks, dataLength) {
|
|
11081
11081
|
return result;
|
11082
11082
|
}
|
11083
11083
|
|
11084
|
-
const version = "1.5.14-0.canary.
|
11084
|
+
const version = "1.5.14-0.canary.10603";
|
11085
11085
|
|
11086
11086
|
// ensure the worker ends up in the bundle
|
11087
11087
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -11895,7 +11895,7 @@ class MP4Demuxer {
|
|
11895
11895
|
emsgs.forEach(data => {
|
11896
11896
|
const emsgInfo = parseEmsg(data);
|
11897
11897
|
if (emsgSchemePattern.test(emsgInfo.schemeIdUri)) {
|
11898
|
-
const pts =
|
11898
|
+
const pts = getEmsgStartTime(emsgInfo, timeOffset);
|
11899
11899
|
let duration = emsgInfo.eventDuration === 0xffffffff ? Number.POSITIVE_INFINITY : emsgInfo.eventDuration / emsgInfo.timeScale;
|
11900
11900
|
// Safari takes anything <= 0.001 seconds and maps it to Infinity
|
11901
11901
|
if (duration <= 0.001) {
|
@@ -11911,7 +11911,7 @@ class MP4Demuxer {
|
|
11911
11911
|
duration: duration
|
11912
11912
|
});
|
11913
11913
|
} else if (this.config.enableEmsgKLVMetadata && emsgInfo.schemeIdUri.startsWith('urn:misb:KLV:bin:1910.1')) {
|
11914
|
-
const pts =
|
11914
|
+
const pts = getEmsgStartTime(emsgInfo, timeOffset);
|
11915
11915
|
id3Track.samples.push({
|
11916
11916
|
data: emsgInfo.payload,
|
11917
11917
|
len: emsgInfo.payload.byteLength,
|
@@ -11936,6 +11936,9 @@ class MP4Demuxer {
|
|
11936
11936
|
this.videoTrack = this.audioTrack = this.id3Track = this.txtTrack = undefined;
|
11937
11937
|
}
|
11938
11938
|
}
|
11939
|
+
function getEmsgStartTime(emsgInfo, timeOffset) {
|
11940
|
+
return isFiniteNumber(emsgInfo.presentationTime) ? emsgInfo.presentationTime / emsgInfo.timeScale : timeOffset + emsgInfo.presentationTimeDelta / emsgInfo.timeScale;
|
11941
|
+
}
|
11939
11942
|
|
11940
11943
|
const getAudioBSID = (data, offset) => {
|
11941
11944
|
// check the bsid to confirm ac-3 | ec-3
|