hls.js 1.5.8-0.canary.10164 → 1.5.8-0.canary.10166
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 +9 -5
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +6 -18
- 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 +6 -18
- 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 +9 -5
- 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/controller/buffer-controller.ts +5 -2
- package/src/utils/codecs.ts +1 -1
- package/src/utils/rendition-helper.ts +4 -1
package/dist/hls.light.mjs
CHANGED
@@ -512,7 +512,7 @@ function enableLogs(debugConfig, context, id) {
|
|
512
512
|
// Some browsers don't allow to use bind on console object anyway
|
513
513
|
// fallback to default if needed
|
514
514
|
try {
|
515
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.8-0.canary.
|
515
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.8-0.canary.10166"}`);
|
516
516
|
} catch (e) {
|
517
517
|
/* log fn threw an exception. All logger methods are no-ops. */
|
518
518
|
return createLogger();
|
@@ -2419,7 +2419,7 @@ function pickMostCompleteCodecName(parsedCodec, levelCodec) {
|
|
2419
2419
|
if (parsedCodec && parsedCodec !== 'mp4a') {
|
2420
2420
|
return parsedCodec;
|
2421
2421
|
}
|
2422
|
-
return levelCodec;
|
2422
|
+
return levelCodec ? levelCodec.split(',')[0] : levelCodec;
|
2423
2423
|
}
|
2424
2424
|
function convertAVC1ToAVCOTI(codec) {
|
2425
2425
|
// Convert avc1 codec string from RFC-4281 to RFC-6381 for MediaSource.isTypeSupported
|
@@ -6305,19 +6305,6 @@ function getCodecTiers(levels, audioTracksByGroup, minAutoLevel, maxAutoLevel) {
|
|
6305
6305
|
tier.maxScore = Math.max(tier.maxScore, level.score);
|
6306
6306
|
tier.fragmentError += level.fragmentError;
|
6307
6307
|
tier.videoRanges[level.videoRange] = (tier.videoRanges[level.videoRange] || 0) + 1;
|
6308
|
-
if (audioGroups) {
|
6309
|
-
audioGroups.forEach(audioGroupId => {
|
6310
|
-
if (!audioGroupId) {
|
6311
|
-
return;
|
6312
|
-
}
|
6313
|
-
const audioGroup = audioTracksByGroup.groups[audioGroupId];
|
6314
|
-
// Default audio is any group with DEFAULT=YES, or if missing then any group with AUTOSELECT=YES, or all variants
|
6315
|
-
tier.hasDefaultAudio = tier.hasDefaultAudio || audioTracksByGroup.hasDefaultAudio ? audioGroup.hasDefault : audioGroup.hasAutoSelect || !audioTracksByGroup.hasDefaultAudio && !audioTracksByGroup.hasAutoSelectAudio;
|
6316
|
-
Object.keys(audioGroup.channels).forEach(channels => {
|
6317
|
-
tier.channels[channels] = (tier.channels[channels] || 0) + audioGroup.channels[channels];
|
6318
|
-
});
|
6319
|
-
});
|
6320
|
-
}
|
6321
6308
|
return tiers;
|
6322
6309
|
}, {});
|
6323
6310
|
}
|
@@ -8017,12 +8004,13 @@ class BufferController extends Logger {
|
|
8017
8004
|
}
|
8018
8005
|
for (const trackName in tracks) {
|
8019
8006
|
if (!sourceBuffer[trackName]) {
|
8007
|
+
var _track$levelCodec;
|
8020
8008
|
const track = tracks[trackName];
|
8021
8009
|
if (!track) {
|
8022
8010
|
throw Error(`source buffer exists for track ${trackName}, however track does not`);
|
8023
8011
|
}
|
8024
|
-
// use levelCodec as first priority
|
8025
|
-
let codec = track.levelCodec
|
8012
|
+
// use levelCodec as first priority unless it contains multiple comma-separated codec values
|
8013
|
+
let codec = ((_track$levelCodec = track.levelCodec) == null ? void 0 : _track$levelCodec.indexOf(',')) === -1 ? track.levelCodec : track.codec;
|
8026
8014
|
if (codec) {
|
8027
8015
|
if (trackName.slice(0, 5) === 'audio') {
|
8028
8016
|
codec = getCodecCompatibleName(codec, this.appendSource);
|
@@ -20362,7 +20350,7 @@ class Hls {
|
|
20362
20350
|
* Get the video-dev/hls.js package version.
|
20363
20351
|
*/
|
20364
20352
|
static get version() {
|
20365
|
-
return "1.5.8-0.canary.
|
20353
|
+
return "1.5.8-0.canary.10166";
|
20366
20354
|
}
|
20367
20355
|
|
20368
20356
|
/**
|