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
package/lib/index.js
CHANGED
|
@@ -1274,7 +1274,7 @@ function createPrebidAdLayer(contentVideo, options) {
|
|
|
1274
1274
|
contentVideo.volume = 0;
|
|
1275
1275
|
adPlaying = true;
|
|
1276
1276
|
setAdPlayingFlag(true);
|
|
1277
|
-
adVolume = originalMutedState ?
|
|
1277
|
+
adVolume = originalMutedState ? 1 : originalVolume;
|
|
1278
1278
|
adVideoElement.volume = Math.max(0, Math.min(1, adVolume));
|
|
1279
1279
|
adVideoElement.muted = false;
|
|
1280
1280
|
if (adContainerEl) {
|
|
@@ -3063,7 +3063,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3063
3063
|
console.log("[StormcloudVideoPlayer] Starting ad break timer on content_pause (first ad starting)");
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
|
-
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ?
|
|
3066
|
+
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ? 1 : _this.adLayer.getOriginalVolume());
|
|
3067
3067
|
if (_this.isShowingPlaceholder) {
|
|
3068
3068
|
if (_this.config.debugAdTiming) {
|
|
3069
3069
|
console.log("[StormcloudVideoPlayer] Hiding placeholder - new ads starting");
|
|
@@ -4007,7 +4007,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4007
4007
|
if (_this.expectedAdBreakDurationMs != null && _this.adStopTimerId == null) {
|
|
4008
4008
|
_this.scheduleAdStopCountdown(_this.getRemainingAdMs());
|
|
4009
4009
|
}
|
|
4010
|
-
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ?
|
|
4010
|
+
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ? 1 : _this.adLayer.getOriginalVolume());
|
|
4011
4011
|
_state.label = 7;
|
|
4012
4012
|
case 7:
|
|
4013
4013
|
return [
|
|
@@ -4169,7 +4169,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4169
4169
|
if (this.expectedAdBreakDurationMs != null && this.adStopTimerId == null) {
|
|
4170
4170
|
this.scheduleAdStopCountdown(this.getRemainingAdMs());
|
|
4171
4171
|
}
|
|
4172
|
-
adVolume = state.muted ?
|
|
4172
|
+
adVolume = state.muted ? 1 : state.volume;
|
|
4173
4173
|
this.adLayer.setAdVolume(adVolume);
|
|
4174
4174
|
return [
|
|
4175
4175
|
3,
|
|
@@ -4360,7 +4360,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4360
4360
|
if (this.expectedAdBreakDurationMs != null && this.adStopTimerId == null) {
|
|
4361
4361
|
this.scheduleAdStopCountdown(this.getRemainingAdMs());
|
|
4362
4362
|
}
|
|
4363
|
-
this.adLayer.setAdVolume(this.adLayer.getOriginalMutedState() ?
|
|
4363
|
+
this.adLayer.setAdVolume(this.adLayer.getOriginalMutedState() ? 1 : this.adLayer.getOriginalVolume());
|
|
4364
4364
|
_state.label = 5;
|
|
4365
4365
|
case 5:
|
|
4366
4366
|
return [
|
|
@@ -4693,11 +4693,19 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4693
4693
|
var _this_video_play1;
|
|
4694
4694
|
(_this_video_play1 = this.video.play()) === null || _this_video_play1 === void 0 ? void 0 : _this_video_play1.catch(function() {});
|
|
4695
4695
|
}
|
|
4696
|
-
if (
|
|
4696
|
+
if (!restoredMuted) {
|
|
4697
4697
|
requestAnimationFrame(function() {
|
|
4698
4698
|
_this.video.muted = false;
|
|
4699
4699
|
_this.video.volume = restoredVolume;
|
|
4700
4700
|
});
|
|
4701
|
+
setTimeout(function() {
|
|
4702
|
+
_this.video.muted = false;
|
|
4703
|
+
_this.video.volume = restoredVolume;
|
|
4704
|
+
}, 0);
|
|
4705
|
+
setTimeout(function() {
|
|
4706
|
+
_this.video.muted = false;
|
|
4707
|
+
_this.video.volume = restoredVolume;
|
|
4708
|
+
}, 50);
|
|
4701
4709
|
}
|
|
4702
4710
|
}
|
|
4703
4711
|
},
|