rx-player 3.30.0 → 3.30.1-dev.2023032300
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 +8 -0
- package/VERSION +1 -1
- package/dist/_esm5.processed/core/api/public_api.js +2 -2
- package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.js +4 -1
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/index.js +0 -2
- package/dist/_esm5.processed/manifest/manifest.js +1 -1
- package/dist/mpd-parser.wasm +0 -0
- package/dist/rx-player.js +7 -4
- package/dist/rx-player.min.js +1 -1
- package/package.json +9 -2
- package/scripts/fast_demo_build.js +1 -1
- package/scripts/generate_full_demo.js +1 -1
- package/sonar-project.properties +1 -1
- package/src/core/api/public_api.ts +2 -2
- package/src/core/stream/orchestrator/stream_orchestrator.ts +5 -1
- package/src/experimental/tools/mediaCapabilitiesProber/index.ts +0 -4
- package/src/manifest/manifest.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rx-player",
|
|
3
3
|
"author": "Canal+",
|
|
4
|
-
"version": "3.30.
|
|
4
|
+
"version": "3.30.1-dev.2023032300",
|
|
5
5
|
"description": "Canal+ HTML5 Video Player",
|
|
6
6
|
"main": "./dist/rx-player.js",
|
|
7
7
|
"keywords": [
|
|
@@ -40,12 +40,14 @@
|
|
|
40
40
|
"check:appveyor": "npm run check:types && npm run lint && npm run lint:demo && npm run lint:tests && npm run test:appveyor",
|
|
41
41
|
"check:types": "tsc --noEmit --project .",
|
|
42
42
|
"check:types:watch": "tsc --noEmit --watch --project .",
|
|
43
|
+
"check:demo": "npm run check:demo:types && npm run lint:demo",
|
|
44
|
+
"check:demo:types": "tsc --noEmit --project demo/full",
|
|
43
45
|
"demo": "node ./scripts/generate_full_demo.js --production-mode",
|
|
44
46
|
"demo:min": "node ./scripts/generate_full_demo.js --production-mode --minify",
|
|
45
47
|
"demo:watch": "node ./scripts/generate_full_demo.js --watch --production-mode",
|
|
46
48
|
"doc": "rm -rf doc/generated; node ./scripts/doc-generator/index.js doc/ doc/generated \"$(cat VERSION)\"",
|
|
47
49
|
"lint": "eslint src -c .eslintrc.js",
|
|
48
|
-
"lint:demo": "eslint demo/full/scripts",
|
|
50
|
+
"lint:demo": "eslint -c demo/full/.eslintrc.js demo/full/scripts",
|
|
49
51
|
"lint:tests": "eslint tests/**/*.js --ignore-pattern '/tests/performance/bundle*'",
|
|
50
52
|
"list": "node scripts/list-npm-scripts.js",
|
|
51
53
|
"prepublishOnly": "npm run build:modular",
|
|
@@ -86,6 +88,8 @@
|
|
|
86
88
|
"@types/jest": "29.4.0",
|
|
87
89
|
"@types/mocha": "10.0.1",
|
|
88
90
|
"@types/node": "18.14.0",
|
|
91
|
+
"@types/react": "18.0.28",
|
|
92
|
+
"@types/react-dom": "18.0.11",
|
|
89
93
|
"@types/sinon": "10.0.13",
|
|
90
94
|
"@typescript-eslint/eslint-plugin": "5.53.0",
|
|
91
95
|
"@typescript-eslint/eslint-plugin-tslint": "5.53.0",
|
|
@@ -140,6 +144,9 @@
|
|
|
140
144
|
"demo": "Build the demo in demo/bundle.js",
|
|
141
145
|
"demo:min": "Build the demo and minify it in demo/bundle.js",
|
|
142
146
|
"demo:watch": "Build the demo in demo/bundle.js each times the files update.",
|
|
147
|
+
"check:demo": "Check the validity of the full demo directory by running the type checker and linter on it",
|
|
148
|
+
"check:demo:types": "Check TypeScript types in full demo files",
|
|
149
|
+
"lint:demo": "Run linter on the full demo files",
|
|
143
150
|
"standalone": "Build and launch the \"standalone\" demo (without any UI) on a local server. Re-build on file updates.",
|
|
144
151
|
"certificate": "Generate a certificate to be able to use HTTPS locally for the demo pages (`npm run start` and `npm run standalone` will then listen to HTTPS requests through a communicated port)"
|
|
145
152
|
},
|
|
@@ -77,7 +77,7 @@ function fastDemoBuild(options) {
|
|
|
77
77
|
|
|
78
78
|
// Create a context for incremental builds
|
|
79
79
|
esbuild.context({
|
|
80
|
-
entryPoints: [path.join(__dirname, "../demo/full/scripts/index.
|
|
80
|
+
entryPoints: [path.join(__dirname, "../demo/full/scripts/index.tsx")],
|
|
81
81
|
bundle: true,
|
|
82
82
|
minify,
|
|
83
83
|
outfile: path.join(__dirname, "../demo/full/bundle.js"),
|
|
@@ -60,7 +60,7 @@ function generateFullDemo(options) {
|
|
|
60
60
|
|
|
61
61
|
const webpackDemoConfig = {
|
|
62
62
|
mode: isDevMode ? "development" : "production",
|
|
63
|
-
entry: path.join(__dirname, "../demo/full/scripts/index.
|
|
63
|
+
entry: path.join(__dirname, "../demo/full/scripts/index.tsx"),
|
|
64
64
|
resolve: {
|
|
65
65
|
extensions: [".ts", ".tsx", ".js", ".jsx", ".json"],
|
|
66
66
|
},
|
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.30.
|
|
4
|
+
sonar.projectVersion=3.30.1-dev.2023032300
|
|
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
|
|
@@ -364,7 +364,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
|
|
|
364
364
|
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
365
365
|
videoElement.preload = "auto";
|
|
366
366
|
|
|
367
|
-
this.version = /* PLAYER_VERSION */"3.30.
|
|
367
|
+
this.version = /* PLAYER_VERSION */"3.30.1-dev.2023032300";
|
|
368
368
|
this.log = log;
|
|
369
369
|
this.state = "STOPPED";
|
|
370
370
|
this.videoElement = videoElement;
|
|
@@ -2985,7 +2985,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
|
|
|
2985
2985
|
return mediaElementTrackChoiceManager;
|
|
2986
2986
|
}
|
|
2987
2987
|
}
|
|
2988
|
-
Player.version = /* PLAYER_VERSION */"3.30.
|
|
2988
|
+
Player.version = /* PLAYER_VERSION */"3.30.1-dev.2023032300";
|
|
2989
2989
|
|
|
2990
2990
|
/** Every events sent by the RxPlayer's public API. */
|
|
2991
2991
|
interface IPublicAPIEvent {
|
|
@@ -497,7 +497,11 @@ export default function StreamOrchestrator(
|
|
|
497
497
|
*/
|
|
498
498
|
function createNextPeriodStream(nextPeriod : Period) : void {
|
|
499
499
|
if (nextStreamInfo !== null) {
|
|
500
|
-
|
|
500
|
+
if (nextStreamInfo.period.id === nextPeriod.id) {
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
log.warn("Stream: Creating next `PeriodStream` while it was already created.",
|
|
504
|
+
bufferType);
|
|
501
505
|
consecutivePeriodStreamCb.periodStreamCleared({ type: bufferType,
|
|
502
506
|
period: nextStreamInfo.period });
|
|
503
507
|
nextStreamInfo.canceller.cancel();
|
package/src/manifest/manifest.ts
CHANGED
|
@@ -787,10 +787,10 @@ function updateDeciperability(
|
|
|
787
787
|
const result = isDecipherable(representation);
|
|
788
788
|
if (result !== representation.decipherable) {
|
|
789
789
|
updates.push({ manifest, period, adaptation, representation });
|
|
790
|
+
representation.decipherable = result;
|
|
790
791
|
log.debug(`Decipherability changed for "${representation.id}"`,
|
|
791
792
|
`(${representation.bitrate})`,
|
|
792
793
|
String(representation.decipherable));
|
|
793
|
-
representation.decipherable = result;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
}
|