rx-player 3.28.0-dev.2022062700 → 3.28.0
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 +3 -2
- package/VERSION +1 -1
- package/dist/_esm5.processed/compat/event_listeners.js +6 -1
- package/dist/_esm5.processed/core/api/media_element_track_choice_manager.js +1 -1
- package/dist/_esm5.processed/core/api/public_api.js +2 -2
- package/dist/rx-player.js +11 -4
- package/dist/rx-player.min.js +1 -1
- package/package.json +1 -1
- package/sonar-project.properties +1 -1
- package/src/compat/event_listeners.ts +6 -1
- package/src/core/api/media_element_track_choice_manager.ts +1 -1
- package/src/core/api/public_api.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v3.28.0-
|
|
3
|
+
## v3.28.0 (2022-07-12)
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
### Bug fixes
|
|
11
11
|
|
|
12
12
|
- Use the first **compatible** codec of the current AdaptationSet when creating a SourceBuffer [#1094]
|
|
13
|
-
- DASH/DRM: Fix potential infinite rebuffering when a KID is not
|
|
13
|
+
- DASH/DRM: Fix potential infinite rebuffering when a KID is not announced in the MPD [#1113]
|
|
14
14
|
- DRM: Fix quality fallback when loading a content whose license has been cached under an extended `singleLicensePer` setting and when starting (and staying) with a quality whose key id is not in it [#1133]
|
|
15
15
|
- DASH: Avoid infinite loop due to rounding errors while parsing multi-Periods MPDs [#1111, #1110]
|
|
16
16
|
- After a `RELOADING` state, stay in `PAUSED` if the media element was paused synchronously before the side-effect which triggered the reloading (usually coming from the API) was perform [#1132]
|
|
17
17
|
- Fix issue with `maxVideoBufferSize` setting which could lead to too much data being buffered [#1125]
|
|
18
18
|
- Prevent possibility of requests loops and infinite rebuffering when a pushed segment is always completely and immediately garbage collected by the browser [#1123]
|
|
19
19
|
- DASH: Fix potential rare memory leak when stopping the content after it has reloaded at least once [#1135]
|
|
20
|
+
- Directfile: Properly announce the audio track's `audioDescription` accessibility attribute in directfile mode on Safari [#1136]
|
|
20
21
|
- DASH: Fix issues that could arise if a segment is calculated to start at a negative position [#1122]
|
|
21
22
|
- DASH: Fix possibility of wrong segments being requested when a SegmentTimeline in a given Period (whose Period@end is set) had an S@r set to `-1` at its end [#1098]
|
|
22
23
|
- DASH: If the first `<S>` has its S@t attribute not set, make as if it is set to `0` [#1118]
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.28.0
|
|
1
|
+
3.28.0
|
|
@@ -132,7 +132,7 @@ function getDocumentVisibilityRef(stopListening) {
|
|
|
132
132
|
var visibilityChangeEvent = isNonEmptyString(prefix) ? prefix + "visibilitychange" :
|
|
133
133
|
"visibilitychange";
|
|
134
134
|
var isHidden = document[hidden];
|
|
135
|
-
var ref = createSharedReference(isHidden);
|
|
135
|
+
var ref = createSharedReference(!isHidden);
|
|
136
136
|
addEventListener(document, visibilityChangeEvent, function () {
|
|
137
137
|
var isVisible = !(document[hidden]);
|
|
138
138
|
ref.setValueIfChanged(isVisible);
|
|
@@ -156,10 +156,12 @@ function getPageActivityRef(stopListening) {
|
|
|
156
156
|
var ref = createSharedReference(true);
|
|
157
157
|
stopListening.register(function () {
|
|
158
158
|
clearTimeout(currentTimeout);
|
|
159
|
+
currentTimeout = undefined;
|
|
159
160
|
ref.finish();
|
|
160
161
|
});
|
|
161
162
|
isDocVisibleRef.onUpdate(function onDocVisibilityChange(isVisible) {
|
|
162
163
|
clearTimeout(currentTimeout); // clear potential previous timeout
|
|
164
|
+
currentTimeout = undefined;
|
|
163
165
|
if (!isVisible) {
|
|
164
166
|
var INACTIVITY_DELAY = config.getCurrent().INACTIVITY_DELAY;
|
|
165
167
|
currentTimeout = window.setTimeout(function () {
|
|
@@ -239,6 +241,7 @@ function getVideoVisibilityRef(pipStatus, stopListening) {
|
|
|
239
241
|
var ref = createSharedReference(true);
|
|
240
242
|
stopListening.register(function () {
|
|
241
243
|
clearTimeout(currentTimeout);
|
|
244
|
+
currentTimeout = undefined;
|
|
242
245
|
ref.finish();
|
|
243
246
|
});
|
|
244
247
|
isDocVisibleRef.onUpdate(checkCurrentVisibility, { clearSignal: stopListening });
|
|
@@ -246,6 +249,8 @@ function getVideoVisibilityRef(pipStatus, stopListening) {
|
|
|
246
249
|
checkCurrentVisibility();
|
|
247
250
|
return ref;
|
|
248
251
|
function checkCurrentVisibility() {
|
|
252
|
+
clearTimeout(currentTimeout);
|
|
253
|
+
currentTimeout = undefined;
|
|
249
254
|
if (pipStatus.getValue().isEnabled || isDocVisibleRef.getValue()) {
|
|
250
255
|
ref.setValueIfChanged(true);
|
|
251
256
|
}
|
|
@@ -69,7 +69,7 @@ function createAudioTracks(audioTracks) {
|
|
|
69
69
|
occurences.toString();
|
|
70
70
|
languagesOccurences[language] = occurences + 1;
|
|
71
71
|
var track = { language: audioTrack.language, id: id, normalized: normalizeLanguage(audioTrack.language),
|
|
72
|
-
audioDescription:
|
|
72
|
+
audioDescription: audioTrack.kind === "descriptions",
|
|
73
73
|
representations: [] };
|
|
74
74
|
newAudioTracks.push({ track: track, nativeTrack: audioTrack });
|
|
75
75
|
}
|
|
@@ -88,7 +88,7 @@ var Player = /** @class */ (function (_super) {
|
|
|
88
88
|
// Workaround to support Firefox autoplay on FF 42.
|
|
89
89
|
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
90
90
|
videoElement.preload = "auto";
|
|
91
|
-
_this.version = /* PLAYER_VERSION */ "3.28.0
|
|
91
|
+
_this.version = /* PLAYER_VERSION */ "3.28.0";
|
|
92
92
|
_this.log = log;
|
|
93
93
|
_this.state = "STOPPED";
|
|
94
94
|
_this.videoElement = videoElement;
|
|
@@ -2295,5 +2295,5 @@ var Player = /** @class */ (function (_super) {
|
|
|
2295
2295
|
};
|
|
2296
2296
|
return Player;
|
|
2297
2297
|
}(EventEmitter));
|
|
2298
|
-
Player.version = /* PLAYER_VERSION */ "3.28.0
|
|
2298
|
+
Player.version = /* PLAYER_VERSION */ "3.28.0";
|
|
2299
2299
|
export default Player;
|
package/dist/rx-player.js
CHANGED
|
@@ -1981,7 +1981,7 @@ function getDocumentVisibilityRef(stopListening) {
|
|
|
1981
1981
|
var hidden = (0,is_non_empty_string/* default */.Z)(prefix) ? prefix + "Hidden" : "hidden";
|
|
1982
1982
|
var visibilityChangeEvent = (0,is_non_empty_string/* default */.Z)(prefix) ? prefix + "visibilitychange" : "visibilitychange";
|
|
1983
1983
|
var isHidden = document[hidden];
|
|
1984
|
-
var ref = (0,reference/* default */.ZP)(isHidden);
|
|
1984
|
+
var ref = (0,reference/* default */.ZP)(!isHidden);
|
|
1985
1985
|
addEventListener(document, visibilityChangeEvent, function () {
|
|
1986
1986
|
var isVisible = !document[hidden];
|
|
1987
1987
|
ref.setValueIfChanged(isVisible);
|
|
@@ -2007,11 +2007,14 @@ function getPageActivityRef(stopListening) {
|
|
|
2007
2007
|
var ref = (0,reference/* default */.ZP)(true);
|
|
2008
2008
|
stopListening.register(function () {
|
|
2009
2009
|
clearTimeout(currentTimeout);
|
|
2010
|
+
currentTimeout = undefined;
|
|
2010
2011
|
ref.finish();
|
|
2011
2012
|
});
|
|
2012
2013
|
isDocVisibleRef.onUpdate(function onDocVisibilityChange(isVisible) {
|
|
2013
2014
|
clearTimeout(currentTimeout); // clear potential previous timeout
|
|
2014
2015
|
|
|
2016
|
+
currentTimeout = undefined;
|
|
2017
|
+
|
|
2015
2018
|
if (!isVisible) {
|
|
2016
2019
|
var _config$getCurrent = config/* default.getCurrent */.Z.getCurrent(),
|
|
2017
2020
|
INACTIVITY_DELAY = _config$getCurrent.INACTIVITY_DELAY;
|
|
@@ -2117,6 +2120,7 @@ function getVideoVisibilityRef(pipStatus, stopListening) {
|
|
|
2117
2120
|
var ref = (0,reference/* default */.ZP)(true);
|
|
2118
2121
|
stopListening.register(function () {
|
|
2119
2122
|
clearTimeout(currentTimeout);
|
|
2123
|
+
currentTimeout = undefined;
|
|
2120
2124
|
ref.finish();
|
|
2121
2125
|
});
|
|
2122
2126
|
isDocVisibleRef.onUpdate(checkCurrentVisibility, {
|
|
@@ -2129,6 +2133,9 @@ function getVideoVisibilityRef(pipStatus, stopListening) {
|
|
|
2129
2133
|
return ref;
|
|
2130
2134
|
|
|
2131
2135
|
function checkCurrentVisibility() {
|
|
2136
|
+
clearTimeout(currentTimeout);
|
|
2137
|
+
currentTimeout = undefined;
|
|
2138
|
+
|
|
2132
2139
|
if (pipStatus.getValue().isEnabled || isDocVisibleRef.getValue()) {
|
|
2133
2140
|
ref.setValueIfChanged(true);
|
|
2134
2141
|
} else {
|
|
@@ -3924,7 +3931,7 @@ function createAudioTracks(audioTracks) {
|
|
|
3924
3931
|
language: audioTrack.language,
|
|
3925
3932
|
id: id,
|
|
3926
3933
|
normalized: (0,_utils_languages__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(audioTrack.language),
|
|
3927
|
-
audioDescription:
|
|
3934
|
+
audioDescription: audioTrack.kind === "descriptions",
|
|
3928
3935
|
representations: []
|
|
3929
3936
|
};
|
|
3930
3937
|
newAudioTracks.push({
|
|
@@ -61296,7 +61303,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
|
|
|
61296
61303
|
videoElement.preload = "auto";
|
|
61297
61304
|
_this.version =
|
|
61298
61305
|
/* PLAYER_VERSION */
|
|
61299
|
-
"3.28.0
|
|
61306
|
+
"3.28.0";
|
|
61300
61307
|
_this.log = log/* default */.Z;
|
|
61301
61308
|
_this.state = "STOPPED";
|
|
61302
61309
|
_this.videoElement = videoElement;
|
|
@@ -64117,7 +64124,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
|
|
|
64117
64124
|
|
|
64118
64125
|
Player.version =
|
|
64119
64126
|
/* PLAYER_VERSION */
|
|
64120
|
-
"3.28.0
|
|
64127
|
+
"3.28.0";
|
|
64121
64128
|
/* harmony default export */ var public_api = (Player);
|
|
64122
64129
|
;// CONCATENATED MODULE: ./src/core/api/index.ts
|
|
64123
64130
|
/**
|