stormcloud-video-player 0.8.6 → 0.8.7

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.
@@ -1304,7 +1304,7 @@ function createPalNonceManager() {
1304
1304
  return {
1305
1305
  generateNonce: function generateNonce() {
1306
1306
  return _async_to_generator(function() {
1307
- var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_continuousPlayback, loader, goog, request, manager, error;
1307
+ var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_playerVolume, _options_continuousPlayback, loader, goog, request, manager, error;
1308
1308
  var _arguments = arguments;
1309
1309
  return _ts_generator(this, function(_state) {
1310
1310
  switch(_state.label){
@@ -1329,6 +1329,7 @@ function createPalNonceManager() {
1329
1329
  request = new goog.pal.NonceRequest();
1330
1330
  request.adWillAutoPlay = (_options_adWillAutoPlay = options.adWillAutoPlay) !== null && _options_adWillAutoPlay !== void 0 ? _options_adWillAutoPlay : true;
1331
1331
  request.adWillPlayMuted = (_options_adWillPlayMuted = options.adWillPlayMuted) !== null && _options_adWillPlayMuted !== void 0 ? _options_adWillPlayMuted : false;
1332
+ request.playerVolume = (_options_playerVolume = options.playerVolume) !== null && _options_playerVolume !== void 0 ? _options_playerVolume : request.adWillPlayMuted ? 0 : 1;
1332
1333
  request.continuousPlayback = (_options_continuousPlayback = options.continuousPlayback) !== null && _options_continuousPlayback !== void 0 ? _options_continuousPlayback : true;
1333
1334
  request.descriptionUrl = options.descriptionUrl || (typeof window !== "undefined" ? window.location.href : "");
1334
1335
  request.iconsSupported = true;
@@ -2726,7 +2727,8 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
2726
2727
  videoWidth: this.video.offsetWidth || this.video.clientWidth || 640,
2727
2728
  videoHeight: this.video.offsetHeight || this.video.clientHeight || 480,
2728
2729
  adWillAutoPlay: !!this.config.autoplay,
2729
- adWillPlayMuted: !!this.config.muted,
2730
+ adWillPlayMuted: true,
2731
+ playerVolume: 0,
2730
2732
  continuousPlayback: (_this_config_lowLatencyMode = this.config.lowLatencyMode) !== null && _this_config_lowLatencyMode !== void 0 ? _this_config_lowLatencyMode : false
2731
2733
  }).catch(function() {});
2732
2734
  fetchConsentSignals().then(function(signals) {