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
|
@@ -81,6 +81,7 @@ declare class StormcloudVideoPlayer {
|
|
|
81
81
|
getRemainingAdSeconds(): number;
|
|
82
82
|
isAdPlaying(): boolean;
|
|
83
83
|
isShowingAds(): boolean;
|
|
84
|
+
isInAdBreak(): boolean;
|
|
84
85
|
private initializeAdLayer;
|
|
85
86
|
setDisableAds(disabled: boolean): void;
|
|
86
87
|
private syncMainContentAudioWhenVisible;
|
|
@@ -3250,6 +3250,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3250
3250
|
}
|
|
3251
3251
|
_this.adLayer.cancelPreload(token);
|
|
3252
3252
|
} else {
|
|
3253
|
+
_this.video.style.transition = "none";
|
|
3254
|
+
_this.video.style.opacity = "0";
|
|
3255
|
+
_this.video.style.visibility = "hidden";
|
|
3253
3256
|
if (!_this.config.singlePipelineMode) {
|
|
3254
3257
|
_this.showPlaceholderLayer();
|
|
3255
3258
|
}
|
|
@@ -3276,6 +3279,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3276
3279
|
console.log("[StormcloudVideoPlayer] content_resume: skip pending bids, only", remainingNow1, "ms left");
|
|
3277
3280
|
}
|
|
3278
3281
|
} else {
|
|
3282
|
+
_this.video.style.transition = "none";
|
|
3283
|
+
_this.video.style.opacity = "0";
|
|
3284
|
+
_this.video.style.visibility = "hidden";
|
|
3279
3285
|
if (!_this.config.singlePipelineMode) {
|
|
3280
3286
|
_this.showPlaceholderLayer();
|
|
3281
3287
|
}
|
|
@@ -3305,17 +3311,10 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3305
3311
|
_this.showPlaceholderLayer();
|
|
3306
3312
|
_this.adLayer.showPlaceholder();
|
|
3307
3313
|
} else {
|
|
3308
|
-
_this.
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
if (Math.abs(_this.video.volume - breakVolume) > 0.01) {
|
|
3313
|
-
_this.video.volume = breakVolume;
|
|
3314
|
-
}
|
|
3315
|
-
if (_this.video.paused) {
|
|
3316
|
-
var _this_video_play;
|
|
3317
|
-
(_this_video_play = _this.video.play()) === null || _this_video_play === void 0 ? void 0 : _this_video_play.catch(function() {});
|
|
3318
|
-
}
|
|
3314
|
+
_this.video.style.transition = "none";
|
|
3315
|
+
_this.video.style.opacity = "0";
|
|
3316
|
+
_this.video.style.visibility = "hidden";
|
|
3317
|
+
_this.adLayer.showPlaceholder();
|
|
3319
3318
|
}
|
|
3320
3319
|
_this.continuousFetchingActive = true;
|
|
3321
3320
|
_this.startContinuousFetchLoop();
|
|
@@ -3527,6 +3526,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3527
3526
|
return this.showAds;
|
|
3528
3527
|
}
|
|
3529
3528
|
},
|
|
3529
|
+
{
|
|
3530
|
+
key: "isInAdBreak",
|
|
3531
|
+
value: function isInAdBreak() {
|
|
3532
|
+
return this.inAdBreak;
|
|
3533
|
+
}
|
|
3534
|
+
},
|
|
3530
3535
|
{
|
|
3531
3536
|
key: "initializeAdLayer",
|
|
3532
3537
|
value: function initializeAdLayer() {
|