rx-player 3.33.4-dev.2024081600 → 3.33.4-dev.2024083000

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/VERSION CHANGED
@@ -1 +1 @@
1
- 3.33.4-dev.2024081600
1
+ 3.33.4-dev.2024083000
@@ -37,8 +37,10 @@ declare let isWebOs2021: boolean;
37
37
  declare let isWebOs2022: boolean;
38
38
  /** `true` for Panasonic devices. */
39
39
  declare let isPanasonic: boolean;
40
+ /** `true` we're relying on Philips's NetTv browser. */
41
+ declare let isPhilipsNetTv: boolean;
40
42
  /** `true` for the PlayStation 5 game console. */
41
43
  declare let isPlayStation5: boolean;
42
44
  /** `true` for the Xbox game consoles. */
43
45
  declare let isXbox: boolean;
44
- export { isEdgeChromium, isIE11, isIEOrEdge, isFirefox, isPanasonic, isPlayStation5, isXbox, isSafariDesktop, isSafariMobile, isSamsungBrowser, isTizen, isWebOs, isWebOs2021, isWebOs2022, };
46
+ export { isEdgeChromium, isIE11, isIEOrEdge, isFirefox, isPanasonic, isPhilipsNetTv, isPlayStation5, isXbox, isSafariDesktop, isSafariMobile, isSamsungBrowser, isTizen, isWebOs, isWebOs2021, isWebOs2022, };
@@ -38,6 +38,8 @@ var isWebOs2021 = false;
38
38
  var isWebOs2022 = false;
39
39
  /** `true` for Panasonic devices. */
40
40
  var isPanasonic = false;
41
+ /** `true` we're relying on Philips's NetTv browser. */
42
+ var isPhilipsNetTv = false;
41
43
  /** `true` for the PlayStation 5 game console. */
42
44
  var isPlayStation5 = false;
43
45
  /** `true` for the Xbox game consoles. */
@@ -113,6 +115,10 @@ var isXbox = false;
113
115
  isWebOs2021 = true;
114
116
  }
115
117
  }
118
+ else if (navigator.userAgent.indexOf("NETTV") !== -1 &&
119
+ navigator.userAgent.indexOf("Philips") !== -1) {
120
+ isPhilipsNetTv = true;
121
+ }
116
122
  else if (/[Pp]anasonic/.test(navigator.userAgent)) {
117
123
  isPanasonic = true;
118
124
  }
@@ -120,4 +126,4 @@ var isXbox = false;
120
126
  isXbox = true;
121
127
  }
122
128
  })());
123
- export { isEdgeChromium, isIE11, isIEOrEdge, isFirefox, isPanasonic, isPlayStation5, isXbox, isSafariDesktop, isSafariMobile, isSamsungBrowser, isTizen, isWebOs, isWebOs2021, isWebOs2022, };
129
+ export { isEdgeChromium, isIE11, isIEOrEdge, isFirefox, isPanasonic, isPhilipsNetTv, isPlayStation5, isXbox, isSafariDesktop, isSafariMobile, isSamsungBrowser, isTizen, isWebOs, isWebOs2021, isWebOs2022, };
@@ -7,6 +7,8 @@
7
7
  * - (2022-11-21): WebOS (LG TVs), for some encrypted contents, just
8
8
  * rebuffered indefinitely when loading a content already-loaded on the
9
9
  * HTMLMediaElement.
10
+ * - (2024-08-23): Seen on Philips 2024 and 2023 in:
11
+ * https://github.com/canalplus/rx-player/issues/1464
10
12
  *
11
13
  * @returns {boolean}
12
14
  */
@@ -1,4 +1,4 @@
1
- import { isPanasonic, isWebOs, } from "./browser_detection";
1
+ import { 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.
@@ -8,9 +8,11 @@ import { isPanasonic, isWebOs, } from "./browser_detection";
8
8
  * - (2022-11-21): WebOS (LG TVs), for some encrypted contents, just
9
9
  * rebuffered indefinitely when loading a content already-loaded on the
10
10
  * HTMLMediaElement.
11
+ * - (2024-08-23): Seen on Philips 2024 and 2023 in:
12
+ * https://github.com/canalplus/rx-player/issues/1464
11
13
  *
12
14
  * @returns {boolean}
13
15
  */
14
16
  export default function canReuseMediaKeys() {
15
- return !isWebOs && !isPanasonic;
17
+ return !isWebOs && !isPhilipsNetTv && !isPanasonic;
16
18
  }
@@ -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.2024081600";
91
+ _this.version = /* PLAYER_VERSION */ "3.33.4-dev.2024083000";
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.2024081600";
2514
+ Player.version = /* PLAYER_VERSION */ "3.33.4-dev.2024083000";
2515
2515
  export default Player;
package/dist/rx-player.js CHANGED
@@ -60,6 +60,7 @@ var READY_STATES = {
60
60
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
61
61
  /* harmony export */ A7: function() { return /* binding */ isPlayStation5; },
62
62
  /* harmony export */ Fr: function() { return /* binding */ isSafariDesktop; },
63
+ /* harmony export */ NV: function() { return /* binding */ isPhilipsNetTv; },
63
64
  /* harmony export */ P5: function() { return /* binding */ isPanasonic; },
64
65
  /* harmony export */ Pb: function() { return /* binding */ isSamsungBrowser; },
65
66
  /* harmony export */ ZN: function() { return /* binding */ isTizen; },
@@ -113,6 +114,8 @@ var isWebOs2021 = false;
113
114
  var isWebOs2022 = false;
114
115
  /** `true` for Panasonic devices. */
115
116
  var isPanasonic = false;
117
+ /** `true` we're relying on Philips's NetTv browser. */
118
+ var isPhilipsNetTv = false;
116
119
  /** `true` for the PlayStation 5 game console. */
117
120
  var isPlayStation5 = false;
118
121
  /** `true` for the Xbox game consoles. */
@@ -168,6 +171,8 @@ var isXbox = false;
168
171
  } else if (/[Ww]eb[O0]S.TV-2021/.test(navigator.userAgent) || /[Cc]hr[o0]me\/79/.test(navigator.userAgent)) {
169
172
  isWebOs2021 = true;
170
173
  }
174
+ } else if (navigator.userAgent.indexOf("NETTV") !== -1 && navigator.userAgent.indexOf("Philips") !== -1) {
175
+ isPhilipsNetTv = true;
171
176
  } else if (/[Pp]anasonic/.test(navigator.userAgent)) {
172
177
  isPanasonic = true;
173
178
  } else if (navigator.userAgent.indexOf("Xbox") !== -1) {
@@ -4935,11 +4940,13 @@ function _createOrLoadSession() {
4935
4940
  * - (2022-11-21): WebOS (LG TVs), for some encrypted contents, just
4936
4941
  * rebuffered indefinitely when loading a content already-loaded on the
4937
4942
  * HTMLMediaElement.
4943
+ * - (2024-08-23): Seen on Philips 2024 and 2023 in:
4944
+ * https://github.com/canalplus/rx-player/issues/1464
4938
4945
  *
4939
4946
  * @returns {boolean}
4940
4947
  */
4941
4948
  function canReuseMediaKeys() {
4942
- return !browser_detection/* isWebOs */.hF && !browser_detection/* isPanasonic */.P5;
4949
+ return !browser_detection/* isWebOs */.hF && !browser_detection/* isPhilipsNetTv */.NV && !browser_detection/* isPanasonic */.P5;
4943
4950
  }
4944
4951
  ;// CONCATENATED MODULE: ./src/compat/should_renew_media_key_system_access.ts
4945
4952
  /**
@@ -53675,7 +53682,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
53675
53682
  // Workaround to support Firefox autoplay on FF 42.
53676
53683
  // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
53677
53684
  videoElement.preload = "auto";
53678
- _this.version = /* PLAYER_VERSION */"3.33.4-dev.2024081600";
53685
+ _this.version = /* PLAYER_VERSION */"3.33.4-dev.2024083000";
53679
53686
  _this.log = src_log/* default */.A;
53680
53687
  _this.state = "STOPPED";
53681
53688
  _this.videoElement = videoElement;
@@ -56163,7 +56170,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
56163
56170
  * Use of a WeakSet ensure the object is garbage collected if it's not used anymore.
56164
56171
  */
56165
56172
  Player._priv_currentlyUsedVideoElements = new WeakSet();
56166
- Player.version = /* PLAYER_VERSION */"3.33.4-dev.2024081600";
56173
+ Player.version = /* PLAYER_VERSION */"3.33.4-dev.2024083000";
56167
56174
  /* harmony default export */ var public_api = (Player);
56168
56175
  ;// CONCATENATED MODULE: ./src/core/api/index.ts
56169
56176
  /**