eb-player 2.4.1 → 2.4.2
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.EBPlayer = {}));
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
-
var __EB_PLAYER_VERSION__ = "2.4.
|
|
7
|
+
var __EB_PLAYER_VERSION__ = "2.4.2";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Finite State Machine for player playback state transitions.
|
|
@@ -6651,7 +6651,7 @@
|
|
|
6651
6651
|
return;
|
|
6652
6652
|
this.eventState = state;
|
|
6653
6653
|
const { Events } = Hls;
|
|
6654
|
-
driver.on(Events.
|
|
6654
|
+
driver.on(Events.MANIFEST_PARSED, this._onManifestParsed.bind(this));
|
|
6655
6655
|
driver.on(Events.LEVEL_LOADED, this._onLevelLoaded.bind(this));
|
|
6656
6656
|
driver.on(Events.LEVEL_SWITCHED, this._onLevelSwitched.bind(this));
|
|
6657
6657
|
driver.on(Events.AUDIO_TRACKS_UPDATED, this._onAudioTracksUpdated.bind(this));
|
|
@@ -6696,7 +6696,19 @@
|
|
|
6696
6696
|
}
|
|
6697
6697
|
this.bus?.emit('load-never-started', { src });
|
|
6698
6698
|
}
|
|
6699
|
-
|
|
6699
|
+
/**
|
|
6700
|
+
* Populates the quality menu from MANIFEST_PARSED — never MANIFEST_LOADED.
|
|
6701
|
+
*
|
|
6702
|
+
* MANIFEST_LOADED carries the levels in raw manifest order. hls.js then
|
|
6703
|
+
* builds a separate array (filtering audio-only and redundant variants) and
|
|
6704
|
+
* sorts it lowest-to-highest; that sorted array becomes `hls.levels`, and it
|
|
6705
|
+
* is the index space of `driver.currentLevel` (see setQuality) and of
|
|
6706
|
+
* LEVEL_SWITCHED.level. Labelling from manifest order while selecting in
|
|
6707
|
+
* sorted order silently inverts the menu on any manifest that lists its
|
|
6708
|
+
* variants highest-first. MANIFEST_PARSED carries that same sorted array, so
|
|
6709
|
+
* label and index always agree.
|
|
6710
|
+
*/
|
|
6711
|
+
_onManifestParsed(_event, data) {
|
|
6700
6712
|
const state = this.eventState;
|
|
6701
6713
|
const driver = this.driver;
|
|
6702
6714
|
if (!state)
|