@kkcompany/player 2.25.0-canary.6 → 2.25.0-canary.7
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 +2 -0
- package/dist/core.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/modules.mjs +3 -3
- package/dist/react.mjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.7](https://gitlab.kkinternal.com/playback/web-playcraft/compare/v2.25.0-canary.6...v2.25.0-canary.7) (2025-11-28)
|
|
6
|
+
|
|
5
7
|
## [2.25.0-canary.6](https://gitlab.kkinternal.com/playback/web-playcraft/compare/v2.25.0-canary.5...v2.25.0-canary.6) (2025-11-28)
|
|
6
8
|
|
|
7
9
|
|
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.7";
|
|
49
49
|
} catch (e) {
|
|
50
50
|
return undefined;
|
|
51
51
|
}
|
|
@@ -2062,7 +2062,7 @@ const isLiveDuration = duration => duration >= SHAKA_LIVE_DURATION;
|
|
|
2062
2062
|
const isEnded = media => !isLiveDuration(media.initialDuration) && media.initialDuration - media.currentTime < 1; // When donwload bandwidth is low, Safari may report time update while buffering, ignore it.
|
|
2063
2063
|
|
|
2064
2064
|
|
|
2065
|
-
const isBuffered = media =>
|
|
2065
|
+
const isBuffered = media => isSafari() || Array.from({
|
|
2066
2066
|
length: media.buffered.length
|
|
2067
2067
|
}, (_, index) => ({
|
|
2068
2068
|
start: media.buffered.start(index),
|
package/dist/index.js
CHANGED
|
@@ -7242,7 +7242,7 @@ $$2({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
7242
7242
|
function getVersion() {
|
|
7243
7243
|
try {
|
|
7244
7244
|
// eslint-disable-next-line no-undef
|
|
7245
|
-
return "2.25.0-canary.
|
|
7245
|
+
return "2.25.0-canary.7";
|
|
7246
7246
|
} catch (e) {
|
|
7247
7247
|
return undefined;
|
|
7248
7248
|
}
|
|
@@ -7319,7 +7319,7 @@ const isLiveDuration = duration => duration >= SHAKA_LIVE_DURATION;
|
|
|
7319
7319
|
const isEnded = media => !isLiveDuration(media.initialDuration) && media.initialDuration - media.currentTime < 1; // When donwload bandwidth is low, Safari may report time update while buffering, ignore it.
|
|
7320
7320
|
|
|
7321
7321
|
|
|
7322
|
-
const isBuffered = media =>
|
|
7322
|
+
const isBuffered = media => isSafari() || Array.from({
|
|
7323
7323
|
length: media.buffered.length
|
|
7324
7324
|
}, (_, index) => ({
|
|
7325
7325
|
start: media.buffered.start(index),
|
package/dist/index.mjs
CHANGED
|
@@ -295,7 +295,7 @@ function convertToSeconds(timeString) {
|
|
|
295
295
|
function getVersion() {
|
|
296
296
|
try {
|
|
297
297
|
// eslint-disable-next-line no-undef
|
|
298
|
-
return "2.25.0-canary.
|
|
298
|
+
return "2.25.0-canary.7";
|
|
299
299
|
} catch (e) {
|
|
300
300
|
return undefined;
|
|
301
301
|
}
|
|
@@ -369,7 +369,7 @@ const isLiveDuration = duration => duration >= SHAKA_LIVE_DURATION;
|
|
|
369
369
|
const isEnded = media => !isLiveDuration(media.initialDuration) && media.initialDuration - media.currentTime < 1; // When donwload bandwidth is low, Safari may report time update while buffering, ignore it.
|
|
370
370
|
|
|
371
371
|
|
|
372
|
-
const isBuffered = media =>
|
|
372
|
+
const isBuffered = media => isSafari() || Array.from({
|
|
373
373
|
length: media.buffered.length
|
|
374
374
|
}, (_, index) => ({
|
|
375
375
|
start: media.buffered.start(index),
|
package/dist/modules.mjs
CHANGED
|
@@ -522,7 +522,7 @@ const getSource = (sourceOptions, {
|
|
|
522
522
|
function getVersion() {
|
|
523
523
|
try {
|
|
524
524
|
// eslint-disable-next-line no-undef
|
|
525
|
-
return "2.25.0-canary.
|
|
525
|
+
return "2.25.0-canary.7";
|
|
526
526
|
} catch (e) {
|
|
527
527
|
return undefined;
|
|
528
528
|
}
|
|
@@ -571,7 +571,7 @@ const meetRestriction = (quality, {
|
|
|
571
571
|
} = {}) => !(quality.height < minHeight || quality.height > maxHeight);
|
|
572
572
|
|
|
573
573
|
const selectHlsQualities = async (source, restrictions = {}) => {
|
|
574
|
-
if (!
|
|
574
|
+
if (!isSafari() || !(restrictions.minHeight || restrictions.maxHeight)) {
|
|
575
575
|
return source;
|
|
576
576
|
}
|
|
577
577
|
|
|
@@ -1520,7 +1520,7 @@ const createAnalytics = ({
|
|
|
1520
1520
|
const logTarget = mapLogEvents({
|
|
1521
1521
|
video,
|
|
1522
1522
|
playerName: 'shaka',
|
|
1523
|
-
version: "2.25.0-canary.
|
|
1523
|
+
version: "2.25.0-canary.7"
|
|
1524
1524
|
});
|
|
1525
1525
|
logTarget.all((type, data) => {
|
|
1526
1526
|
const payload = {
|
package/dist/react.mjs
CHANGED
|
@@ -296,7 +296,7 @@ function convertToSeconds(timeString) {
|
|
|
296
296
|
function getVersion() {
|
|
297
297
|
try {
|
|
298
298
|
// eslint-disable-next-line no-undef
|
|
299
|
-
return "2.25.0-canary.
|
|
299
|
+
return "2.25.0-canary.7";
|
|
300
300
|
} catch (e) {
|
|
301
301
|
return undefined;
|
|
302
302
|
}
|
|
@@ -370,7 +370,7 @@ const isLiveDuration = duration => duration >= SHAKA_LIVE_DURATION;
|
|
|
370
370
|
const isEnded = media => !isLiveDuration(media.initialDuration) && media.initialDuration - media.currentTime < 1; // When donwload bandwidth is low, Safari may report time update while buffering, ignore it.
|
|
371
371
|
|
|
372
372
|
|
|
373
|
-
const isBuffered = media =>
|
|
373
|
+
const isBuffered = media => isSafari() || Array.from({
|
|
374
374
|
length: media.buffered.length
|
|
375
375
|
}, (_, index) => ({
|
|
376
376
|
start: media.buffered.start(index),
|
|
@@ -11176,7 +11176,7 @@ const PremiumPlusPlayer = ({
|
|
|
11176
11176
|
const restPlayerName = ['shaka', 'bitmovin'].find(name => name in rest);
|
|
11177
11177
|
logTarget.current = mapLogEvents({
|
|
11178
11178
|
playerName: restPlayerName || 'shaka',
|
|
11179
|
-
version: "2.25.0-canary.
|
|
11179
|
+
version: "2.25.0-canary.7",
|
|
11180
11180
|
video: videoRef.current,
|
|
11181
11181
|
getPlaybackStatus: () => getMediaTime(videoRef.current, {
|
|
11182
11182
|
player: corePlayerRef.current,
|