rx-player 4.2.0-dev.2024090500 → 4.2.0-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 +5 -2
- package/VERSION +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/commonjs/compat/browser_detection.d.ts +3 -1
- package/dist/commonjs/compat/browser_detection.d.ts.map +1 -1
- package/dist/commonjs/compat/browser_detection.js +7 -1
- package/dist/commonjs/compat/can_reuse_media_keys.d.ts +4 -0
- package/dist/commonjs/compat/can_reuse_media_keys.d.ts.map +1 -1
- package/dist/commonjs/compat/can_reuse_media_keys.js +5 -1
- package/dist/commonjs/core/main/worker/worker_main.js +4 -0
- package/dist/commonjs/main_thread/api/public_api.js +2 -2
- package/dist/commonjs/utils/logger.d.ts.map +1 -1
- package/dist/commonjs/utils/logger.js +6 -7
- package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/es2017/compat/browser_detection.d.ts +3 -1
- package/dist/es2017/compat/browser_detection.d.ts.map +1 -1
- package/dist/es2017/compat/browser_detection.js +10 -1
- package/dist/es2017/compat/can_reuse_media_keys.d.ts +4 -0
- package/dist/es2017/compat/can_reuse_media_keys.d.ts.map +1 -1
- package/dist/es2017/compat/can_reuse_media_keys.js +6 -2
- package/dist/es2017/core/main/worker/worker_main.js +4 -0
- package/dist/es2017/main_thread/api/public_api.js +2 -2
- package/dist/es2017/utils/logger.d.ts.map +1 -1
- package/dist/es2017/utils/logger.js +6 -7
- package/dist/rx-player.js +12 -10
- package/dist/rx-player.min.js +18 -18
- package/dist/worker.js +5 -5
- package/package.json +5 -12
- package/src/README.md +7 -7
- package/src/__GENERATED_CODE/embedded_worker.ts +1 -1
- package/src/compat/__tests__/can_reuse_media_keys.test.ts +24 -1
- package/src/compat/browser_detection.ts +13 -4
- package/src/compat/can_reuse_media_keys.ts +6 -2
- package/src/core/main/worker/worker_main.ts +4 -0
- package/src/main_thread/api/public_api.ts +2 -2
- package/src/utils/logger.ts +6 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rx-player",
|
|
3
3
|
"author": "Canal+",
|
|
4
|
-
"version": "4.2.0-dev.
|
|
4
|
+
"version": "4.2.0-dev.2024090600",
|
|
5
5
|
"description": "Canal+ HTML5 Video Player",
|
|
6
6
|
"main": "./dist/commonjs/index.js",
|
|
7
7
|
"module": "./dist/es2017/index.js",
|
|
@@ -172,11 +172,7 @@
|
|
|
172
172
|
"lint:tests": "eslint tests/**/*.js --ignore-pattern '/tests/performance/bundle*'",
|
|
173
173
|
"list": "node scripts/list-npm-scripts.mjs",
|
|
174
174
|
"prepublishOnly": "npm run build:all",
|
|
175
|
-
"releases:changelog": "./scripts/update_changelog.mjs",
|
|
176
|
-
"releases:demo": "./scripts/update_gh-pages_demo",
|
|
177
175
|
"releases:dev": "./scripts/make-dev-releases",
|
|
178
|
-
"releases:doc": "./scripts/update_gh-pages_doc",
|
|
179
|
-
"releases:official": "./scripts/make-official-release.sh",
|
|
180
176
|
"start": "node ./scripts/start_demo_web_server.mjs",
|
|
181
177
|
"start:wasm": "node ./scripts/start_demo_web_server.mjs --include-wasm",
|
|
182
178
|
"test:integration": "npm run test:integration:chrome && npm run test:integration:firefox",
|
|
@@ -235,8 +231,7 @@
|
|
|
235
231
|
"check:demo": "Check the validity of the demo directory by running the type checker and linter on it",
|
|
236
232
|
"check:demo:types": "Check TypeScript types in demo files",
|
|
237
233
|
"lint:demo": "Run linter on demo files",
|
|
238
|
-
"certificate": "Generate a certificate to be able to use HTTPS locally for the demo pages (`npm run start` will then listen to HTTPS requests through a communicated port)"
|
|
239
|
-
"releases:demo": "Publish current demo as the GitHub's pages new demo page (\"stable\" branch only)"
|
|
234
|
+
"certificate": "Generate a certificate to be able to use HTTPS locally for the demo pages (`npm run start` will then listen to HTTPS requests through a communicated port)"
|
|
240
235
|
},
|
|
241
236
|
"Type-check, format, or lint the current code": {
|
|
242
237
|
"check": "Check the validity of the src directory by running the type checker and linter on it",
|
|
@@ -288,13 +283,11 @@
|
|
|
288
283
|
}
|
|
289
284
|
},
|
|
290
285
|
"Build the documentation pages": {
|
|
291
|
-
"doc": "Generate the HTML documentation in doc/generated/pages"
|
|
292
|
-
"releases:doc": "Publish current documentation as the GitHub's pages new documentation pages (\"stable\" branch only)"
|
|
286
|
+
"doc": "Generate the HTML documentation in doc/generated/pages"
|
|
293
287
|
},
|
|
294
288
|
"Make a release": {
|
|
295
|
-
"releases:dev": "Produce dev npm releases (which are tagged pre-releases on npm)
|
|
296
|
-
"
|
|
297
|
-
"update-version": "Update the version of the RxPlayer. Will update the codebase and perform every builds."
|
|
289
|
+
"releases:dev": "Produce dev npm releases (which are tagged pre-releases on npm) with the code in the current branch",
|
|
290
|
+
"update-version": "Update the version to the string given in argument (example: `npm run update-version 3.8.0`). Will update the codebase and perform every builds."
|
|
298
291
|
}
|
|
299
292
|
}
|
|
300
293
|
}
|
package/src/README.md
CHANGED
|
@@ -57,9 +57,9 @@ it:
|
|
|
57
57
|
| | |
|
|
58
58
|
---|--|----------- RxPlayer Core (May run in a WebWorker) ---------|---
|
|
59
59
|
| | |
|
|
60
|
-
| | (*Only if running in a WebWorker)
|
|
61
|
-
| | Exchange messages with the main
|
|
62
|
-
V | thread and process them.
|
|
60
|
+
| | (*Only if running in a WebWorker) +----+
|
|
61
|
+
| | Exchange messages with the main |
|
|
62
|
+
V | thread and process them. |
|
|
63
63
|
+---------------------------+ +----------------------------+ |
|
|
64
64
|
| | creates | | |
|
|
65
65
|
| Worker Main* |-------->| Manifest Fetcher | |
|
|
@@ -119,7 +119,7 @@ Stream (./core/stream) | \ |
|
|
|
119
119
|
| (audio) v (video) v (text) v uses | |
|
|
120
120
|
| +--------+ +--------+ +--------+ --->+-------------+ | |
|
|
121
121
|
| (Representation- | | | | | | | | Segment | | |
|
|
122
|
-
| Stream). |Repre...|-+ |Repre...|-+ |Repre...|-+ | |
|
|
122
|
+
| Stream). |Repre...|-+ |Repre...|-+ |Repre...|-+ | | Queue |-+ |
|
|
123
123
|
| Download and push| Stream | | | Stream | | | Stream | | | |(./core/fetc | |
|
|
124
124
|
| segments based on| | | | | | | | | | |hers/segment)| |
|
|
125
125
|
| the current +--------+ | +--------+ | +--------+ | | +-------------+ |
|
|
@@ -174,9 +174,9 @@ For the subdirectories and files in this directory not represented in that schem
|
|
|
174
174
|
- `manifest` (_./manifest_): Defines a `Manifest` structure and its properties, a central
|
|
175
175
|
structure of the player describing a content.
|
|
176
176
|
|
|
177
|
-
- `
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
- `PlaybackObserver` (./playback_observer): Defines `PlaybackObserver` instances, used by
|
|
178
|
+
many modules to obtain playback-related properties (such as the playing position, the
|
|
179
|
+
current playback speed etc.).
|
|
180
180
|
|
|
181
181
|
- `parsers` (_./parsers_): Various parsers for several formats
|
|
182
182
|
|