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.
@@ -1356,7 +1356,7 @@ function createPalNonceManager() {
1356
1356
  return {
1357
1357
  generateNonce: function generateNonce() {
1358
1358
  return _async_to_generator(function() {
1359
- var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_continuousPlayback, loader, goog, request, manager, error;
1359
+ var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_playerVolume, _options_continuousPlayback, loader, goog, request, manager, error;
1360
1360
  var _arguments = arguments;
1361
1361
  return _ts_generator(this, function(_state) {
1362
1362
  switch(_state.label){
@@ -1381,6 +1381,7 @@ function createPalNonceManager() {
1381
1381
  request = new goog.pal.NonceRequest();
1382
1382
  request.adWillAutoPlay = (_options_adWillAutoPlay = options.adWillAutoPlay) !== null && _options_adWillAutoPlay !== void 0 ? _options_adWillAutoPlay : true;
1383
1383
  request.adWillPlayMuted = (_options_adWillPlayMuted = options.adWillPlayMuted) !== null && _options_adWillPlayMuted !== void 0 ? _options_adWillPlayMuted : false;
1384
+ request.playerVolume = (_options_playerVolume = options.playerVolume) !== null && _options_playerVolume !== void 0 ? _options_playerVolume : request.adWillPlayMuted ? 0 : 1;
1384
1385
  request.continuousPlayback = (_options_continuousPlayback = options.continuousPlayback) !== null && _options_continuousPlayback !== void 0 ? _options_continuousPlayback : true;
1385
1386
  request.descriptionUrl = options.descriptionUrl || (typeof window !== "undefined" ? window.location.href : "");
1386
1387
  request.iconsSupported = true;
@@ -2778,7 +2779,8 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
2778
2779
  videoWidth: this.video.offsetWidth || this.video.clientWidth || 640,
2779
2780
  videoHeight: this.video.offsetHeight || this.video.clientHeight || 480,
2780
2781
  adWillAutoPlay: !!this.config.autoplay,
2781
- adWillPlayMuted: !!this.config.muted,
2782
+ adWillPlayMuted: true,
2783
+ playerVolume: 0,
2782
2784
  continuousPlayback: (_this_config_lowLatencyMode = this.config.lowLatencyMode) !== null && _this_config_lowLatencyMode !== void 0 ? _this_config_lowLatencyMode : false
2783
2785
  }).catch(function() {});
2784
2786
  fetchConsentSignals().then(function(signals) {