@kkcompany/player 2.25.0-canary.1 → 2.25.0-canary.3
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 +29 -0
- package/dist/core.mjs +7 -9
- package/dist/index.js +3575 -3271
- package/dist/index.mjs +650 -352
- package/dist/modules.mjs +30 -20
- package/dist/plugins.mjs +3 -4
- package/dist/react.mjs +508 -235
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
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.3](https://gitlab.kkinternal.com/playback/web-playcraft/compare/v2.25.0-canary.2...v2.25.0-canary.3) (2025-11-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* display language menu only when options are available ([f02fbc7](https://gitlab.kkinternal.com/playback/web-playcraft/commit/f02fbc775f351dff406139f2e9f2c2451441de31))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* undefined audio setting options ([3e4e5ab](https://gitlab.kkinternal.com/playback/web-playcraft/commit/3e4e5ab521b56ba349d7be8416cc98f70ca404ed))
|
|
16
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add change setting support to new audio/subtitle menu ([97728db](https://gitlab.kkinternal.com/playback/web-playcraft/commit/97728dbdc5f223cfccc18818cb5afa3b17be36d3))
|
|
23
|
+
* custom language menu item order ([6bba6dc](https://gitlab.kkinternal.com/playback/web-playcraft/commit/6bba6dc3c137c292eb890ebefcdc49cf1d155d21))
|
|
24
|
+
* display audio / subtitle options even if there's only 1 ([2e23915](https://gitlab.kkinternal.com/playback/web-playcraft/commit/2e23915d7aa7d084b65c9729c8ac468690852eb3))
|
|
25
|
+
* enable custom language menu ([fb2038d](https://gitlab.kkinternal.com/playback/web-playcraft/commit/fb2038da7fc3ea399bad3fbb4b7e1eb1c7bb49f0))
|
|
26
|
+
* export MenuItem + styles of LanguageMenu for custom menu component ([4f37d2e](https://gitlab.kkinternal.com/playback/web-playcraft/commit/4f37d2ed793287885e69dead576ceb1cecbe3320))
|
|
27
|
+
* **ui:** add close button to mobile language menu ([6704ce1](https://gitlab.kkinternal.com/playback/web-playcraft/commit/6704ce14b13e8e5f344615ca43220b3b8f79b5f8))
|
|
28
|
+
* enable custom setting menu sections with slotProps ([013fb63](https://gitlab.kkinternal.com/playback/web-playcraft/commit/013fb6393d7cc17502db6ef36b8b6d9492787529))
|
|
29
|
+
* integrate new audio/subtitle menu to player UI ([d0944cb](https://gitlab.kkinternal.com/playback/web-playcraft/commit/d0944cb469342ae5eb84cd212a17835559e25115))
|
|
30
|
+
* **ui:** add LanguageMenu component ([3ec5456](https://gitlab.kkinternal.com/playback/web-playcraft/commit/3ec5456eb1003b9374505e53bde56d967fef0b68))
|
|
31
|
+
* **ui:** add OverlayPanel for custom setting menu ([dede035](https://gitlab.kkinternal.com/playback/web-playcraft/commit/dede03515b414c7e4afe7b6cb9c687097d46e920))
|
|
32
|
+
* **ui:** add subtitles icon ([e771220](https://gitlab.kkinternal.com/playback/web-playcraft/commit/e7712208a8594aaf7211d55445fb5d4519e776e3))
|
|
33
|
+
|
|
5
34
|
## [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
35
|
|
|
7
36
|
|
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.
|
|
48
|
+
return "2.25.0-canary.3";
|
|
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.
|
|
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
|
-
});
|
|
2491
|
+
});
|
|
2492
|
+
player.preferredSettings = {}; // TODO load built-in modules here
|
|
2495
2493
|
|
|
2496
2494
|
player.modules = {};
|
|
2497
2495
|
return player;
|