eb-player 2.3.2 → 2.4.0

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.3.2";
7
+ var __EB_PLAYER_VERSION__ = "2.4.0";
8
8
 
9
9
  /**
10
10
  * Finite State Machine for player playback state transitions.
@@ -459,6 +459,7 @@
459
459
  hasPlaylistPicker: false,
460
460
  disableCustomAbr: true,
461
461
  lang: undefined,
462
+ rtl: undefined,
462
463
  // EPG
463
464
  epgContentId: undefined,
464
465
  epgPolling: null,
@@ -4669,7 +4670,9 @@
4669
4670
  container.style.setProperty('--eb-color-volume', skinColors.volumeBar);
4670
4671
  }
4671
4672
  // Set config-derived state flags
4672
- this.state.isRtl = this.config.lang === 'ar';
4673
+ // `rtl` decouples direction from language. Undefined (the default) falls back
4674
+ // to deriving it from `lang`, preserving pre-2.4.0 behaviour exactly.
4675
+ this.state.isRtl = this.config.rtl ?? (this.config.lang === 'ar');
4673
4676
  this.state.isRadio = this.config.radio === true;
4674
4677
  // Step 3: Create SkinRoot. This runs on EVERY mount, including noUi —
4675
4678
  // SkinRoot is the only creator of the <video> element, and its own