stormcloud-video-player 0.5.13 → 0.5.15
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 +14 -6
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +14 -6
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +14 -6
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +14 -6
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +14 -6
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/prebidAdLayer.cjs +1 -1
- package/lib/sdk/prebidAdLayer.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +14 -6
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -1304,7 +1304,7 @@ function createPrebidAdLayer(contentVideo, options) {
|
|
|
1304
1304
|
contentVideo.volume = 0;
|
|
1305
1305
|
adPlaying = true;
|
|
1306
1306
|
setAdPlayingFlag(true);
|
|
1307
|
-
adVolume = originalMutedState ?
|
|
1307
|
+
adVolume = originalMutedState ? 1 : originalVolume;
|
|
1308
1308
|
adVideoElement.volume = Math.max(0, Math.min(1, adVolume));
|
|
1309
1309
|
adVideoElement.muted = false;
|
|
1310
1310
|
if (adContainerEl) {
|
|
@@ -3065,7 +3065,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3065
3065
|
console.log("[StormcloudVideoPlayer] Starting ad break timer on content_pause (first ad starting)");
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
3068
|
-
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ?
|
|
3068
|
+
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ? 1 : _this.adLayer.getOriginalVolume());
|
|
3069
3069
|
if (_this.isShowingPlaceholder) {
|
|
3070
3070
|
if (_this.config.debugAdTiming) {
|
|
3071
3071
|
console.log("[StormcloudVideoPlayer] Hiding placeholder - new ads starting");
|
|
@@ -4009,7 +4009,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4009
4009
|
if (_this.expectedAdBreakDurationMs != null && _this.adStopTimerId == null) {
|
|
4010
4010
|
_this.scheduleAdStopCountdown(_this.getRemainingAdMs());
|
|
4011
4011
|
}
|
|
4012
|
-
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ?
|
|
4012
|
+
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ? 1 : _this.adLayer.getOriginalVolume());
|
|
4013
4013
|
_state.label = 7;
|
|
4014
4014
|
case 7:
|
|
4015
4015
|
return [
|
|
@@ -4171,7 +4171,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4171
4171
|
if (this.expectedAdBreakDurationMs != null && this.adStopTimerId == null) {
|
|
4172
4172
|
this.scheduleAdStopCountdown(this.getRemainingAdMs());
|
|
4173
4173
|
}
|
|
4174
|
-
adVolume = state.muted ?
|
|
4174
|
+
adVolume = state.muted ? 1 : state.volume;
|
|
4175
4175
|
this.adLayer.setAdVolume(adVolume);
|
|
4176
4176
|
return [
|
|
4177
4177
|
3,
|
|
@@ -4362,7 +4362,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4362
4362
|
if (this.expectedAdBreakDurationMs != null && this.adStopTimerId == null) {
|
|
4363
4363
|
this.scheduleAdStopCountdown(this.getRemainingAdMs());
|
|
4364
4364
|
}
|
|
4365
|
-
this.adLayer.setAdVolume(this.adLayer.getOriginalMutedState() ?
|
|
4365
|
+
this.adLayer.setAdVolume(this.adLayer.getOriginalMutedState() ? 1 : this.adLayer.getOriginalVolume());
|
|
4366
4366
|
_state.label = 5;
|
|
4367
4367
|
case 5:
|
|
4368
4368
|
return [
|
|
@@ -4695,11 +4695,19 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4695
4695
|
var _this_video_play1;
|
|
4696
4696
|
(_this_video_play1 = this.video.play()) === null || _this_video_play1 === void 0 ? void 0 : _this_video_play1.catch(function() {});
|
|
4697
4697
|
}
|
|
4698
|
-
if (
|
|
4698
|
+
if (!restoredMuted) {
|
|
4699
4699
|
requestAnimationFrame(function() {
|
|
4700
4700
|
_this.video.muted = false;
|
|
4701
4701
|
_this.video.volume = restoredVolume;
|
|
4702
4702
|
});
|
|
4703
|
+
setTimeout(function() {
|
|
4704
|
+
_this.video.muted = false;
|
|
4705
|
+
_this.video.volume = restoredVolume;
|
|
4706
|
+
}, 0);
|
|
4707
|
+
setTimeout(function() {
|
|
4708
|
+
_this.video.muted = false;
|
|
4709
|
+
_this.video.volume = restoredVolume;
|
|
4710
|
+
}, 50);
|
|
4703
4711
|
}
|
|
4704
4712
|
}
|
|
4705
4713
|
},
|