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.js
CHANGED
@@ -606,7 +606,7 @@
|
|
606
606
|
// Some browsers don't allow to use bind on console object anyway
|
607
607
|
// fallback to default if needed
|
608
608
|
try {
|
609
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.
|
609
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10166");
|
610
610
|
} catch (e) {
|
611
611
|
/* log fn threw an exception. All logger methods are no-ops. */
|
612
612
|
return createLogger();
|
@@ -2607,7 +2607,7 @@
|
|
2607
2607
|
if (parsedCodec && parsedCodec !== 'mp4a') {
|
2608
2608
|
return parsedCodec;
|
2609
2609
|
}
|
2610
|
-
return levelCodec;
|
2610
|
+
return levelCodec ? levelCodec.split(',')[0] : levelCodec;
|
2611
2611
|
}
|
2612
2612
|
function convertAVC1ToAVCOTI(codec) {
|
2613
2613
|
// Convert avc1 codec string from RFC-4281 to RFC-6381 for MediaSource.isTypeSupported
|
@@ -6584,19 +6584,6 @@
|
|
6584
6584
|
tier.maxScore = Math.max(tier.maxScore, level.score);
|
6585
6585
|
tier.fragmentError += level.fragmentError;
|
6586
6586
|
tier.videoRanges[level.videoRange] = (tier.videoRanges[level.videoRange] || 0) + 1;
|
6587
|
-
if (audioGroups) {
|
6588
|
-
audioGroups.forEach(function (audioGroupId) {
|
6589
|
-
if (!audioGroupId) {
|
6590
|
-
return;
|
6591
|
-
}
|
6592
|
-
var audioGroup = audioTracksByGroup.groups[audioGroupId];
|
6593
|
-
// Default audio is any group with DEFAULT=YES, or if missing then any group with AUTOSELECT=YES, or all variants
|
6594
|
-
tier.hasDefaultAudio = tier.hasDefaultAudio || audioTracksByGroup.hasDefaultAudio ? audioGroup.hasDefault : audioGroup.hasAutoSelect || !audioTracksByGroup.hasDefaultAudio && !audioTracksByGroup.hasAutoSelectAudio;
|
6595
|
-
Object.keys(audioGroup.channels).forEach(function (channels) {
|
6596
|
-
tier.channels[channels] = (tier.channels[channels] || 0) + audioGroup.channels[channels];
|
6597
|
-
});
|
6598
|
-
});
|
6599
|
-
}
|
6600
6587
|
return tiers;
|
6601
6588
|
}, {});
|
6602
6589
|
}
|
@@ -8274,12 +8261,13 @@
|
|
8274
8261
|
}
|
8275
8262
|
var _loop = function _loop(trackName) {
|
8276
8263
|
if (!sourceBuffer[trackName]) {
|
8264
|
+
var _track$levelCodec;
|
8277
8265
|
var track = tracks[trackName];
|
8278
8266
|
if (!track) {
|
8279
8267
|
throw Error("source buffer exists for track " + trackName + ", however track does not");
|
8280
8268
|
}
|
8281
|
-
// use levelCodec as first priority
|
8282
|
-
var codec = track.levelCodec
|
8269
|
+
// use levelCodec as first priority unless it contains multiple comma-separated codec values
|
8270
|
+
var codec = ((_track$levelCodec = track.levelCodec) == null ? void 0 : _track$levelCodec.indexOf(',')) === -1 ? track.levelCodec : track.codec;
|
8283
8271
|
if (codec) {
|
8284
8272
|
if (trackName.slice(0, 5) === 'audio') {
|
8285
8273
|
codec = getCodecCompatibleName(codec, _this16.appendSource);
|
@@ -21691,7 +21679,7 @@
|
|
21691
21679
|
* Get the video-dev/hls.js package version.
|
21692
21680
|
*/
|
21693
21681
|
function get() {
|
21694
|
-
return "1.5.8-0.canary.
|
21682
|
+
return "1.5.8-0.canary.10166";
|
21695
21683
|
}
|
21696
21684
|
}, {
|
21697
21685
|
key: "Events",
|