stormcloud-video-player 0.5.13 → 0.5.14
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 +6 -6
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +6 -6
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +6 -6
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +6 -6
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +6 -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 +6 -6
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -1252,7 +1252,7 @@ function createPrebidAdLayer(contentVideo, options) {
|
|
|
1252
1252
|
contentVideo.volume = 0;
|
|
1253
1253
|
adPlaying = true;
|
|
1254
1254
|
setAdPlayingFlag(true);
|
|
1255
|
-
adVolume = originalMutedState ?
|
|
1255
|
+
adVolume = originalMutedState ? 1 : originalVolume;
|
|
1256
1256
|
adVideoElement.volume = Math.max(0, Math.min(1, adVolume));
|
|
1257
1257
|
adVideoElement.muted = false;
|
|
1258
1258
|
if (adContainerEl) {
|
|
@@ -3013,7 +3013,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3013
3013
|
console.log("[StormcloudVideoPlayer] Starting ad break timer on content_pause (first ad starting)");
|
|
3014
3014
|
}
|
|
3015
3015
|
}
|
|
3016
|
-
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ?
|
|
3016
|
+
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ? 1 : _this.adLayer.getOriginalVolume());
|
|
3017
3017
|
if (_this.isShowingPlaceholder) {
|
|
3018
3018
|
if (_this.config.debugAdTiming) {
|
|
3019
3019
|
console.log("[StormcloudVideoPlayer] Hiding placeholder - new ads starting");
|
|
@@ -3957,7 +3957,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3957
3957
|
if (_this.expectedAdBreakDurationMs != null && _this.adStopTimerId == null) {
|
|
3958
3958
|
_this.scheduleAdStopCountdown(_this.getRemainingAdMs());
|
|
3959
3959
|
}
|
|
3960
|
-
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ?
|
|
3960
|
+
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ? 1 : _this.adLayer.getOriginalVolume());
|
|
3961
3961
|
_state.label = 7;
|
|
3962
3962
|
case 7:
|
|
3963
3963
|
return [
|
|
@@ -4119,7 +4119,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4119
4119
|
if (this.expectedAdBreakDurationMs != null && this.adStopTimerId == null) {
|
|
4120
4120
|
this.scheduleAdStopCountdown(this.getRemainingAdMs());
|
|
4121
4121
|
}
|
|
4122
|
-
adVolume = state.muted ?
|
|
4122
|
+
adVolume = state.muted ? 1 : state.volume;
|
|
4123
4123
|
this.adLayer.setAdVolume(adVolume);
|
|
4124
4124
|
return [
|
|
4125
4125
|
3,
|
|
@@ -4310,7 +4310,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4310
4310
|
if (this.expectedAdBreakDurationMs != null && this.adStopTimerId == null) {
|
|
4311
4311
|
this.scheduleAdStopCountdown(this.getRemainingAdMs());
|
|
4312
4312
|
}
|
|
4313
|
-
this.adLayer.setAdVolume(this.adLayer.getOriginalMutedState() ?
|
|
4313
|
+
this.adLayer.setAdVolume(this.adLayer.getOriginalMutedState() ? 1 : this.adLayer.getOriginalVolume());
|
|
4314
4314
|
_state.label = 5;
|
|
4315
4315
|
case 5:
|
|
4316
4316
|
return [
|
|
@@ -4643,7 +4643,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4643
4643
|
var _this_video_play1;
|
|
4644
4644
|
(_this_video_play1 = this.video.play()) === null || _this_video_play1 === void 0 ? void 0 : _this_video_play1.catch(function() {});
|
|
4645
4645
|
}
|
|
4646
|
-
if (
|
|
4646
|
+
if (!restoredMuted) {
|
|
4647
4647
|
requestAnimationFrame(function() {
|
|
4648
4648
|
_this.video.muted = false;
|
|
4649
4649
|
_this.video.volume = restoredVolume;
|