stormcloud-video-player 0.7.26 → 0.7.27
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/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +135 -76
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +135 -76
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +16 -11
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +1 -0
- package/lib/players/HlsPlayer.cjs +16 -11
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +16 -11
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +135 -76
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -3198,6 +3198,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
_this.adLayer.cancelPreload(token);
|
|
3200
3200
|
} else {
|
|
3201
|
+
_this.video.style.transition = "none";
|
|
3202
|
+
_this.video.style.opacity = "0";
|
|
3203
|
+
_this.video.style.visibility = "hidden";
|
|
3201
3204
|
if (!_this.config.singlePipelineMode) {
|
|
3202
3205
|
_this.showPlaceholderLayer();
|
|
3203
3206
|
}
|
|
@@ -3224,6 +3227,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3224
3227
|
console.log("[StormcloudVideoPlayer] content_resume: skip pending bids, only", remainingNow1, "ms left");
|
|
3225
3228
|
}
|
|
3226
3229
|
} else {
|
|
3230
|
+
_this.video.style.transition = "none";
|
|
3231
|
+
_this.video.style.opacity = "0";
|
|
3232
|
+
_this.video.style.visibility = "hidden";
|
|
3227
3233
|
if (!_this.config.singlePipelineMode) {
|
|
3228
3234
|
_this.showPlaceholderLayer();
|
|
3229
3235
|
}
|
|
@@ -3253,17 +3259,10 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3253
3259
|
_this.showPlaceholderLayer();
|
|
3254
3260
|
_this.adLayer.showPlaceholder();
|
|
3255
3261
|
} else {
|
|
3256
|
-
_this.
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
if (Math.abs(_this.video.volume - breakVolume) > 0.01) {
|
|
3261
|
-
_this.video.volume = breakVolume;
|
|
3262
|
-
}
|
|
3263
|
-
if (_this.video.paused) {
|
|
3264
|
-
var _this_video_play;
|
|
3265
|
-
(_this_video_play = _this.video.play()) === null || _this_video_play === void 0 ? void 0 : _this_video_play.catch(function() {});
|
|
3266
|
-
}
|
|
3262
|
+
_this.video.style.transition = "none";
|
|
3263
|
+
_this.video.style.opacity = "0";
|
|
3264
|
+
_this.video.style.visibility = "hidden";
|
|
3265
|
+
_this.adLayer.showPlaceholder();
|
|
3267
3266
|
}
|
|
3268
3267
|
_this.continuousFetchingActive = true;
|
|
3269
3268
|
_this.startContinuousFetchLoop();
|
|
@@ -3475,6 +3474,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3475
3474
|
return this.showAds;
|
|
3476
3475
|
}
|
|
3477
3476
|
},
|
|
3477
|
+
{
|
|
3478
|
+
key: "isInAdBreak",
|
|
3479
|
+
value: function isInAdBreak() {
|
|
3480
|
+
return this.inAdBreak;
|
|
3481
|
+
}
|
|
3482
|
+
},
|
|
3478
3483
|
{
|
|
3479
3484
|
key: "initializeAdLayer",
|
|
3480
3485
|
value: function initializeAdLayer() {
|