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.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();
|
@@ -2827,7 +2827,7 @@ function pickMostCompleteCodecName(parsedCodec, levelCodec) {
|
|
2827
2827
|
if (parsedCodec && parsedCodec !== 'mp4a') {
|
2828
2828
|
return parsedCodec;
|
2829
2829
|
}
|
2830
|
-
return levelCodec;
|
2830
|
+
return levelCodec ? levelCodec.split(',')[0] : levelCodec;
|
2831
2831
|
}
|
2832
2832
|
function convertAVC1ToAVCOTI(codec) {
|
2833
2833
|
// Convert avc1 codec string from RFC-4281 to RFC-6381 for MediaSource.isTypeSupported
|
@@ -7037,6 +7037,9 @@ function getCodecTiers(levels, audioTracksByGroup, minAutoLevel, maxAutoLevel) {
|
|
7037
7037
|
return;
|
7038
7038
|
}
|
7039
7039
|
const audioGroup = audioTracksByGroup.groups[audioGroupId];
|
7040
|
+
if (!audioGroup) {
|
7041
|
+
return;
|
7042
|
+
}
|
7040
7043
|
// Default audio is any group with DEFAULT=YES, or if missing then any group with AUTOSELECT=YES, or all variants
|
7041
7044
|
tier.hasDefaultAudio = tier.hasDefaultAudio || audioTracksByGroup.hasDefaultAudio ? audioGroup.hasDefault : audioGroup.hasAutoSelect || !audioTracksByGroup.hasDefaultAudio && !audioTracksByGroup.hasAutoSelectAudio;
|
7042
7045
|
Object.keys(audioGroup.channels).forEach(channels => {
|
@@ -19764,12 +19767,13 @@ class BufferController extends Logger {
|
|
19764
19767
|
}
|
19765
19768
|
for (const trackName in tracks) {
|
19766
19769
|
if (!sourceBuffer[trackName]) {
|
19770
|
+
var _track$levelCodec;
|
19767
19771
|
const track = tracks[trackName];
|
19768
19772
|
if (!track) {
|
19769
19773
|
throw Error(`source buffer exists for track ${trackName}, however track does not`);
|
19770
19774
|
}
|
19771
|
-
// use levelCodec as first priority
|
19772
|
-
let codec = track.levelCodec
|
19775
|
+
// use levelCodec as first priority unless it contains multiple comma-separated codec values
|
19776
|
+
let codec = ((_track$levelCodec = track.levelCodec) == null ? void 0 : _track$levelCodec.indexOf(',')) === -1 ? track.levelCodec : track.codec;
|
19773
19777
|
if (codec) {
|
19774
19778
|
if (trackName.slice(0, 5) === 'audio') {
|
19775
19779
|
codec = getCodecCompatibleName(codec, this.appendSource);
|
@@ -28980,7 +28984,7 @@ class Hls {
|
|
28980
28984
|
* Get the video-dev/hls.js package version.
|
28981
28985
|
*/
|
28982
28986
|
static get version() {
|
28983
|
-
return "1.5.8-0.canary.
|
28987
|
+
return "1.5.8-0.canary.10166";
|
28984
28988
|
}
|
28985
28989
|
|
28986
28990
|
/**
|