Skip to content

Commit

Permalink
Merge branch 'release/v4.0.0' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Feb 21, 2024
2 parents 8d22f70 + 5bd440f commit abcedd2
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 27 deletions.
28 changes: 8 additions & 20 deletions CHANGELOG.md
@@ -1,22 +1,4 @@
## v4.0.0-rc.2 (2024-02-07)

### Features

- MULTI_THREAD: `attachWorker` now returns a Promise to indicate when WebWorker attachment failed [#1374]

### Bug fixes

- dash: Don't unnecessarily reload external `<UTCTiming>` resources at each refresh if it failed for the first request of the Manifest [#1370]
- dash: The `DASH_WASM` feature do not rely on WebAssembly's sign-extension operators anymore as that is poorly supported on older Samsung and LG TVs [#1372]
- MULTI_THREAD: properly categorize forced subtitles in multithread scenarios

### Other improvements

- build: automatically install Rust and WASM toolchain locally if unavailable when building the RxPlayer [#1373]
- doc: Update our documentation generator and fix all invalid anchors in it
- npm: prevent the publishing of unnecessary files on the npm registry [#1377, #1378]

## v4.0.0-rc.1 (2024-01-24)
## v4.0.0 (2024-02-21)

### Changes

Expand Down Expand Up @@ -45,7 +27,7 @@
- Rename `maximumBufferTime` in `positionUpdate` events to `maximumPosition`
- Remove `getVideoPlayedTime` and `getVideoLoadedTime` methods. Their names was very confusing and can be re-implemented relatively easily using the media element's buffered property.
- Rename `getVideoDuration` to `getMediaDuration`, to avoid confusion with the video track's duration.
- Rename `getVideoBufferGap` to `getCurrentBufferGap, to avoid confusion with the "buffer gap" specific to the video track.
- Rename `getVideoBufferGap` to `getCurrentBufferGap`, to avoid confusion with the "buffer gap" specific to the video track.
- Remove image-related API: `supplementaryImageTracks` `loadVideo` option, `imageTrackUpdate` event, `getImageTrackData` method. Those are better handled by an application. The `parseBifThumbnails` tool is still available.
- Replace `keySystems[].licenseStorage` `keySystems` option (for a `loadVideo` call) by the better-named `persistentLicenseConfig`. The `persistentLicense` boolean (also a `keySystems` option) has also been removed because it was redundant with it) [#1147]
- Remove `persistentStateRequired` API, in profit of the more powerful `persistentState` API [#1148]
Expand Down Expand Up @@ -90,6 +72,7 @@
### Features

- Add `MULTI_THREAD` experimental feature to enable multithreading capabilities through a WebWorker
- Add `attachWorker` method to attach a WebWorker to an RxPlayer instance.
- `setAudioTrack`, `setVideoTrack` and `setTextTrack` now may take an object in argument, with the track's id set as a `trackId` property, to allow new features
- Add `switchingMode` optional property to `setVideoTrack` and `setAudioTrack`, to configure the way in which the RxPlayer switches between the previous and new track
- Add optional `periodId` property to `setAudioTrack`, `setVideoTrack` and `setTextTrack`, to allow setting the track of another, future or past, Period.
Expand Down Expand Up @@ -134,6 +117,8 @@
### Bug fixes

- Tizen (Samsung TVs): Try again to work around all potential issues that could arise due to tizen seeking back by itself [#1327, #1355]
- dash: Don't unnecessarily reload external `<UTCTiming>` resources at each refresh if it failed for the first request of the Manifest [#1370]
- dash: The `DASH_WASM` feature do not rely on WebAssembly's sign-extension operators anymore as that is poorly supported on older Samsung and LG TVs [#1372]

### Other improvements

Expand Down Expand Up @@ -174,6 +159,9 @@
- Add exception to text Garbage collection logic to avoid unnecessarily reload text segments frequently [#1325]
- Avoid logging too much the buffer's content when our debugging UI or the demo is used [#1341]
- Demo: Fix reporting of live position in demo page [#1313]
- build: automatically install Rust and WASM toolchain locally if unavailable when building the RxPlayer [#1373]
- doc: Update our documentation generator and fix all invalid anchors in it
- npm: prevent the publishing of unnecessary files on the npm registry [#1377, #1378]


## v3.32.1 (2023-10-19)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
4.0.0-rc.2
4.0.0
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "rx-player",
"author": "Canal+",
"version": "4.0.0-rc.2",
"version": "4.0.0",
"description": "Canal+ HTML5 Video Player",
"main": "./dist/commonjs/index.js",
"module": "./dist/es2017/index.js",
Expand Down
4 changes: 4 additions & 0 deletions scripts/update_gh-pages_doc
Expand Up @@ -37,9 +37,11 @@ if [ -n "$(git status --porcelain doc)" ]; then
fi

tmpDir=$(mktemp -d)
tmpDemoList=$(mktemp)
tmpDocList=$(mktemp)

cp -r doc/generated/* $tmpDir
cp scripts/generate_demo_list.mjs $tmpDemoList -v
cp scripts/generate_documentation_list.mjs $tmpDocList -v

# update gh-pages
Expand All @@ -51,10 +53,12 @@ mkdir -p "versions/$current_version/doc"
rm -rf doc
mv $tmpDir/* "versions/$current_version/doc"
ln -s "./versions/$current_version/doc" doc
mv $tmpDemoList generate_demo_list.mjs
mv $tmpDocList generate_documentation_list.mjs

node generate_documentation_list.mjs
rm generate_documentation_list.mjs
rm generate_demo_list.mjs

if [ -n "$(git status --porcelain doc "versions/$current_version/doc" documentation_pages_by_version.html)" ]; then
echo "-- Current Status on gh-pages: --"
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
@@ -1,7 +1,7 @@
sonar.projectKey=rx-player
sonar.organization=rx-player
sonar.projectName=rx-player
sonar.projectVersion=4.0.0-rc.2
sonar.projectVersion=4.0.0
sonar.sources=./src,./demo,./tests
sonar.exclusions=demo/full/bundle.js,demo/standalone/lib.js,demo/bundle.js
sonar.host.url=https://sonarcloud.io
4 changes: 2 additions & 2 deletions src/core/api/public_api.ts
Expand Up @@ -375,7 +375,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
videoElement.preload = "auto";

this.version = /* PLAYER_VERSION */"4.0.0-rc.2";
this.version = /* PLAYER_VERSION */"4.0.0";
this.log = log;
this.state = "STOPPED";
this.videoElement = videoElement;
Expand Down Expand Up @@ -3064,7 +3064,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
}
}
}
Player.version = /* PLAYER_VERSION */"4.0.0-rc.2";
Player.version = /* PLAYER_VERSION */"4.0.0";

/** Every events sent by the RxPlayer's public API. */
interface IPublicAPIEvent {
Expand Down

0 comments on commit abcedd2

Please sign in to comment.