rx-player 3.28.0-dev.2022063000 → 3.28.0-dev.2022071100
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 -1
- package/VERSION +1 -1
- package/dist/_esm5.processed/compat/event_listeners.js +5 -0
- package/dist/_esm5.processed/core/api/public_api.js +2 -2
- package/dist/rx-player.js +9 -2
- 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 +5 -0
- package/src/core/api/public_api.ts +2 -2
package/CHANGELOG.md
CHANGED
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.28.0-dev.
|
|
1
|
+
3.28.0-dev.2022071100
|
|
@@ -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
|
}
|
|
@@ -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-dev.
|
|
91
|
+
_this.version = /* PLAYER_VERSION */ "3.28.0-dev.2022071100";
|
|
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-dev.
|
|
2298
|
+
Player.version = /* PLAYER_VERSION */ "3.28.0-dev.2022071100";
|
|
2299
2299
|
export default Player;
|
package/dist/rx-player.js
CHANGED
|
@@ -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 {
|
|
@@ -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-dev.
|
|
61306
|
+
"3.28.0-dev.2022071100";
|
|
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-dev.
|
|
64127
|
+
"3.28.0-dev.2022071100";
|
|
64121
64128
|
/* harmony default export */ var public_api = (Player);
|
|
64122
64129
|
;// CONCATENATED MODULE: ./src/core/api/index.ts
|
|
64123
64130
|
/**
|