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.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();
|
@@ -13867,7 +13867,7 @@ function changeTypeSupported() {
|
|
13867
13867
|
return typeof (sourceBuffer == null ? void 0 : (_sourceBuffer$prototy = sourceBuffer.prototype) == null ? void 0 : _sourceBuffer$prototy.changeType) === 'function';
|
13868
13868
|
}
|
13869
13869
|
|
13870
|
-
const version = "1.5.14-0.canary.
|
13870
|
+
const version = "1.5.14-0.canary.10603";
|
13871
13871
|
|
13872
13872
|
// ensure the worker ends up in the bundle
|
13873
13873
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -14681,7 +14681,7 @@ class MP4Demuxer {
|
|
14681
14681
|
emsgs.forEach(data => {
|
14682
14682
|
const emsgInfo = parseEmsg(data);
|
14683
14683
|
if (emsgSchemePattern.test(emsgInfo.schemeIdUri)) {
|
14684
|
-
const pts =
|
14684
|
+
const pts = getEmsgStartTime(emsgInfo, timeOffset);
|
14685
14685
|
let duration = emsgInfo.eventDuration === 0xffffffff ? Number.POSITIVE_INFINITY : emsgInfo.eventDuration / emsgInfo.timeScale;
|
14686
14686
|
// Safari takes anything <= 0.001 seconds and maps it to Infinity
|
14687
14687
|
if (duration <= 0.001) {
|
@@ -14697,7 +14697,7 @@ class MP4Demuxer {
|
|
14697
14697
|
duration: duration
|
14698
14698
|
});
|
14699
14699
|
} else if (this.config.enableEmsgKLVMetadata && emsgInfo.schemeIdUri.startsWith('urn:misb:KLV:bin:1910.1')) {
|
14700
|
-
const pts =
|
14700
|
+
const pts = getEmsgStartTime(emsgInfo, timeOffset);
|
14701
14701
|
id3Track.samples.push({
|
14702
14702
|
data: emsgInfo.payload,
|
14703
14703
|
len: emsgInfo.payload.byteLength,
|
@@ -14722,6 +14722,9 @@ class MP4Demuxer {
|
|
14722
14722
|
this.videoTrack = this.audioTrack = this.id3Track = this.txtTrack = undefined;
|
14723
14723
|
}
|
14724
14724
|
}
|
14725
|
+
function getEmsgStartTime(emsgInfo, timeOffset) {
|
14726
|
+
return isFiniteNumber(emsgInfo.presentationTime) ? emsgInfo.presentationTime / emsgInfo.timeScale : timeOffset + emsgInfo.presentationTimeDelta / emsgInfo.timeScale;
|
14727
|
+
}
|
14725
14728
|
|
14726
14729
|
const getAudioBSID = (data, offset) => {
|
14727
14730
|
// check the bsid to confirm ac-3 | ec-3
|