rx-player 3.32.0-dev.2023092900 → 3.32.1
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 +1 -3
- package/VERSION +1 -1
- package/dist/_esm5.processed/core/api/public_api.js +2 -2
- package/dist/mpd-parser.wasm +0 -0
- package/dist/rx-player.d.ts +1 -1
- package/dist/rx-player.js +2 -2
- package/dist/rx-player.min.js +1 -1
- package/jest.config.js +1 -1
- package/package.json +1 -2
- package/sonar-project.properties +1 -1
- package/src/core/api/public_api.ts +2 -2
- package/src/core/decrypt/__tests__/__global__/server_certificate.test.ts +1 -1
- package/src/typings/globals.d.ts +3 -0
- package/tsconfig.json +1 -1
- package/tsconfig.modules.json +4 -2
- package/dist/_esm5.processed/features/initialize_features.d.ts +0 -19
- package/dist/_esm5.processed/features/initialize_features.js +0 -114
- package/dist/_esm5.processed/index.d.ts +0 -17
- package/dist/_esm5.processed/index.js +0 -34
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rx-player",
|
|
3
3
|
"author": "Canal+",
|
|
4
|
-
"version": "3.32.
|
|
4
|
+
"version": "3.32.1",
|
|
5
5
|
"description": "Canal+ HTML5 Video Player",
|
|
6
6
|
"main": "./dist/rx-player.js",
|
|
7
7
|
"keywords": [
|
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
"@types/chai": "4.3.6",
|
|
88
88
|
"@types/jest": "29.5.5",
|
|
89
89
|
"@types/mocha": "10.0.1",
|
|
90
|
-
"@types/node": "20.7.0",
|
|
91
90
|
"@types/react": "18.2.23",
|
|
92
91
|
"@types/react-dom": "18.2.7",
|
|
93
92
|
"@types/sinon": "10.0.17",
|
package/sonar-project.properties
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
sonar.projectKey=rx-player
|
|
2
2
|
sonar.organization=rx-player
|
|
3
3
|
sonar.projectName=rx-player
|
|
4
|
-
sonar.projectVersion=3.32.
|
|
4
|
+
sonar.projectVersion=3.32.1
|
|
5
5
|
sonar.sources=./src,./demo,./tests
|
|
6
6
|
sonar.exclusions=demo/full/bundle.js,demo/standalone/lib.js,demo/bundle.js
|
|
7
7
|
sonar.host.url=https://sonarcloud.io
|
|
@@ -379,7 +379,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
|
|
|
379
379
|
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
380
380
|
videoElement.preload = "auto";
|
|
381
381
|
|
|
382
|
-
this.version = /* PLAYER_VERSION */"3.32.
|
|
382
|
+
this.version = /* PLAYER_VERSION */"3.32.1";
|
|
383
383
|
this.log = log;
|
|
384
384
|
this.state = "STOPPED";
|
|
385
385
|
this.videoElement = videoElement;
|
|
@@ -3103,7 +3103,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
|
|
|
3103
3103
|
return mediaElementTrackChoiceManager;
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
|
-
Player.version = /* PLAYER_VERSION */"3.32.
|
|
3106
|
+
Player.version = /* PLAYER_VERSION */"3.32.1";
|
|
3107
3107
|
|
|
3108
3108
|
/** Every events sent by the RxPlayer's public API. */
|
|
3109
3109
|
interface IPublicAPIEvent {
|
|
@@ -132,7 +132,7 @@ describe("core - decrypt - global tests - server certificate", () => {
|
|
|
132
132
|
expect(mockSetServerCertificate).toHaveBeenCalledTimes(1);
|
|
133
133
|
expect(mockCreateSession).toHaveBeenCalledTimes(1);
|
|
134
134
|
done();
|
|
135
|
-
},
|
|
135
|
+
}, 100);
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
/* eslint-disable max-len */
|
package/src/typings/globals.d.ts
CHANGED
package/tsconfig.json
CHANGED
package/tsconfig.modules.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"strictPropertyInitialization": true,
|
|
14
14
|
"noUnusedParameters": true,
|
|
15
15
|
"noUnusedLocals": true,
|
|
16
|
-
"types": ["
|
|
16
|
+
"types": ["jest"],
|
|
17
17
|
"moduleResolution": "node",
|
|
18
18
|
"module": "es2015",
|
|
19
19
|
"typeRoots": [
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
],
|
|
30
30
|
"exclude":[
|
|
31
31
|
"./src/**/*.test.ts",
|
|
32
|
-
"./src/typings/globals.d.ts"
|
|
32
|
+
"./src/typings/globals.d.ts",
|
|
33
|
+
"./src/features/initialize_features.ts",
|
|
34
|
+
"./src/index.ts"
|
|
33
35
|
]
|
|
34
36
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2015 CANAL+ Group
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Selects the features to include.
|
|
18
|
-
*/
|
|
19
|
-
export default function initializeFeaturesObject(): void;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2015 CANAL+ Group
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
17
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
18
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
19
|
-
import features from "./features_object";
|
|
20
|
-
/**
|
|
21
|
-
* Selects the features to include.
|
|
22
|
-
*/
|
|
23
|
-
export default function initializeFeaturesObject() {
|
|
24
|
-
var HAS_MEDIA_SOURCE = 0 /* __FEATURES__.SMOOTH */ === 1 /* __FEATURES__.IS_ENABLED */ ||
|
|
25
|
-
0 /* __FEATURES__.DASH */ === 1 /* __FEATURES__.IS_ENABLED */ ||
|
|
26
|
-
0 /* __FEATURES__.LOCAL_MANIFEST */ === 1 /* __FEATURES__.IS_ENABLED */ ||
|
|
27
|
-
0 /* __FEATURES__.METAPLAYLIST */ === 1 /* __FEATURES__.IS_ENABLED */;
|
|
28
|
-
if (HAS_MEDIA_SOURCE) {
|
|
29
|
-
features.mediaSourceInit = require("../core/init/media_source_content_initializer.ts")
|
|
30
|
-
.default;
|
|
31
|
-
}
|
|
32
|
-
if (0 /* __FEATURES__.EME */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
33
|
-
features.decrypt = require("../core/decrypt/index.ts").default;
|
|
34
|
-
}
|
|
35
|
-
if (0 /* __FEATURES__.BIF_PARSER */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
36
|
-
features.imageBuffer =
|
|
37
|
-
require("../core/segment_buffers/implementations/image/index.ts").default;
|
|
38
|
-
features.imageParser = require("../parsers/images/bif.ts").default;
|
|
39
|
-
}
|
|
40
|
-
// Feature switching the Native TextTrack implementation
|
|
41
|
-
var HAS_NATIVE_MODE = 0 /* __FEATURES__.NATIVE_VTT */ === 1 /* __FEATURES__.IS_ENABLED */ ||
|
|
42
|
-
0 /* __FEATURES__.NATIVE_SAMI */ === 1 /* __FEATURES__.IS_ENABLED */ ||
|
|
43
|
-
0 /* __FEATURES__.NATIVE_TTML */ === 1 /* __FEATURES__.IS_ENABLED */ ||
|
|
44
|
-
0 /* __FEATURES__.NATIVE_SRT */ === 1 /* __FEATURES__.IS_ENABLED */;
|
|
45
|
-
if (0 /* __FEATURES__.SMOOTH */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
46
|
-
features.transports.smooth = require("../transports/smooth/index.ts").default;
|
|
47
|
-
}
|
|
48
|
-
if (0 /* __FEATURES__.DASH */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
49
|
-
features.transports.dash = require("../transports/dash/index.ts").default;
|
|
50
|
-
features.dashParsers.js =
|
|
51
|
-
require("../parsers/manifest/dash/js-parser/index.ts").default;
|
|
52
|
-
}
|
|
53
|
-
if (0 /* __FEATURES__.LOCAL_MANIFEST */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
54
|
-
features.transports.local = require("../transports/local/index.ts").default;
|
|
55
|
-
}
|
|
56
|
-
if (0 /* __FEATURES__.METAPLAYLIST */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
57
|
-
features.transports.metaplaylist =
|
|
58
|
-
require("../transports/metaplaylist/index.ts").default;
|
|
59
|
-
}
|
|
60
|
-
if (0 /* __FEATURES__.DEBUG_ELEMENT */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
61
|
-
features.createDebugElement = require("../core/api/debug/index.ts").default;
|
|
62
|
-
}
|
|
63
|
-
if (HAS_NATIVE_MODE) {
|
|
64
|
-
features.nativeTextTracksBuffer =
|
|
65
|
-
require("../core/segment_buffers/implementations/text/native/index.ts").default;
|
|
66
|
-
if (0 /* __FEATURES__.NATIVE_VTT */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
67
|
-
features.nativeTextTracksParsers.vtt =
|
|
68
|
-
require("../parsers/texttracks/webvtt/native/index.ts").default;
|
|
69
|
-
}
|
|
70
|
-
if (0 /* __FEATURES__.NATIVE_TTML */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
71
|
-
features.nativeTextTracksParsers.ttml =
|
|
72
|
-
require("../parsers/texttracks/ttml/native/index.ts").default;
|
|
73
|
-
}
|
|
74
|
-
if (0 /* __FEATURES__.NATIVE_SAMI */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
75
|
-
features.nativeTextTracksParsers.sami =
|
|
76
|
-
require("../parsers/texttracks/sami/native.ts").default;
|
|
77
|
-
}
|
|
78
|
-
if (0 /* __FEATURES__.NATIVE_SRT */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
79
|
-
features.nativeTextTracksParsers.srt =
|
|
80
|
-
require("../parsers/texttracks/srt/native.ts").default;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
// Feature switching the HTML TextTrack implementation
|
|
84
|
-
var HAS_HTML_MODE = 0 /* __FEATURES__.HTML_VTT */ === 1 /* __FEATURES__.IS_ENABLED */ ||
|
|
85
|
-
0 /* __FEATURES__.HTML_SAMI */ === 1 /* __FEATURES__.IS_ENABLED */ ||
|
|
86
|
-
0 /* __FEATURES__.HTML_TTML */ === 1 /* __FEATURES__.IS_ENABLED */ ||
|
|
87
|
-
0 /* __FEATURES__.HTML_SRT */ === 1 /* __FEATURES__.IS_ENABLED */;
|
|
88
|
-
if (HAS_HTML_MODE) {
|
|
89
|
-
features.htmlTextTracksBuffer =
|
|
90
|
-
require("../core/segment_buffers/implementations/text/html/index.ts").default;
|
|
91
|
-
if (0 /* __FEATURES__.HTML_SAMI */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
92
|
-
features.htmlTextTracksParsers.sami =
|
|
93
|
-
require("../parsers/texttracks/sami/html.ts").default;
|
|
94
|
-
}
|
|
95
|
-
if (0 /* __FEATURES__.HTML_TTML */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
96
|
-
features.htmlTextTracksParsers.ttml =
|
|
97
|
-
require("../parsers/texttracks/ttml/html/index.ts").default;
|
|
98
|
-
}
|
|
99
|
-
if (0 /* __FEATURES__.HTML_SRT */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
100
|
-
features.htmlTextTracksParsers.srt =
|
|
101
|
-
require("../parsers/texttracks/srt/html.ts").default;
|
|
102
|
-
}
|
|
103
|
-
if (0 /* __FEATURES__.HTML_VTT */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
104
|
-
features.htmlTextTracksParsers.vtt =
|
|
105
|
-
require("../parsers/texttracks/webvtt/html/index.ts").default;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
if (0 /* __FEATURES__.DIRECTFILE */ === 1 /* __FEATURES__.IS_ENABLED */) {
|
|
109
|
-
var initDirectFile = require("../core/init/directfile_content_initializer.ts").default;
|
|
110
|
-
var mediaElementTrackChoiceManager = require("../core/api/tracks_management/media_element_track_choice_manager.ts")
|
|
111
|
-
.default;
|
|
112
|
-
features.directfile = { initDirectFile: initDirectFile, mediaElementTrackChoiceManager: mediaElementTrackChoiceManager };
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2015 CANAL+ Group
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import Player from "./core/api";
|
|
17
|
-
export default Player;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2015 CANAL+ Group
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* This file exports a Player class with a default feature set (depends on the
|
|
18
|
-
* environment variables set at build).
|
|
19
|
-
*
|
|
20
|
-
* This is the class used from a regular build.
|
|
21
|
-
*/
|
|
22
|
-
import isDebugModeEnabled from "./compat/is_debug_mode_enabled";
|
|
23
|
-
import Player from "./core/api";
|
|
24
|
-
import initializeFeatures from "./features/initialize_features";
|
|
25
|
-
import logger from "./log";
|
|
26
|
-
// set initial features according to environment variables
|
|
27
|
-
initializeFeatures();
|
|
28
|
-
if (isDebugModeEnabled()) {
|
|
29
|
-
logger.setLevel("DEBUG");
|
|
30
|
-
}
|
|
31
|
-
else if (0 /* __ENVIRONMENT__.CURRENT_ENV */ === 1 /* __ENVIRONMENT__.DEV */) {
|
|
32
|
-
logger.setLevel("NONE" /* __LOGGER_LEVEL__.CURRENT_LEVEL */);
|
|
33
|
-
}
|
|
34
|
-
export default Player;
|