hls.js 1.6.0-beta.1.0.canary.10758 → 1.6.0-beta.1.0.canary.10761
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 +11 -8
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +11 -8
- 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 +11 -8
- 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 +11 -8
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +2 -2
- package/src/controller/stream-controller.ts +17 -6
package/dist/hls.js
CHANGED
@@ -1057,7 +1057,7 @@
|
|
1057
1057
|
// Some browsers don't allow to use bind on console object anyway
|
1058
1058
|
// fallback to default if needed
|
1059
1059
|
try {
|
1060
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.1.0.canary.
|
1060
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.1.0.canary.10761");
|
1061
1061
|
} catch (e) {
|
1062
1062
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1063
1063
|
return createLogger();
|
@@ -16222,7 +16222,7 @@
|
|
16222
16222
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
16223
16223
|
}
|
16224
16224
|
|
16225
|
-
var version = "1.6.0-beta.1.0.canary.
|
16225
|
+
var version = "1.6.0-beta.1.0.canary.10761";
|
16226
16226
|
|
16227
16227
|
// ensure the worker ends up in the bundle
|
16228
16228
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -31948,7 +31948,7 @@
|
|
31948
31948
|
_this.level = -1;
|
31949
31949
|
_this._forceStartLoad = false;
|
31950
31950
|
_this._hasEnoughToStart = false;
|
31951
|
-
_this.altAudio =
|
31951
|
+
_this.altAudio = 0;
|
31952
31952
|
_this.audioOnly = false;
|
31953
31953
|
_this.fragPlaying = null;
|
31954
31954
|
_this.fragLastKbps = 0;
|
@@ -32140,7 +32140,7 @@
|
|
32140
32140
|
var lastDetails = this.getLevelDetails();
|
32141
32141
|
if (lastDetails && this._streamEnded(bufferInfo, lastDetails)) {
|
32142
32142
|
var data = {};
|
32143
|
-
if (this.altAudio) {
|
32143
|
+
if (this.altAudio === 2) {
|
32144
32144
|
data.type = 'video';
|
32145
32145
|
}
|
32146
32146
|
this.hls.trigger(Events.BUFFER_EOS, data);
|
@@ -32328,7 +32328,7 @@
|
|
32328
32328
|
this.nextLoadPosition = this.getLoadPosition();
|
32329
32329
|
};
|
32330
32330
|
_proto.flushMainBuffer = function flushMainBuffer(startOffset, endOffset) {
|
32331
|
-
_BaseStreamController.prototype.flushMainBuffer.call(this, startOffset, endOffset, this.altAudio ? 'video' : null);
|
32331
|
+
_BaseStreamController.prototype.flushMainBuffer.call(this, startOffset, endOffset, this.altAudio === 2 ? 'video' : null);
|
32332
32332
|
};
|
32333
32333
|
_proto.onMediaAttached = function onMediaAttached(event, data) {
|
32334
32334
|
_BaseStreamController.prototype.onMediaAttached.call(this, event, data);
|
@@ -32379,7 +32379,8 @@
|
|
32379
32379
|
this.couldBacktrack = false;
|
32380
32380
|
this.fragLastKbps = 0;
|
32381
32381
|
this.fragPlaying = this.backtrackFragment = null;
|
32382
|
-
this.altAudio =
|
32382
|
+
this.altAudio = 0;
|
32383
|
+
this.audioOnly = false;
|
32383
32384
|
};
|
32384
32385
|
_proto.onManifestParsed = function onManifestParsed(event, data) {
|
32385
32386
|
// detect if we have different kind of audio codecs used amongst playlists
|
@@ -32529,7 +32530,7 @@
|
|
32529
32530
|
};
|
32530
32531
|
_proto.onAudioTrackSwitching = function onAudioTrackSwitching(event, data) {
|
32531
32532
|
// if any URL found on new audio track, it is an alternate audio track
|
32532
|
-
var fromAltAudio = this.altAudio;
|
32533
|
+
var fromAltAudio = this.altAudio === 2;
|
32533
32534
|
var altAudio = !!data.url;
|
32534
32535
|
// if we switch on main audio, ensure that main fragment scheduling is synced with media.buffered
|
32535
32536
|
// don't do anything if we switch to alt audio: audio stream controller is handling it.
|
@@ -32564,6 +32565,8 @@
|
|
32564
32565
|
this.fragmentTracker.removeAllFragments();
|
32565
32566
|
}
|
32566
32567
|
hls.trigger(Events.AUDIO_TRACK_SWITCHED, data);
|
32568
|
+
} else {
|
32569
|
+
this.altAudio = 1;
|
32567
32570
|
}
|
32568
32571
|
};
|
32569
32572
|
_proto.onAudioTrackSwitched = function onAudioTrackSwitched(event, data) {
|
@@ -32577,7 +32580,7 @@
|
|
32577
32580
|
this.mediaBuffer = videoBuffer;
|
32578
32581
|
}
|
32579
32582
|
}
|
32580
|
-
this.altAudio = altAudio;
|
32583
|
+
this.altAudio = altAudio ? 2 : 0;
|
32581
32584
|
this.tick();
|
32582
32585
|
};
|
32583
32586
|
_proto.onBufferCreated = function onBufferCreated(event, data) {
|