rx-player 4.3.0 → 4.3.1-dev.2025040700
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 +7 -0
- package/VERSION +1 -1
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.d.ts +6 -0
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.d.ts.map +1 -1
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.js +7 -1
- package/dist/commonjs/main_thread/api/public_api.js +2 -2
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.d.ts +6 -0
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.d.ts.map +1 -1
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.js +8 -2
- package/dist/es2017/main_thread/api/public_api.js +2 -2
- package/dist/rx-player.js +3 -3
- package/dist/rx-player.min.js +14 -14
- package/package.json +1 -1
- package/src/compat/can_rely_on_request_media_key_system_access.ts +8 -2
- package/src/main_thread/api/public_api.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Current dev build: v4.3.1-dev.2025040700
|
|
4
|
+
|
|
5
|
+
### Bug fixes
|
|
6
|
+
|
|
7
|
+
- Firefox: check extensively Playready DRMs support before using them to work-around
|
|
8
|
+
recent firefox issue with PlayReady integration [#1691]
|
|
9
|
+
|
|
3
10
|
## v4.3.0
|
|
4
11
|
|
|
5
12
|
### Features
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.3.
|
|
1
|
+
4.3.1-dev.2025040700
|
|
@@ -28,6 +28,12 @@
|
|
|
28
28
|
* 'generateRequest' on 'MediaKeySession': Failed to create MF PR CdmSession".
|
|
29
29
|
* In this particular case, the work-around was to consider recommendation.3000 as not supported
|
|
30
30
|
* and try another keySystem.
|
|
31
|
+
*
|
|
32
|
+
* - On Firefox v.137:
|
|
33
|
+
* Similar issue with requestMediaKeySystemAccess that resolves correctly with
|
|
34
|
+
* 'com.microsoft.playready.recommendation.3000' but fail at the `createMediaKeys``
|
|
35
|
+
* step with error `WMFCDMProxy: Init: WMFCDM init error`
|
|
36
|
+
*
|
|
31
37
|
* @param keySystem - The key system in use.
|
|
32
38
|
* @returns {boolean}
|
|
33
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"can_rely_on_request_media_key_system_access.d.ts","sourceRoot":"","sources":["../../../src/compat/can_rely_on_request_media_key_system_access.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH
|
|
1
|
+
{"version":3,"file":"can_rely_on_request_media_key_system_access.d.ts","sourceRoot":"","sources":["../../../src/compat/can_rely_on_request_media_key_system_access.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,oCAAoC,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAK/E"}
|
|
@@ -32,11 +32,17 @@ var browser_detection_1 = require("./browser_detection");
|
|
|
32
32
|
* 'generateRequest' on 'MediaKeySession': Failed to create MF PR CdmSession".
|
|
33
33
|
* In this particular case, the work-around was to consider recommendation.3000 as not supported
|
|
34
34
|
* and try another keySystem.
|
|
35
|
+
*
|
|
36
|
+
* - On Firefox v.137:
|
|
37
|
+
* Similar issue with requestMediaKeySystemAccess that resolves correctly with
|
|
38
|
+
* 'com.microsoft.playready.recommendation.3000' but fail at the `createMediaKeys``
|
|
39
|
+
* step with error `WMFCDMProxy: Init: WMFCDM init error`
|
|
40
|
+
*
|
|
35
41
|
* @param keySystem - The key system in use.
|
|
36
42
|
* @returns {boolean}
|
|
37
43
|
*/
|
|
38
44
|
function canRelyOnRequestMediaKeySystemAccess(keySystem) {
|
|
39
|
-
if (browser_detection_1.isEdgeChromium && keySystem.indexOf("playready") !== -1) {
|
|
45
|
+
if ((browser_detection_1.isEdgeChromium || browser_detection_1.isFirefox) && keySystem.indexOf("playready") !== -1) {
|
|
40
46
|
return false;
|
|
41
47
|
}
|
|
42
48
|
return true;
|
|
@@ -162,7 +162,7 @@ var Player = /** @class */ (function (_super) {
|
|
|
162
162
|
// Workaround to support Firefox autoplay on FF 42.
|
|
163
163
|
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
164
164
|
videoElement.preload = "auto";
|
|
165
|
-
_this.version = /* PLAYER_VERSION */ "4.3.
|
|
165
|
+
_this.version = /* PLAYER_VERSION */ "4.3.1-dev.2025040700";
|
|
166
166
|
_this.log = log_1.default;
|
|
167
167
|
_this.state = "STOPPED";
|
|
168
168
|
_this.videoElement = videoElement;
|
|
@@ -2771,5 +2771,5 @@ var Player = /** @class */ (function (_super) {
|
|
|
2771
2771
|
Player._priv_currentlyUsedVideoElements = new WeakSet();
|
|
2772
2772
|
return Player;
|
|
2773
2773
|
}(event_emitter_1.default));
|
|
2774
|
-
Player.version = /* PLAYER_VERSION */ "4.3.
|
|
2774
|
+
Player.version = /* PLAYER_VERSION */ "4.3.1-dev.2025040700";
|
|
2775
2775
|
exports.default = Player;
|
|
@@ -28,6 +28,12 @@
|
|
|
28
28
|
* 'generateRequest' on 'MediaKeySession': Failed to create MF PR CdmSession".
|
|
29
29
|
* In this particular case, the work-around was to consider recommendation.3000 as not supported
|
|
30
30
|
* and try another keySystem.
|
|
31
|
+
*
|
|
32
|
+
* - On Firefox v.137:
|
|
33
|
+
* Similar issue with requestMediaKeySystemAccess that resolves correctly with
|
|
34
|
+
* 'com.microsoft.playready.recommendation.3000' but fail at the `createMediaKeys``
|
|
35
|
+
* step with error `WMFCDMProxy: Init: WMFCDM init error`
|
|
36
|
+
*
|
|
31
37
|
* @param keySystem - The key system in use.
|
|
32
38
|
* @returns {boolean}
|
|
33
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"can_rely_on_request_media_key_system_access.d.ts","sourceRoot":"","sources":["../../../src/compat/can_rely_on_request_media_key_system_access.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH
|
|
1
|
+
{"version":3,"file":"can_rely_on_request_media_key_system_access.d.ts","sourceRoot":"","sources":["../../../src/compat/can_rely_on_request_media_key_system_access.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,oCAAoC,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAK/E"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { isEdgeChromium } from "./browser_detection";
|
|
16
|
+
import { isEdgeChromium, isFirefox } from "./browser_detection";
|
|
17
17
|
/**
|
|
18
18
|
* This functions tells if the RxPlayer can trust the browser when it has
|
|
19
19
|
* successfully granted the MediaKeySystemAccess with
|
|
@@ -29,11 +29,17 @@ import { isEdgeChromium } from "./browser_detection";
|
|
|
29
29
|
* 'generateRequest' on 'MediaKeySession': Failed to create MF PR CdmSession".
|
|
30
30
|
* In this particular case, the work-around was to consider recommendation.3000 as not supported
|
|
31
31
|
* and try another keySystem.
|
|
32
|
+
*
|
|
33
|
+
* - On Firefox v.137:
|
|
34
|
+
* Similar issue with requestMediaKeySystemAccess that resolves correctly with
|
|
35
|
+
* 'com.microsoft.playready.recommendation.3000' but fail at the `createMediaKeys``
|
|
36
|
+
* step with error `WMFCDMProxy: Init: WMFCDM init error`
|
|
37
|
+
*
|
|
32
38
|
* @param keySystem - The key system in use.
|
|
33
39
|
* @returns {boolean}
|
|
34
40
|
*/
|
|
35
41
|
export function canRelyOnRequestMediaKeySystemAccess(keySystem) {
|
|
36
|
-
if (isEdgeChromium && keySystem.indexOf("playready") !== -1) {
|
|
42
|
+
if ((isEdgeChromium || isFirefox) && keySystem.indexOf("playready") !== -1) {
|
|
37
43
|
return false;
|
|
38
44
|
}
|
|
39
45
|
return true;
|
|
@@ -144,7 +144,7 @@ class Player extends EventEmitter {
|
|
|
144
144
|
// Workaround to support Firefox autoplay on FF 42.
|
|
145
145
|
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
146
146
|
videoElement.preload = "auto";
|
|
147
|
-
this.version = /* PLAYER_VERSION */ "4.3.
|
|
147
|
+
this.version = /* PLAYER_VERSION */ "4.3.1-dev.2025040700";
|
|
148
148
|
this.log = log;
|
|
149
149
|
this.state = "STOPPED";
|
|
150
150
|
this.videoElement = videoElement;
|
|
@@ -2549,5 +2549,5 @@ class Player extends EventEmitter {
|
|
|
2549
2549
|
* Use of a WeakSet ensure the object is garbage collected if it's not used anymore.
|
|
2550
2550
|
*/
|
|
2551
2551
|
Player._priv_currentlyUsedVideoElements = new WeakSet();
|
|
2552
|
-
Player.version = /* PLAYER_VERSION */ "4.3.
|
|
2552
|
+
Player.version = /* PLAYER_VERSION */ "4.3.1-dev.2025040700";
|
|
2553
2553
|
export default Player;
|
package/dist/rx-player.js
CHANGED
|
@@ -8862,7 +8862,7 @@
|
|
|
8862
8862
|
|
|
8863
8863
|
// src/compat/can_rely_on_request_media_key_system_access.ts
|
|
8864
8864
|
function canRelyOnRequestMediaKeySystemAccess(keySystem) {
|
|
8865
|
-
if (isEdgeChromium && keySystem.indexOf("playready") !== -1) {
|
|
8865
|
+
if ((isEdgeChromium || isFirefox) && keySystem.indexOf("playready") !== -1) {
|
|
8866
8866
|
return false;
|
|
8867
8867
|
}
|
|
8868
8868
|
return true;
|
|
@@ -38135,7 +38135,7 @@ ${event}`
|
|
|
38135
38135
|
} = parseConstructorOptions(options);
|
|
38136
38136
|
videoElement.preload = "auto";
|
|
38137
38137
|
this.version = /* PLAYER_VERSION */
|
|
38138
|
-
"4.3.
|
|
38138
|
+
"4.3.1-dev.2025040700";
|
|
38139
38139
|
this.log = log_default;
|
|
38140
38140
|
this.state = "STOPPED";
|
|
38141
38141
|
this.videoElement = videoElement;
|
|
@@ -40760,7 +40760,7 @@ ${event}`
|
|
|
40760
40760
|
_Player._priv_currentlyUsedVideoElements = /* @__PURE__ */ new WeakSet();
|
|
40761
40761
|
var Player = _Player;
|
|
40762
40762
|
Player.version = /* PLAYER_VERSION */
|
|
40763
|
-
"4.3.
|
|
40763
|
+
"4.3.1-dev.2025040700";
|
|
40764
40764
|
var public_api_default = Player;
|
|
40765
40765
|
|
|
40766
40766
|
// src/main_thread/api/index.ts
|