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/players/index.cjs
CHANGED
|
@@ -1340,7 +1340,7 @@ function createPrebidAdLayer(contentVideo, options) {
|
|
|
1340
1340
|
contentVideo.volume = 0;
|
|
1341
1341
|
adPlaying = true;
|
|
1342
1342
|
setAdPlayingFlag(true);
|
|
1343
|
-
adVolume = originalMutedState ?
|
|
1343
|
+
adVolume = originalMutedState ? 1 : originalVolume;
|
|
1344
1344
|
adVideoElement.volume = Math.max(0, Math.min(1, adVolume));
|
|
1345
1345
|
adVideoElement.muted = false;
|
|
1346
1346
|
if (adContainerEl) {
|
|
@@ -3101,7 +3101,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3101
3101
|
console.log("[StormcloudVideoPlayer] Starting ad break timer on content_pause (first ad starting)");
|
|
3102
3102
|
}
|
|
3103
3103
|
}
|
|
3104
|
-
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ?
|
|
3104
|
+
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ? 1 : _this.adLayer.getOriginalVolume());
|
|
3105
3105
|
if (_this.isShowingPlaceholder) {
|
|
3106
3106
|
if (_this.config.debugAdTiming) {
|
|
3107
3107
|
console.log("[StormcloudVideoPlayer] Hiding placeholder - new ads starting");
|
|
@@ -4045,7 +4045,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4045
4045
|
if (_this.expectedAdBreakDurationMs != null && _this.adStopTimerId == null) {
|
|
4046
4046
|
_this.scheduleAdStopCountdown(_this.getRemainingAdMs());
|
|
4047
4047
|
}
|
|
4048
|
-
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ?
|
|
4048
|
+
_this.adLayer.setAdVolume(_this.adLayer.getOriginalMutedState() ? 1 : _this.adLayer.getOriginalVolume());
|
|
4049
4049
|
_state.label = 7;
|
|
4050
4050
|
case 7:
|
|
4051
4051
|
return [
|
|
@@ -4207,7 +4207,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4207
4207
|
if (this.expectedAdBreakDurationMs != null && this.adStopTimerId == null) {
|
|
4208
4208
|
this.scheduleAdStopCountdown(this.getRemainingAdMs());
|
|
4209
4209
|
}
|
|
4210
|
-
adVolume = state.muted ?
|
|
4210
|
+
adVolume = state.muted ? 1 : state.volume;
|
|
4211
4211
|
this.adLayer.setAdVolume(adVolume);
|
|
4212
4212
|
return [
|
|
4213
4213
|
3,
|
|
@@ -4398,7 +4398,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4398
4398
|
if (this.expectedAdBreakDurationMs != null && this.adStopTimerId == null) {
|
|
4399
4399
|
this.scheduleAdStopCountdown(this.getRemainingAdMs());
|
|
4400
4400
|
}
|
|
4401
|
-
this.adLayer.setAdVolume(this.adLayer.getOriginalMutedState() ?
|
|
4401
|
+
this.adLayer.setAdVolume(this.adLayer.getOriginalMutedState() ? 1 : this.adLayer.getOriginalVolume());
|
|
4402
4402
|
_state.label = 5;
|
|
4403
4403
|
case 5:
|
|
4404
4404
|
return [
|
|
@@ -4731,11 +4731,19 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
4731
4731
|
var _this_video_play1;
|
|
4732
4732
|
(_this_video_play1 = this.video.play()) === null || _this_video_play1 === void 0 ? void 0 : _this_video_play1.catch(function() {});
|
|
4733
4733
|
}
|
|
4734
|
-
if (
|
|
4734
|
+
if (!restoredMuted) {
|
|
4735
4735
|
requestAnimationFrame(function() {
|
|
4736
4736
|
_this.video.muted = false;
|
|
4737
4737
|
_this.video.volume = restoredVolume;
|
|
4738
4738
|
});
|
|
4739
|
+
setTimeout(function() {
|
|
4740
|
+
_this.video.muted = false;
|
|
4741
|
+
_this.video.volume = restoredVolume;
|
|
4742
|
+
}, 0);
|
|
4743
|
+
setTimeout(function() {
|
|
4744
|
+
_this.video.muted = false;
|
|
4745
|
+
_this.video.volume = restoredVolume;
|
|
4746
|
+
}, 50);
|
|
4739
4747
|
}
|
|
4740
4748
|
}
|
|
4741
4749
|
},
|