@f8team/reel-core 1.1.3 → 1.1.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @f8team/reel-core
2
2
 
3
+ ## 1.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 8a6c787: HLS: automatic quality selection now stops at the smallest rendition whose width or height reaches the player's larger on-screen side times devicePixelRatio (hls.js `capLevelToPlayerSize`), so a small player on a modest PC is no longer moved to the highest rendition (for example 1440p) within a second. Players that are large in device pixels (for example 960 CSS px or wider at devicePixelRatio 2) still get the top rendition. A rendition picked by hand in the quality menu is never capped.
8
+
3
9
  ## 1.1.3
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -473,6 +473,7 @@ var HlsLoader = class {
473
473
  attachWithHlsJs(Hls, video, source) {
474
474
  const hls = new Hls({
475
475
  enableWorker: true,
476
+ capLevelToPlayerSize: this.options.capLevelToPlayerSize ?? true,
476
477
  ...makeHlsLoadPolicies(),
477
478
  xhrSetup: (xhr, url) => this.installXhrWatcher(xhr, url, source)
478
479
  });