@kkcompany/player 2.25.0-canary.4 → 2.25.0-canary.5
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 -2
- package/dist/core.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/modules.mjs +7 -5
- package/dist/react.mjs +7 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
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.
|
|
5
|
+
## [2.25.0-canary.5](https://gitlab.kkinternal.com/playback/web-playcraft/compare/v2.25.0-canary.3...v2.25.0-canary.5) (2025-11-25)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
### Bug Fixes
|
|
9
9
|
|
|
10
|
-
* playback api response handling ([
|
|
10
|
+
* playback api response handling ([dfe5a5f](https://gitlab.kkinternal.com/playback/web-playcraft/commit/dfe5a5fd60ee7dc0155e63a796df6afe337c4a3d))
|
|
11
11
|
|
|
12
12
|
## [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)
|
|
13
13
|
|
package/dist/core.mjs
CHANGED
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.5";
|
|
7246
7246
|
} catch (e) {
|
|
7247
7247
|
return undefined;
|
|
7248
7248
|
}
|
package/dist/index.mjs
CHANGED
package/dist/modules.mjs
CHANGED
|
@@ -21,7 +21,7 @@ const ignoreMinorError = async (event, {
|
|
|
21
21
|
retry,
|
|
22
22
|
retryTimes
|
|
23
23
|
} = {}) => {
|
|
24
|
-
var _event$response, _event$response2, _event$response3
|
|
24
|
+
var _event$response, _event$response2, _event$response3;
|
|
25
25
|
|
|
26
26
|
console.warn(event);
|
|
27
27
|
|
|
@@ -30,11 +30,13 @@ const ignoreMinorError = async (event, {
|
|
|
30
30
|
return retry();
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
const url = new URL(((_event$response3 = event.response) === null || _event$response3 === void 0 ? void 0 : _event$response3.url) || 'http://unknown/');
|
|
34
|
+
|
|
35
|
+
if (/start$|info$|heartbeat$/.test(url.pathname)) {
|
|
34
36
|
return Promise.reject(event);
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
if (/end$/.test(
|
|
39
|
+
if (/end$/.test(url.pathname)) {
|
|
38
40
|
return Promise.resolve();
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -520,7 +522,7 @@ const getSource = (sourceOptions, {
|
|
|
520
522
|
function getVersion() {
|
|
521
523
|
try {
|
|
522
524
|
// eslint-disable-next-line no-undef
|
|
523
|
-
return "2.25.0-canary.
|
|
525
|
+
return "2.25.0-canary.5";
|
|
524
526
|
} catch (e) {
|
|
525
527
|
return undefined;
|
|
526
528
|
}
|
|
@@ -1518,7 +1520,7 @@ const createAnalytics = ({
|
|
|
1518
1520
|
const logTarget = mapLogEvents({
|
|
1519
1521
|
video,
|
|
1520
1522
|
playerName: 'shaka',
|
|
1521
|
-
version: "2.25.0-canary.
|
|
1523
|
+
version: "2.25.0-canary.5"
|
|
1522
1524
|
});
|
|
1523
1525
|
logTarget.all((type, data) => {
|
|
1524
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.5";
|
|
300
300
|
} catch (e) {
|
|
301
301
|
return undefined;
|
|
302
302
|
}
|
|
@@ -10486,7 +10486,7 @@ const ignoreMinorError = async (event, {
|
|
|
10486
10486
|
retry,
|
|
10487
10487
|
retryTimes
|
|
10488
10488
|
} = {}) => {
|
|
10489
|
-
var _event$response, _event$response2, _event$response3
|
|
10489
|
+
var _event$response, _event$response2, _event$response3;
|
|
10490
10490
|
|
|
10491
10491
|
console.warn(event);
|
|
10492
10492
|
|
|
@@ -10495,11 +10495,13 @@ const ignoreMinorError = async (event, {
|
|
|
10495
10495
|
return retry();
|
|
10496
10496
|
}
|
|
10497
10497
|
|
|
10498
|
-
|
|
10498
|
+
const url = new URL(((_event$response3 = event.response) === null || _event$response3 === void 0 ? void 0 : _event$response3.url) || 'http://unknown/');
|
|
10499
|
+
|
|
10500
|
+
if (/start$|info$|heartbeat$/.test(url.pathname)) {
|
|
10499
10501
|
return Promise.reject(event);
|
|
10500
10502
|
}
|
|
10501
10503
|
|
|
10502
|
-
if (/end$/.test(
|
|
10504
|
+
if (/end$/.test(url.pathname)) {
|
|
10503
10505
|
return Promise.resolve();
|
|
10504
10506
|
}
|
|
10505
10507
|
|
|
@@ -11172,7 +11174,7 @@ const PremiumPlusPlayer = ({
|
|
|
11172
11174
|
const restPlayerName = ['shaka', 'bitmovin'].find(name => name in rest);
|
|
11173
11175
|
logTarget.current = mapLogEvents({
|
|
11174
11176
|
playerName: restPlayerName || 'shaka',
|
|
11175
|
-
version: "2.25.0-canary.
|
|
11177
|
+
version: "2.25.0-canary.5",
|
|
11176
11178
|
video: videoRef.current,
|
|
11177
11179
|
getPlaybackStatus: () => getMediaTime(videoRef.current, {
|
|
11178
11180
|
player: corePlayerRef.current,
|