@kkcompany/player 2.25.0-canary.1 → 2.25.0-canary.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.25.0-canary.2](https://gitlab.kkinternal.com/playback/web-playcraft/compare/v2.25.0-canary.1...v2.25.0-canary.2) (2025-11-21)
6
+
7
+
8
+ ### Features
9
+
10
+ * add change setting support to new audio/subtitle menu ([97728db](https://gitlab.kkinternal.com/playback/web-playcraft/commit/97728dbdc5f223cfccc18818cb5afa3b17be36d3))
11
+ * custom language menu item order ([6bba6dc](https://gitlab.kkinternal.com/playback/web-playcraft/commit/6bba6dc3c137c292eb890ebefcdc49cf1d155d21))
12
+ * display audio / subtitle options even if there's only 1 ([2e23915](https://gitlab.kkinternal.com/playback/web-playcraft/commit/2e23915d7aa7d084b65c9729c8ac468690852eb3))
13
+ * enable custom language menu ([fb2038d](https://gitlab.kkinternal.com/playback/web-playcraft/commit/fb2038da7fc3ea399bad3fbb4b7e1eb1c7bb49f0))
14
+ * export MenuItem + styles of LanguageMenu for custom menu component ([4f37d2e](https://gitlab.kkinternal.com/playback/web-playcraft/commit/4f37d2ed793287885e69dead576ceb1cecbe3320))
15
+ * **ui:** add close button to mobile language menu ([6704ce1](https://gitlab.kkinternal.com/playback/web-playcraft/commit/6704ce14b13e8e5f344615ca43220b3b8f79b5f8))
16
+ * enable custom setting menu sections with slotProps ([013fb63](https://gitlab.kkinternal.com/playback/web-playcraft/commit/013fb6393d7cc17502db6ef36b8b6d9492787529))
17
+ * integrate new audio/subtitle menu to player UI ([d0944cb](https://gitlab.kkinternal.com/playback/web-playcraft/commit/d0944cb469342ae5eb84cd212a17835559e25115))
18
+ * **ui:** add LanguageMenu component ([3ec5456](https://gitlab.kkinternal.com/playback/web-playcraft/commit/3ec5456eb1003b9374505e53bde56d967fef0b68))
19
+ * **ui:** add OverlayPanel for custom setting menu ([dede035](https://gitlab.kkinternal.com/playback/web-playcraft/commit/dede03515b414c7e4afe7b6cb9c687097d46e920))
20
+ * **ui:** add subtitles icon ([e771220](https://gitlab.kkinternal.com/playback/web-playcraft/commit/e7712208a8594aaf7211d55445fb5d4519e776e3))
21
+
5
22
  ## [2.25.0-canary.1](https://gitlab.kkinternal.com/playback/web-playcraft/compare/v2.9.20...v2.25.0-canary.1) (2025-11-21)
6
23
 
7
24
 
package/dist/core.mjs CHANGED
@@ -45,7 +45,7 @@ const waitFor = (check, handler) => {
45
45
  function getVersion() {
46
46
  try {
47
47
  // eslint-disable-next-line no-undef
48
- return "2.25.0-canary.1";
48
+ return "2.25.0-canary.2";
49
49
  } catch (e) {
50
50
  return undefined;
51
51
  }
@@ -1828,11 +1828,6 @@ const loadShaka = async (videoElement, config = {}, options = {}) => {
1828
1828
  },
1829
1829
  getPlaybackSpeed: () => videoElement.playbackRate,
1830
1830
  getVideoElement: () => videoElement,
1831
- setQuality: restrictions => {
1832
- if (!restrictions) return; // FIXME: Setting restrictions to {} cannot enable abr.
1833
-
1834
- player.configure('abr.restrictions', restrictions);
1835
- },
1836
1831
  getVideoQuality,
1837
1832
  getAvailableVideoQualities,
1838
1833
  isAlive: () => player.getLoadMode() !== shaka.Player.LoadMode.DESTROYED,
@@ -2026,6 +2021,8 @@ const getDrmOptions = source => {
2026
2021
  }];
2027
2022
  };
2028
2023
 
2024
+ /* eslint-disable no-param-reassign */
2025
+
2029
2026
  const matchAll = (input, pattern) => {
2030
2027
  const flags = [pattern.global && 'g', pattern.ignoreCase && 'i', pattern.multiline && 'm'].filter(Boolean).join('');
2031
2028
  const clone = new RegExp(pattern, flags);
@@ -2233,7 +2230,7 @@ const tryPatchHlsVideoQualities = async (player, hlsUrl) => {
2233
2230
  const videoQualities = getHlsQualityOptions(manifest);
2234
2231
 
2235
2232
  if (videoQualities) {
2236
- player.getAvailableVideoQualities = () => videoQualities;
2233
+ player.getVariantTracks = () => videoQualities;
2237
2234
  }
2238
2235
  };
2239
2236
 
@@ -2386,7 +2383,7 @@ const load = async (media, {
2386
2383
  loadStartTime = merged.startTime;
2387
2384
  }
2388
2385
 
2389
- if (merged.type === 'application/x-mpegurl') {
2386
+ if (needNativeHls() && merged.type === 'application/x-mpegurl') {
2390
2387
  await tryPatchHlsVideoQualities(player, merged.src);
2391
2388
  }
2392
2389
 
@@ -2491,7 +2488,8 @@ const loadPlayer = async (videoElement, {
2491
2488
 
2492
2489
  reloadOnLiveStall(videoElement, {
2493
2490
  reload: () => player.reload()
2494
- }); // TODO load built-in modules here
2491
+ });
2492
+ player.preferredSettings = {}; // TODO load built-in modules here
2495
2493
 
2496
2494
  player.modules = {};
2497
2495
  return player;