rx-player 3.33.4-dev.2024083000 → 3.33.4-dev.2024090600
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 +3 -1
- package/VERSION +1 -1
- package/dist/_esm5.processed/compat/browser_detection.d.ts +3 -1
- package/dist/_esm5.processed/compat/browser_detection.js +10 -1
- package/dist/_esm5.processed/compat/can_reuse_media_keys.d.ts +4 -0
- package/dist/_esm5.processed/compat/can_reuse_media_keys.js +6 -2
- package/dist/_esm5.processed/core/api/public_api.js +2 -2
- package/dist/rx-player.js +13 -4
- package/dist/rx-player.min.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v3.33.4
|
|
3
|
+
## Current dev build: v3.33.4-dev.2024090600
|
|
4
4
|
|
|
5
5
|
### Bug fixes
|
|
6
6
|
|
|
7
7
|
- Compat: Fix autoPlay on Tizen when the content starts on a discontinuity [#1500]
|
|
8
|
+
- DRM/Compat: Re-create MediaKeys for each content on Philips' NETTV and `KSTB40xx`
|
|
9
|
+
set-top boxes [#1519, #1538]
|
|
8
10
|
|
|
9
11
|
### Other improvements
|
|
10
12
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.33.4-dev.
|
|
1
|
+
3.33.4-dev.2024090600
|
|
@@ -43,4 +43,6 @@ declare let isPhilipsNetTv: boolean;
|
|
|
43
43
|
declare let isPlayStation5: boolean;
|
|
44
44
|
/** `true` for the Xbox game consoles. */
|
|
45
45
|
declare let isXbox: boolean;
|
|
46
|
-
|
|
46
|
+
/** `true` for specific A1 STB: KSTB 40xx from Kaon Media. */
|
|
47
|
+
declare let isA1KStb40xx: boolean;
|
|
48
|
+
export { isEdgeChromium, isFirefox, isIE11, isIEOrEdge, isSafariDesktop, isSafariMobile, isA1KStb40xx, isPanasonic, isPhilipsNetTv, isPlayStation5, isSamsungBrowser, isTizen, isWebOs, isWebOs2021, isWebOs2022, isXbox, };
|
|
@@ -44,6 +44,8 @@ var isPhilipsNetTv = false;
|
|
|
44
44
|
var isPlayStation5 = false;
|
|
45
45
|
/** `true` for the Xbox game consoles. */
|
|
46
46
|
var isXbox = false;
|
|
47
|
+
/** `true` for specific A1 STB: KSTB 40xx from Kaon Media. */
|
|
48
|
+
var isA1KStb40xx = false;
|
|
47
49
|
((function findCurrentBrowser() {
|
|
48
50
|
var _a, _b, _c;
|
|
49
51
|
if (isNode) {
|
|
@@ -125,5 +127,12 @@ var isXbox = false;
|
|
|
125
127
|
else if (navigator.userAgent.indexOf("Xbox") !== -1) {
|
|
126
128
|
isXbox = true;
|
|
127
129
|
}
|
|
130
|
+
else if (navigator.userAgent.indexOf("Model/a1-kstb40xx")) {
|
|
131
|
+
isA1KStb40xx = true;
|
|
132
|
+
}
|
|
128
133
|
})());
|
|
129
|
-
export {
|
|
134
|
+
export {
|
|
135
|
+
// browsers
|
|
136
|
+
isEdgeChromium, isFirefox, isIE11, isIEOrEdge, isSafariDesktop, isSafariMobile,
|
|
137
|
+
// specific devices
|
|
138
|
+
isA1KStb40xx, isPanasonic, isPhilipsNetTv, isPlayStation5, isSamsungBrowser, isTizen, isWebOs, isWebOs2021, isWebOs2022, isXbox, };
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
* HTMLMediaElement.
|
|
10
10
|
* - (2024-08-23): Seen on Philips 2024 and 2023 in:
|
|
11
11
|
* https://github.com/canalplus/rx-player/issues/1464
|
|
12
|
+
* - (2024-09-04): Another case seen on an "A1" set-top box model made by
|
|
13
|
+
* Kaonmedia we will call the KSTB40xx.
|
|
14
|
+
* It may share the problematic with other devices, but we have only seen
|
|
15
|
+
* the problem on this one for now.
|
|
12
16
|
*
|
|
13
17
|
* @returns {boolean}
|
|
14
18
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isPanasonic, isPhilipsNetTv, isWebOs, } from "./browser_detection";
|
|
1
|
+
import { isA1KStb40xx, isPanasonic, isPhilipsNetTv, isWebOs, } from "./browser_detection";
|
|
2
2
|
/**
|
|
3
3
|
* Returns `true` if a `MediaKeys` instance (the `Encrypted Media Extension`
|
|
4
4
|
* concept) can be reused between contents.
|
|
@@ -10,9 +10,13 @@ import { isPanasonic, isPhilipsNetTv, isWebOs, } from "./browser_detection";
|
|
|
10
10
|
* HTMLMediaElement.
|
|
11
11
|
* - (2024-08-23): Seen on Philips 2024 and 2023 in:
|
|
12
12
|
* https://github.com/canalplus/rx-player/issues/1464
|
|
13
|
+
* - (2024-09-04): Another case seen on an "A1" set-top box model made by
|
|
14
|
+
* Kaonmedia we will call the KSTB40xx.
|
|
15
|
+
* It may share the problematic with other devices, but we have only seen
|
|
16
|
+
* the problem on this one for now.
|
|
13
17
|
*
|
|
14
18
|
* @returns {boolean}
|
|
15
19
|
*/
|
|
16
20
|
export default function canReuseMediaKeys() {
|
|
17
|
-
return !isWebOs && !isPhilipsNetTv && !isPanasonic;
|
|
21
|
+
return !isWebOs && !isPhilipsNetTv && !isPanasonic && !isA1KStb40xx;
|
|
18
22
|
}
|
|
@@ -88,7 +88,7 @@ var Player = /** @class */ (function (_super) {
|
|
|
88
88
|
// Workaround to support Firefox autoplay on FF 42.
|
|
89
89
|
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
90
90
|
videoElement.preload = "auto";
|
|
91
|
-
_this.version = /* PLAYER_VERSION */ "3.33.4-dev.
|
|
91
|
+
_this.version = /* PLAYER_VERSION */ "3.33.4-dev.2024090600";
|
|
92
92
|
_this.log = log;
|
|
93
93
|
_this.state = "STOPPED";
|
|
94
94
|
_this.videoElement = videoElement;
|
|
@@ -2511,5 +2511,5 @@ var Player = /** @class */ (function (_super) {
|
|
|
2511
2511
|
Player._priv_currentlyUsedVideoElements = new WeakSet();
|
|
2512
2512
|
return Player;
|
|
2513
2513
|
}(EventEmitter));
|
|
2514
|
-
Player.version = /* PLAYER_VERSION */ "3.33.4-dev.
|
|
2514
|
+
Player.version = /* PLAYER_VERSION */ "3.33.4-dev.2024090600";
|
|
2515
2515
|
export default Player;
|
package/dist/rx-player.js
CHANGED
|
@@ -70,7 +70,8 @@ var READY_STATES = {
|
|
|
70
70
|
/* harmony export */ hF: function() { return /* binding */ isWebOs; },
|
|
71
71
|
/* harmony export */ lw: function() { return /* binding */ isIE11; },
|
|
72
72
|
/* harmony export */ op: function() { return /* binding */ isEdgeChromium; },
|
|
73
|
-
/* harmony export */ qe: function() { return /* binding */ isXbox; }
|
|
73
|
+
/* harmony export */ qe: function() { return /* binding */ isXbox; },
|
|
74
|
+
/* harmony export */ x1: function() { return /* binding */ isA1KStb40xx; }
|
|
74
75
|
/* harmony export */ });
|
|
75
76
|
/* unused harmony exports isWebOs2021, isWebOs2022 */
|
|
76
77
|
/* harmony import */ var _is_node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2186);
|
|
@@ -120,6 +121,8 @@ var isPhilipsNetTv = false;
|
|
|
120
121
|
var isPlayStation5 = false;
|
|
121
122
|
/** `true` for the Xbox game consoles. */
|
|
122
123
|
var isXbox = false;
|
|
124
|
+
/** `true` for specific A1 STB: KSTB 40xx from Kaon Media. */
|
|
125
|
+
var isA1KStb40xx = false;
|
|
123
126
|
(function findCurrentBrowser() {
|
|
124
127
|
var _a, _b, _c;
|
|
125
128
|
if (_is_node__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A) {
|
|
@@ -177,6 +180,8 @@ var isXbox = false;
|
|
|
177
180
|
isPanasonic = true;
|
|
178
181
|
} else if (navigator.userAgent.indexOf("Xbox") !== -1) {
|
|
179
182
|
isXbox = true;
|
|
183
|
+
} else if (navigator.userAgent.indexOf("Model/a1-kstb40xx")) {
|
|
184
|
+
isA1KStb40xx = true;
|
|
180
185
|
}
|
|
181
186
|
})();
|
|
182
187
|
|
|
@@ -4942,11 +4947,15 @@ function _createOrLoadSession() {
|
|
|
4942
4947
|
* HTMLMediaElement.
|
|
4943
4948
|
* - (2024-08-23): Seen on Philips 2024 and 2023 in:
|
|
4944
4949
|
* https://github.com/canalplus/rx-player/issues/1464
|
|
4950
|
+
* - (2024-09-04): Another case seen on an "A1" set-top box model made by
|
|
4951
|
+
* Kaonmedia we will call the KSTB40xx.
|
|
4952
|
+
* It may share the problematic with other devices, but we have only seen
|
|
4953
|
+
* the problem on this one for now.
|
|
4945
4954
|
*
|
|
4946
4955
|
* @returns {boolean}
|
|
4947
4956
|
*/
|
|
4948
4957
|
function canReuseMediaKeys() {
|
|
4949
|
-
return !browser_detection/* isWebOs */.hF && !browser_detection/* isPhilipsNetTv */.NV && !browser_detection/* isPanasonic */.P5;
|
|
4958
|
+
return !browser_detection/* isWebOs */.hF && !browser_detection/* isPhilipsNetTv */.NV && !browser_detection/* isPanasonic */.P5 && !browser_detection/* isA1KStb40xx */.x1;
|
|
4950
4959
|
}
|
|
4951
4960
|
;// CONCATENATED MODULE: ./src/compat/should_renew_media_key_system_access.ts
|
|
4952
4961
|
/**
|
|
@@ -53682,7 +53691,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
|
|
|
53682
53691
|
// Workaround to support Firefox autoplay on FF 42.
|
|
53683
53692
|
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
53684
53693
|
videoElement.preload = "auto";
|
|
53685
|
-
_this.version = /* PLAYER_VERSION */"3.33.4-dev.
|
|
53694
|
+
_this.version = /* PLAYER_VERSION */"3.33.4-dev.2024090600";
|
|
53686
53695
|
_this.log = src_log/* default */.A;
|
|
53687
53696
|
_this.state = "STOPPED";
|
|
53688
53697
|
_this.videoElement = videoElement;
|
|
@@ -56170,7 +56179,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
|
|
|
56170
56179
|
* Use of a WeakSet ensure the object is garbage collected if it's not used anymore.
|
|
56171
56180
|
*/
|
|
56172
56181
|
Player._priv_currentlyUsedVideoElements = new WeakSet();
|
|
56173
|
-
Player.version = /* PLAYER_VERSION */"3.33.4-dev.
|
|
56182
|
+
Player.version = /* PLAYER_VERSION */"3.33.4-dev.2024090600";
|
|
56174
56183
|
/* harmony default export */ var public_api = (Player);
|
|
56175
56184
|
;// CONCATENATED MODULE: ./src/core/api/index.ts
|
|
56176
56185
|
/**
|