pageflow 13.0.0.beta6 → 13.0.0.beta7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pageflow might be problematic. Click here for more details.

Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +74 -0
  3. data/README.md +1 -0
  4. data/app/assets/audios/pageflow/unmute.mp3 +0 -0
  5. data/app/assets/images/pageflow/editor/help/phone_horizontal_slideshow_mode.gif +0 -0
  6. data/app/assets/javascripts/pageflow/asset_urls.js.erb +1 -1
  7. data/app/assets/javascripts/pageflow/audio/multi_player.js +4 -0
  8. data/app/assets/javascripts/pageflow/audio_player.js +1 -1
  9. data/app/assets/javascripts/pageflow/background_media.js +22 -0
  10. data/app/assets/javascripts/pageflow/base.js +1 -0
  11. data/app/assets/javascripts/pageflow/browser/agent.js +92 -78
  12. data/app/assets/javascripts/pageflow/browser/autoplay_support.js +2 -2
  13. data/app/assets/javascripts/pageflow/dist/react.js +711 -252
  14. data/app/assets/javascripts/pageflow/editor/api/page_type.js +4 -0
  15. data/app/assets/javascripts/pageflow/editor/base.js +1 -0
  16. data/app/assets/javascripts/pageflow/editor/collections/files_collection.js +8 -0
  17. data/app/assets/javascripts/pageflow/editor/initializers/boot.js +6 -4
  18. data/app/assets/javascripts/pageflow/editor/initializers/setup_asset_urls.js +3 -0
  19. data/app/assets/javascripts/pageflow/editor/models/entry.js +2 -2
  20. data/app/assets/javascripts/pageflow/editor/models/file_stage.js +6 -1
  21. data/app/assets/javascripts/pageflow/editor/models/mixins/stage_provider.js +9 -0
  22. data/app/assets/javascripts/pageflow/editor/models/mixins/transient_references.js +12 -2
  23. data/app/assets/javascripts/pageflow/editor/models/preview_entry_data.js +5 -0
  24. data/app/assets/javascripts/pageflow/editor/models/uploaded_file.js +6 -1
  25. data/app/assets/javascripts/pageflow/editor/templates/emulation_mode_button.jst.ejs +26 -0
  26. data/app/assets/javascripts/pageflow/editor/templates/entry_preview.jst.ejs +8 -3
  27. data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/options.js +1 -1
  28. data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/page_link.js +3 -6
  29. data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/page_transitions.js +14 -4
  30. data/app/assets/javascripts/pageflow/editor/views/edit_storyline_view.js +3 -6
  31. data/app/assets/javascripts/pageflow/editor/views/embedded/background_image_embedded_view.js +47 -12
  32. data/app/assets/javascripts/pageflow/editor/views/emulation_mode_button_view.js +45 -0
  33. data/app/assets/javascripts/pageflow/editor/views/entry_preview_view.js +62 -8
  34. data/app/assets/javascripts/pageflow/editor/views/file_stage_item_view.js +7 -0
  35. data/app/assets/javascripts/pageflow/editor/views/help_image_view.js +9 -0
  36. data/app/assets/javascripts/pageflow/editor/views/info_box_view.js +1 -1
  37. data/app/assets/javascripts/pageflow/editor/views/inputs/file_processing_state_display_view.js +60 -0
  38. data/app/assets/javascripts/pageflow/editor/views/sidebar_footer_view.js +12 -0
  39. data/app/assets/javascripts/pageflow/editor/views/widget_types/phone_horizontal_slideshow_mode.js +14 -0
  40. data/app/assets/javascripts/pageflow/entry_data.js +4 -0
  41. data/app/assets/javascripts/pageflow/media_player.js +7 -3
  42. data/app/assets/javascripts/pageflow/media_player/handle_failed_play.js +34 -0
  43. data/app/assets/javascripts/pageflow/media_player/volume_fading/web_audio.js +29 -3
  44. data/app/assets/javascripts/pageflow/page_transitions.js +59 -15
  45. data/app/assets/javascripts/pageflow/page_type.js +5 -1
  46. data/app/assets/javascripts/pageflow/seed_entry_data.js +13 -0
  47. data/app/assets/javascripts/pageflow/slideshow.js +31 -11
  48. data/app/assets/javascripts/pageflow/slideshow/atmo.js +23 -12
  49. data/app/assets/javascripts/pageflow/slideshow/lazy_page_widget.js +9 -3
  50. data/app/assets/javascripts/pageflow/slideshow/navigation_direction.js +37 -0
  51. data/app/assets/javascripts/pageflow/slideshow/page_widget.js +12 -6
  52. data/app/assets/javascripts/pageflow/slideshow/scroll_indicator_widget.js +13 -16
  53. data/app/assets/javascripts/pageflow/slideshow/scroller_widget.js +49 -14
  54. data/app/assets/javascripts/pageflow/ui/views/mixins/input_view.js +10 -3
  55. data/app/assets/javascripts/pageflow/video_player/lazy.js +1 -1
  56. data/app/assets/stylesheets/pageflow/animations/bounce.scss +13 -1
  57. data/app/assets/stylesheets/pageflow/editor/base.scss +5 -0
  58. data/app/assets/stylesheets/pageflow/editor/emulation_mode_button.scss +78 -0
  59. data/app/assets/stylesheets/pageflow/editor/entry_preview.scss +41 -0
  60. data/app/assets/stylesheets/pageflow/editor/file_stages.scss +11 -3
  61. data/app/assets/stylesheets/pageflow/editor/help.scss +4 -14
  62. data/app/assets/stylesheets/pageflow/editor/help_image.scss +5 -0
  63. data/app/assets/stylesheets/pageflow/editor/info_box.scss +5 -0
  64. data/app/assets/stylesheets/pageflow/editor/inputs.scss +1 -0
  65. data/app/assets/stylesheets/pageflow/editor/inputs/file_processing_state_display.scss +18 -0
  66. data/app/assets/stylesheets/pageflow/editor/sidebar_footer.scss +12 -0
  67. data/app/assets/stylesheets/pageflow/entries.scss +29 -6
  68. data/app/assets/stylesheets/pageflow/mixins/breakpoints.scss +5 -3
  69. data/app/assets/stylesheets/pageflow/mixins/icons/fontawesome.scss +1 -1
  70. data/app/assets/stylesheets/pageflow/navigation_mobile.scss +5 -1
  71. data/app/assets/stylesheets/pageflow/page_transitions.scss +0 -6
  72. data/app/assets/stylesheets/pageflow/page_transitions/crossfade.scss +5 -1
  73. data/app/assets/stylesheets/pageflow/page_transitions/fade.scss +44 -36
  74. data/app/assets/stylesheets/pageflow/page_transitions/scroll.scss +96 -11
  75. data/app/assets/stylesheets/pageflow/slideshow.scss +0 -4
  76. data/app/assets/stylesheets/pageflow/themes/default/background_media_unmute_button.scss +68 -0
  77. data/app/assets/stylesheets/pageflow/themes/default/base.scss +1 -0
  78. data/app/assets/stylesheets/pageflow/themes/default/indicators/icons/icon_font.scss +7 -0
  79. data/app/assets/stylesheets/pageflow/ui/forms.scss +4 -0
  80. data/app/controllers/pageflow/editor/files_controller.rb +9 -1
  81. data/app/helpers/pageflow/asset_urls_helper.rb +9 -0
  82. data/app/helpers/pageflow/background_image_helper.rb +6 -10
  83. data/app/helpers/pageflow/file_background_images_helper.rb +78 -0
  84. data/app/helpers/pageflow/pages_helper.rb +2 -2
  85. data/app/helpers/pageflow/render_json_helper.rb +3 -2
  86. data/app/models/concerns/pageflow/hosted_file.rb +2 -9
  87. data/app/models/concerns/pageflow/uploaded_file.rb +9 -0
  88. data/app/models/pageflow/draft_entry.rb +2 -2
  89. data/app/models/pageflow/image_file.rb +5 -20
  90. data/app/models/pageflow/image_file_css_background_image_urls.rb +17 -0
  91. data/app/models/pageflow/video_file_css_background_image_urls.rb +13 -0
  92. data/app/views/pageflow/editor/asset_urls/_asset_urls.json.jbuilder +4 -0
  93. data/app/views/pageflow/editor/entries/seed.json.erb +3 -1
  94. data/app/views/pageflow/editor/image_files/_image_file.json.jbuilder +1 -1
  95. data/app/views/pageflow/entries/_indicators.html.erb +8 -3
  96. data/app/views/pageflow/entries/edit.html.erb +1 -1
  97. data/app/views/pageflow/entries/show.css.erb +6 -20
  98. data/app/views/pageflow/file_background_images/_rule.css.erb +3 -0
  99. data/config/initializers/features.rb +1 -0
  100. data/config/locales/de.yml +20 -8
  101. data/config/locales/en.yml +23 -11
  102. data/config/routes.rb +1 -0
  103. data/lib/pageflow/built_in_file_type.rb +4 -0
  104. data/lib/pageflow/built_in_widget_type.rb +12 -0
  105. data/lib/pageflow/built_in_widget_types_plugin.rb +5 -0
  106. data/lib/pageflow/file_type.rb +39 -0
  107. data/lib/pageflow/file_types.rb +6 -0
  108. data/lib/pageflow/version.rb +1 -1
  109. data/spec/factories/hosted_files.rb +12 -8
  110. data/vendor/assets/javascripts/audio5.min.js +280 -129
  111. data/vendor/assets/javascripts/iscroll.js +16 -11
  112. metadata +47 -16
  113. data/app/assets/javascripts/pageflow/media_player/catch_play_promise.js +0 -23
  114. data/app/assets/stylesheets/pageflow/page_transitions/scroll_in.scss +0 -66
  115. data/app/assets/stylesheets/pageflow/page_transitions/scroll_in_right.scss +0 -68
  116. data/app/assets/stylesheets/pageflow/page_transitions/scroll_left.scss +0 -20
  117. data/app/assets/stylesheets/pageflow/page_transitions/scroll_over_from_left.scss +0 -12
  118. data/app/assets/stylesheets/pageflow/page_transitions/scroll_over_from_right.scss +0 -12
  119. data/app/assets/stylesheets/pageflow/page_transitions/scroll_right.scss +0 -20
  120. data/lib/pageflow/images/palette.png +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 458327814cd6e67033d7f9c3eb59ef4e57ef23fb9770d151eb495c7b7fd18981
4
- data.tar.gz: 2577102237697ecafac73bbe449822de477a3612fb3ffcd1c4242c82e971be53
3
+ metadata.gz: 36f82705b65879a75946b3528efeb001eced6ad262adf0f3157222fb81963aa8
4
+ data.tar.gz: b9ac60ca8a101b56ed12fc4339d615704dbbc5fe39f20aaad52a815509dad3ff
5
5
  SHA512:
6
- metadata.gz: 3bf9a2085255a19a7f649a8409a2b5421efd318a6ab1d29c234118b9850749072bcbca405cacf41495a6c0dc7bbf5d60d6714c5906c88f02849924b8b7984c90
7
- data.tar.gz: 638c991b271ee8498bb7431b154193782e302b9fc257c949340e17391d966ef1fb38e64e761b47b5af93567a76b026e1b88f550917384b5a8cfe10545859127d
6
+ metadata.gz: fc8389c46ee06a9362d826cb9fb61b58744070f0adc348ebcf0ee3264cbabae323d2781484b3534da819ce3c133f3afa597cedb6969e92e5f843b531b694bee1
7
+ data.tar.gz: c3be354d3d2a788ba26d76694e0444306f0fe781edefec72ec2b735a357cde1c951ef31937bc66603a0fbcd179bc3ebc8c09c5671a0b53ce985be15c353c8ee9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 13.0.0.beta7
4
+
5
+ 2018-10-23
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow/compare/v13.0.0.beta6...v13.0.0.beta7)
8
+
9
+ #### Breaking Changes
10
+
11
+ - Breaking change: Remove panorama mask image file style
12
+ ([#1044](https://github.com/codevise/pageflow/pull/1044))
13
+
14
+ - Semi-official JavaScript API for registering custom page transitions
15
+ changed
16
+ ([#1043](https://github.com/codevise/pageflow/pull/1043),
17
+ [#1045](https://github.com/codevise/pageflow/pull/1045))
18
+
19
+ #### Published Entries
20
+
21
+ - Option to allow horizontal swiping to change pages on phone
22
+ ([#1040](https://github.com/codevise/pageflow/pull/1040),
23
+ [#1042](https://github.com/codevise/pageflow/pull/1042),
24
+ [#1041](https://github.com/codevise/pageflow/pull/1041))
25
+ - Use "swipe to continue" for scroll indicator on mobile
26
+ ([#1037](https://github.com/codevise/pageflow/pull/1037))
27
+ - Prevent using desktop layout for landscape phones
28
+ ([#1039](https://github.com/codevise/pageflow/pull/1039))
29
+ - Hide scroll indicator during video also on iOS
30
+ ([#1038](https://github.com/codevise/pageflow/pull/1038))
31
+ - Make JSON seed safe to embed in html
32
+ ([#1030](https://github.com/codevise/pageflow/pull/1030))
33
+ - Fix position of scroll indicator arrow icon
34
+ ([#1021](https://github.com/codevise/pageflow/pull/1021))
35
+ - Improve iScroll
36
+ ([#1020](https://github.com/codevise/pageflow/pull/1020))
37
+ - Improve quality of panorama image file styles
38
+ ([#1019](https://github.com/codevise/pageflow/pull/1019))
39
+
40
+ #### Editor
41
+
42
+ - Add additionalInlineHelpText option to input views
43
+ ([#1036](https://github.com/codevise/pageflow/pull/1036))
44
+ - Allow displaying help images in editor
45
+ ([#1035](https://github.com/codevise/pageflow/pull/1035))
46
+ - Allow using html in infobox view
47
+ ([#1034](https://github.com/codevise/pageflow/pull/1034))
48
+ - Add phone emulation mode to editor
49
+ ([#1027](https://github.com/codevise/pageflow/pull/1027))
50
+ - Validate attachment presence for image and hosted files
51
+ ([#1028](https://github.com/codevise/pageflow/pull/1028))
52
+ - Improve files js api
53
+ ([#1025](https://github.com/codevise/pageflow/pull/1025))
54
+ - Add view to display unfinished file stages
55
+ ([#1023](https://github.com/codevise/pageflow/pull/1023))
56
+ - Improve transient references
57
+ ([#1022](https://github.com/codevise/pageflow/pull/1022))
58
+
59
+ #### Rails Engine
60
+
61
+ - Add shared example to pageflow-support to lint file types
62
+ ([#1026](https://github.com/codevise/pageflow/pull/1026))
63
+ - Custom params for file types
64
+ ([#1024](https://github.com/codevise/pageflow/pull/1024))
65
+ - File type background image rules for generated css
66
+ ([#944](https://github.com/codevise/pageflow/pull/944))
67
+
68
+ #### Internal
69
+
70
+ - Add Ruby 2.5.3 to Travis file
71
+ ([#1031](https://github.com/codevise/pageflow/pull/1031))
72
+ - Add "Reviewed by Hound" badge
73
+ ([#1032](https://github.com/codevise/pageflow/pull/1032))
74
+ - Improve hosted file factory
75
+ ([#1029](https://github.com/codevise/pageflow/pull/1029))
76
+
3
77
  ### Version 13.0.0.beta6
4
78
 
5
79
  2018-10-18
data/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  [![Build Status](https://travis-ci.org/codevise/pageflow.svg?branch=master)](https://travis-ci.org/codevise/pageflow)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/codevise/pageflow/badge.svg?branch=master)](https://coveralls.io/github/codevise/pageflow?branch=master)
6
6
  [![Code Climate](https://codeclimate.com/github/codevise/pageflow/badges/gpa.svg)](https://codeclimate.com/github/codevise/pageflow)
7
+ [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
7
8
 
8
9
  Multimedia storytelling for the web.
9
10
 
@@ -1,7 +1,7 @@
1
1
  pageflow.assetUrls = {
2
+ unmuteSound: '<%= asset_path("pageflow/unmute.mp3") %>',
2
3
  largeBandwidthProbe: '<%= Rails.env.test? ? asset_path("bandwidth_probe_large.png") : "//#{File.join(Pageflow.config.zencoder_options[:s3_host_alias], "bandwidth_probe_large.png")}" %>',
3
4
  smallBandwidthProbe: '<%= Rails.env.test? ? asset_path("bandwidth_probe_small.png") : "//#{File.join(Pageflow.config.zencoder_options[:s3_host_alias], "bandwidth_probe_small.png")}" %>',
4
- audioSwf: '<%= asset_path "pageflow/audio5js.swf" %>',
5
5
  emptyMp4: '<%= asset_path "pageflow/empty.mp4" %>',
6
6
  emptyWebm: '<%= asset_path "pageflow/empty.webm" %>'
7
7
  };
@@ -128,6 +128,10 @@ pageflow.Audio.MultiPlayer = function(pool, options) {
128
128
  that.listenTo(player, 'ended', function() {
129
129
  that.trigger('ended', {audioFileId: id});
130
130
  });
131
+
132
+ that.listenTo(player, 'playfailed', function() {
133
+ that.trigger('playfailed', {audioFileId: id});
134
+ });
131
135
  }
132
136
 
133
137
  function stopEventPropagation(player) {
@@ -40,7 +40,7 @@ pageflow.AudioPlayer = function(sources, options) {
40
40
  swf_path: pageflow.assetUrls.audioSwf,
41
41
  throw_errors: false,
42
42
  format_time: false,
43
- codecs: ['vorbis', 'mp4', 'mp3'],
43
+ codecs: options.codecs || ['vorbis', 'mp4', 'mp3'],
44
44
  ready: ready.resolve,
45
45
  loop: options.loop
46
46
  });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Mute feature settings for background media (ATMO and background videos)
3
+ *
4
+ * @since edge
5
+ */
6
+ pageflow.backgroundMedia = {
7
+ muted: false,
8
+
9
+ unmute: function() {
10
+ if (this.muted) {
11
+ this.muted = false;
12
+ pageflow.events.trigger('background_media:unmute');
13
+ }
14
+ },
15
+
16
+ mute: function() {
17
+ if (!this.muted) {
18
+ this.muted = true;
19
+ pageflow.events.trigger('background_media:mute');
20
+ }
21
+ }
22
+ };
@@ -10,6 +10,7 @@
10
10
  //= require_self
11
11
 
12
12
  //= require ./object
13
+ //= require ./background_media
13
14
  //= require ./entry_data
14
15
  //= require ./seed_entry_data
15
16
  //= require ./cookies
@@ -2,83 +2,97 @@
2
2
  * Detect browser via user agent. Use only if feature detection is not
3
3
  * an option.
4
4
  */
5
- pageflow.browser.agent = {
6
- matchesSilk: function() {
7
- return navigator.userAgent.match(/\bSilk\b/);
8
- },
9
-
10
- matchesDesktopSafari9: function() {
11
- return this.matchesSafari9() && !this.matchesMobilePlatform();
12
- },
13
-
14
- matchesDesktopSafari10: function() {
15
- return this.matchesSafari10() && !this.matchesMobilePlatform();
16
- },
17
-
18
- matchesSafari9: function() {
19
- return this.matchesSafari() &&
20
- this._matches(/Version\/9/i);
21
- },
22
-
23
- matchesSafari10: function() {
24
- return this.matchesSafari() &&
25
- this._matches(/Version\/10/i);
26
- },
27
-
28
- matchesSafari11: function() {
29
- return this.matchesSafari() &&
30
- this._matches(/Version\/11/i);
31
- },
32
-
33
- matchesSafari: function() {
34
- // - Chrome also reports to be a Safari
35
- // - Safari does not report to be a Chrome
36
- // - Edge also reports to be a Safari, but also reports to be Chrome
37
- return this._matches(/Safari\//i) &&
38
- !this._matches(/Chrome/i);
39
- },
40
-
41
- /**
42
- * Returns true on iOS Safari.
43
- * @return {boolean}
44
- */
45
- matchesMobileSafari: function() {
46
- var matchers = [/iPod/i, /iPad/i, /iPhone/i];
47
-
48
- return _.any(matchers, function(matcher) {
49
- return navigator.userAgent.match(matcher);
50
- });
51
- },
52
-
53
- /**
54
- * Returns true on iOS or Android.
55
- * @return {boolean}
56
- */
57
- matchesMobilePlatform: function() {
58
- var matchers = [/iPod/i, /iPad/i, /iPhone/i, /Android/i, /Silk/i, /IEMobile/i];
59
-
60
- return _.any(matchers, function(matcher) {
61
- return navigator.userAgent.match(matcher);
62
- });
63
- },
64
-
65
- /**
66
- * Returns true on Internet Explorser version 9, 10 and 11.
67
- * @return {boolean}
68
- */
69
- matchesIEUpTo11: function() {
70
- return navigator.userAgent.match(/Trident\//);
71
- },
72
-
73
- /**
74
- * Returns true in InApp browser of Facebook app.
75
- * @return {boolean}
76
- */
77
- matchesFacebookInAppBrowser: function() {
78
- return navigator.userAgent.match(/FBAN/) && navigator.userAgent.match(/FBAV/);
79
- },
80
-
81
- _matches: function(exp) {
82
- return navigator.userAgent.match(exp);
5
+ pageflow.browser.Agent = function(userAgent) {
6
+ return {
7
+ matchesSilk: function() {
8
+ return matches(/\bSilk\b/);
9
+ },
10
+
11
+ matchesDesktopSafari9: function() {
12
+ return this.matchesSafari9() && !this.matchesMobilePlatform();
13
+ },
14
+
15
+ matchesDesktopSafari10: function() {
16
+ return this.matchesSafari10() && !this.matchesMobilePlatform();
17
+ },
18
+
19
+ matchesSafari9: function() {
20
+ return this.matchesSafari() &&
21
+ matches(/Version\/9/i);
22
+ },
23
+
24
+ matchesSafari10: function() {
25
+ return this.matchesSafari() &&
26
+ matches(/Version\/10/i);
27
+ },
28
+
29
+ matchesSafari11: function() {
30
+ return this.matchesSafari() &&
31
+ matches(/Version\/11/i);
32
+ },
33
+
34
+ matchesSafari11AndAbove: function() {
35
+ return this.matchesSafari() &&
36
+ captureGroupGreaterOrEqual(/Version\/(\d+)/i, 11);
37
+ },
38
+
39
+ matchesSafari: function() {
40
+ // - Chrome also reports to be a Safari
41
+ // - Safari does not report to be a Chrome
42
+ // - Edge also reports to be a Safari, but also reports to be Chrome
43
+ return matches(/Safari\//i) &&
44
+ !matches(/Chrome/i);
45
+ },
46
+
47
+ /**
48
+ * Returns true on iOS Safari.
49
+ * @return {boolean}
50
+ */
51
+ matchesMobileSafari: function() {
52
+ var matchers = [/iPod/i, /iPad/i, /iPhone/i];
53
+
54
+ return _.any(matchers, function(matcher) {
55
+ return userAgent.match(matcher);
56
+ });
57
+ },
58
+
59
+ /**
60
+ * Returns true on iOS or Android.
61
+ * @return {boolean}
62
+ */
63
+ matchesMobilePlatform: function() {
64
+ var matchers = [/iPod/i, /iPad/i, /iPhone/i, /Android/i, /Silk/i, /IEMobile/i];
65
+
66
+ return _.any(matchers, function(matcher) {
67
+ return userAgent.match(matcher);
68
+ });
69
+ },
70
+
71
+ /**
72
+ * Returns true on Internet Explorser version 9, 10 and 11.
73
+ * @return {boolean}
74
+ */
75
+ matchesIEUpTo11: function() {
76
+ return userAgent.match(/Trident\//);
77
+ },
78
+
79
+ /**
80
+ * Returns true in InApp browser of Facebook app.
81
+ * @return {boolean}
82
+ */
83
+ matchesFacebookInAppBrowser: function() {
84
+ return userAgent.match(/FBAN/) && userAgent.match(/FBAV/);
85
+ }
86
+ };
87
+
88
+ function matches(exp) {
89
+ return !!userAgent.match(exp);
90
+ }
91
+
92
+ function captureGroupGreaterOrEqual(exp, version) {
93
+ var match = userAgent.match(exp);
94
+ return match && match[1] && parseInt(match[1], 10) >= version;
83
95
  }
84
96
  };
97
+
98
+ pageflow.browser.agent = new pageflow.browser.Agent(navigator.userAgent);
@@ -1,4 +1,4 @@
1
1
  pageflow.browser.feature('autoplay support', function(has) {
2
- return !pageflow.browser.agent.matchesSafari11() &&
3
- !pageflow.browser.agent.matchesMobilePlatform();
2
+ return !pageflow.browser.agent.matchesSafari11AndAbove() &&
3
+ !pageflow.browser.agent.matchesMobilePlatform();
4
4
  });
@@ -8901,19 +8901,19 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
8901
8901
 
8902
8902
  var _media = __webpack_require__(494);
8903
8903
 
8904
- var _interactivePageBackground = __webpack_require__(532);
8904
+ var _interactivePageBackground = __webpack_require__(535);
8905
8905
 
8906
8906
  var _pages = __webpack_require__(348);
8907
8907
 
8908
- var _registerPageType = __webpack_require__(537);
8908
+ var _registerPageType = __webpack_require__(540);
8909
8909
 
8910
8910
  var _registerPageType2 = _interopRequireDefault(_registerPageType);
8911
8911
 
8912
- var _registerPageTypeWithDefaultBackground = __webpack_require__(539);
8912
+ var _registerPageTypeWithDefaultBackground = __webpack_require__(542);
8913
8913
 
8914
8914
  var _registerPageTypeWithDefaultBackground2 = _interopRequireDefault(_registerPageTypeWithDefaultBackground);
8915
8915
 
8916
- var _registerWidgetType = __webpack_require__(540);
8916
+ var _registerWidgetType = __webpack_require__(543);
8917
8917
 
8918
8918
  var _registerWidgetType2 = _interopRequireDefault(_registerWidgetType);
8919
8919
 
@@ -8935,19 +8935,21 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
8935
8935
 
8936
8936
  var _utils = __webpack_require__(339);
8937
8937
 
8938
- var _ServerSidePage = __webpack_require__(541);
8938
+ var _ServerSidePage = __webpack_require__(544);
8939
8939
 
8940
8940
  var _ServerSidePage2 = _interopRequireDefault(_ServerSidePage);
8941
8941
 
8942
- var _builtInPageTypes = __webpack_require__(580);
8942
+ var _builtInPageTypes = __webpack_require__(586);
8943
8943
 
8944
- var _cookieNotice = __webpack_require__(545);
8944
+ var _backgroundMedia = __webpack_require__(548);
8945
8945
 
8946
- var _pageflow = __webpack_require__(586);
8946
+ var _cookieNotice = __webpack_require__(551);
8947
+
8948
+ var _pageflow = __webpack_require__(592);
8947
8949
 
8948
8950
  var _pageflow2 = _interopRequireDefault(_pageflow);
8949
8951
 
8950
- var _boot = __webpack_require__(542);
8952
+ var _boot = __webpack_require__(545);
8951
8953
 
8952
8954
  var _boot2 = _interopRequireDefault(_boot);
8953
8955
 
@@ -8957,6 +8959,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
8957
8959
 
8958
8960
  (0, _builtInPageTypes.register)();
8959
8961
  (0, _cookieNotice.registerWidgetTypes)();
8962
+ (0, _backgroundMedia.registerWidgetTypes)();
8960
8963
 
8961
8964
  if (_pageflow2.default.events) {
8962
8965
  _pageflow2.default.events.on('seed:loaded', function () {
@@ -23686,46 +23689,50 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
23686
23689
 
23687
23690
  var _Page2 = _interopRequireDefault(_Page);
23688
23691
 
23689
- var _PageVideoPlayer = __webpack_require__(502);
23692
+ var _PageVideoPlayer = __webpack_require__(503);
23690
23693
 
23691
23694
  var _PageVideoPlayer2 = _interopRequireDefault(_PageVideoPlayer);
23692
23695
 
23693
- var _MobilePageVideoPoster = __webpack_require__(516);
23696
+ var _MobilePageVideoPoster = __webpack_require__(517);
23694
23697
 
23695
23698
  var _MobilePageVideoPoster2 = _interopRequireDefault(_MobilePageVideoPoster);
23696
23699
 
23697
- var _PageBackgroundVideo = __webpack_require__(517);
23700
+ var _PageBackgroundVideo = __webpack_require__(518);
23698
23701
 
23699
23702
  var _PageBackgroundVideo2 = _interopRequireDefault(_PageBackgroundVideo);
23700
23703
 
23701
- var _PageBackgroundAsset = __webpack_require__(518);
23704
+ var _PageBackgroundAsset = __webpack_require__(519);
23702
23705
 
23703
23706
  var _PageBackgroundAsset2 = _interopRequireDefault(_PageBackgroundAsset);
23704
23707
 
23705
- var _PageBackground = __webpack_require__(519);
23708
+ var _PageBackground = __webpack_require__(520);
23706
23709
 
23707
23710
  var _PageBackground2 = _interopRequireDefault(_PageBackground);
23708
23711
 
23709
- var _PagePrintImage = __webpack_require__(520);
23712
+ var _PagePrintImage = __webpack_require__(521);
23710
23713
 
23711
23714
  var _PagePrintImage2 = _interopRequireDefault(_PagePrintImage);
23712
23715
 
23713
- var _createReducer = __webpack_require__(521);
23716
+ var _createReducer = __webpack_require__(522);
23714
23717
 
23715
23718
  var _createReducer2 = _interopRequireDefault(_createReducer);
23716
23719
 
23717
- var _sagas = __webpack_require__(523);
23720
+ var _sagas = __webpack_require__(524);
23718
23721
 
23719
23722
  var _sagas2 = _interopRequireDefault(_sagas);
23720
23723
 
23721
- var _fadeInWhenPageWillActivate = __webpack_require__(531);
23724
+ var _fadeInWhenPageWillActivate = __webpack_require__(534);
23722
23725
 
23723
23726
  var _fadeInWhenPageWillActivate2 = _interopRequireDefault(_fadeInWhenPageWillActivate);
23724
23727
 
23725
- var _fadeOutWhenPageWillDeactivate = __webpack_require__(529);
23728
+ var _fadeOutWhenPageWillDeactivate = __webpack_require__(532);
23726
23729
 
23727
23730
  var _fadeOutWhenPageWillDeactivate2 = _interopRequireDefault(_fadeOutWhenPageWillDeactivate);
23728
23731
 
23732
+ var _muteBackgroundMediaOnPlayFailed = __webpack_require__(526);
23733
+
23734
+ var _muteBackgroundMediaOnPlayFailed2 = _interopRequireDefault(_muteBackgroundMediaOnPlayFailed);
23735
+
23729
23736
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23730
23737
 
23731
23738
  function reduxModule(options) {
@@ -23763,7 +23770,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
23763
23770
  switch (_context2.prev = _context2.next) {
23764
23771
  case 0:
23765
23772
  _context2.next = 2;
23766
- return [(0, _fadeInWhenPageWillActivate2.default)({ scope: 'background' }), (0, _fadeOutWhenPageWillDeactivate2.default)({ scope: 'background' })];
23773
+ return [(0, _fadeInWhenPageWillActivate2.default)({ scope: 'background' }), (0, _fadeOutWhenPageWillDeactivate2.default)({ scope: 'background' }), (0, _muteBackgroundMediaOnPlayFailed2.default)()];
23767
23774
 
23768
23775
  case 2:
23769
23776
  case 'end':
@@ -23801,7 +23808,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
23801
23808
 
23802
23809
  var _PlayerControls2 = _interopRequireDefault(_PlayerControls);
23803
23810
 
23804
- var _NonJsLinks = __webpack_require__(500);
23811
+ var _NonJsLinks = __webpack_require__(501);
23805
23812
 
23806
23813
  var _NonJsLinks2 = _interopRequireDefault(_NonJsLinks);
23807
23814
 
@@ -23874,12 +23881,16 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
23874
23881
  file: (0, _selectors.prop)('file'),
23875
23882
  defaultTextTrackFileId: (0, _selectors.prop)('page.defaultTextTrackFileId')
23876
23883
  }),
23877
- hasAutoplaySupport: (0, _selectors.has)('autoplay support')
23884
+ hasAutoplaySupport: (0, _selectors.has)('autoplay support'),
23885
+ shouldAutoplay: (0, _selectors2.pageShouldAutoplay)({
23886
+ id: (0, _selectors.prop)('page.permaId'),
23887
+ autoplayWhenBackgroundMediaMuted: (0, _selectors.prop)('autoplayWhenBackgroundMediaMuted')
23888
+ })
23878
23889
  }))(MediaPage);
23879
23890
 
23880
23891
 
23881
23892
  function willAutoplay(props) {
23882
- return props.page.autoplay !== false && props.hasAutoplaySupport;
23893
+ return props.shouldAutoplay && props.hasAutoplaySupport && !props.playerState.playFailed;
23883
23894
  }
23884
23895
 
23885
23896
  function pageWraperClassName(className, autoplay, textTracks, playerState) {
@@ -24130,6 +24141,8 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24130
24141
  exports.playerActions = playerActions;
24131
24142
  exports.textTracks = textTracks;
24132
24143
  exports.videoQualitySetting = videoQualitySetting;
24144
+ exports.pageShouldAutoplay = pageShouldAutoplay;
24145
+ exports.pageHasAutoplayOption = pageHasAutoplayOption;
24133
24146
 
24134
24147
  var _actions = __webpack_require__(499);
24135
24148
 
@@ -24141,6 +24154,8 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24141
24154
 
24142
24155
  var _selectors4 = __webpack_require__(486);
24143
24156
 
24157
+ var _selectors5 = __webpack_require__(500);
24158
+
24144
24159
  var _utils = __webpack_require__(339);
24145
24160
 
24146
24161
  var _redux = __webpack_require__(351);
@@ -24237,6 +24252,21 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24237
24252
  return (0, _selectors3.setting)({ property: 'videoQuality' });
24238
24253
  }
24239
24254
 
24255
+ function pageShouldAutoplay(_ref4) {
24256
+ var autoplayWhenBackgroundMediaMuted = _ref4.autoplayWhenBackgroundMediaMuted,
24257
+ id = _ref4.id;
24258
+
24259
+ return (0, _utils.memoizedSelector)(autoplayWhenBackgroundMediaMuted, pageHasAutoplayOption({ id: id }), _selectors5.muted, function (autoplayWhenBackgroundMediaMuted, autoplayOption, isBackgroudMediaMuted) {
24260
+ return autoplayOption && (!isBackgroudMediaMuted || autoplayWhenBackgroundMediaMuted);
24261
+ });
24262
+ }
24263
+
24264
+ function pageHasAutoplayOption(options) {
24265
+ return (0, _utils.memoizedSelector)((0, _selectors2.pageAttribute)('autoplay', options), function (autoplayOption) {
24266
+ return autoplayOption !== false;
24267
+ });
24268
+ }
24269
+
24240
24270
  /***/ }),
24241
24271
  /* 499 */
24242
24272
  /***/ (function(module, exports, __webpack_require__) {
@@ -24246,7 +24276,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24246
24276
  Object.defineProperty(exports, "__esModule", {
24247
24277
  value: true
24248
24278
  });
24249
- exports.TOGGLE_INFO_BOX_DURING_PLAYBACK = exports.HIDE_INFO_BOX_DURING_PLAYBACK = exports.SHOW_INFO_BOX_DURING_PLAYBACK = exports.CONTROLS_HIDDEN = exports.FOCUS_LEFT_CONTROLS = exports.FOCUS_ENTERED_CONTROLS = exports.CONTROLS_LEFT = exports.CONTROLS_ENTERED = exports.USER_IDLE = exports.USER_INTERACTION = exports.HAS_NOT_BEEN_PLAYING_FOR_A_MOMENT = exports.WAITING = exports.SEEKED = exports.SEEKING = exports.ENDED = exports.TIME_UPDATE = exports.PAUSED = exports.PLAYING = exports.PROGRESS = exports.META_DATA_LOADED = exports.BUFFER_UNDERRUN_CONTINUE = exports.BUFFER_UNDERRUN = exports.ABORT_PREBUFFERING = exports.PREBUFFERED = exports.PREBUFFER = exports.SEEK_TO = exports.SCRUB_TO = exports.FADE_OUT_AND_PAUSE = exports.PAUSE = exports.PLAY_AND_FADE_IN = exports.PLAY = exports.TOGGLE_PLAYING = undefined;
24279
+ exports.TOGGLE_INFO_BOX_DURING_PLAYBACK = exports.HIDE_INFO_BOX_DURING_PLAYBACK = exports.SHOW_INFO_BOX_DURING_PLAYBACK = exports.CONTROLS_HIDDEN = exports.FOCUS_LEFT_CONTROLS = exports.FOCUS_ENTERED_CONTROLS = exports.CONTROLS_LEFT = exports.CONTROLS_ENTERED = exports.USER_IDLE = exports.USER_INTERACTION = exports.HAS_NOT_BEEN_PLAYING_FOR_A_MOMENT = exports.WAITING = exports.SEEKED = exports.SEEKING = exports.ENDED = exports.TIME_UPDATE = exports.PAUSED = exports.PLAYING = exports.PROGRESS = exports.META_DATA_LOADED = exports.BUFFER_UNDERRUN_CONTINUE = exports.BUFFER_UNDERRUN = exports.ABORT_PREBUFFERING = exports.PREBUFFERED = exports.PREBUFFER = exports.SEEK_TO = exports.SCRUB_TO = exports.PLAY_MUTED = exports.PLAY_FAILED = exports.FADE_OUT_AND_PAUSE = exports.PAUSE = exports.PLAY_AND_FADE_IN = exports.PLAY = exports.TOGGLE_PLAYING = undefined;
24250
24280
  exports.actionCreators = actionCreators;
24251
24281
  exports.updateTextTrackSettings = updateTextTrackSettings;
24252
24282
  exports.updateVideoQualitySetting = updateVideoQualitySetting;
@@ -24258,6 +24288,8 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24258
24288
  var PLAY_AND_FADE_IN = exports.PLAY_AND_FADE_IN = 'MEDIA_PLAY_AND_FADE_IN';
24259
24289
  var PAUSE = exports.PAUSE = 'MEDIA_PAUSE';
24260
24290
  var FADE_OUT_AND_PAUSE = exports.FADE_OUT_AND_PAUSE = 'MEDIA_FADE_OUT_AND_PAUSE';
24291
+ var PLAY_FAILED = exports.PLAY_FAILED = 'MEDIA_PLAY_FAILED';
24292
+ var PLAY_MUTED = exports.PLAY_MUTED = 'MEDIA_PLAY_MUTED';
24261
24293
 
24262
24294
  var SCRUB_TO = exports.SCRUB_TO = 'MEDIA_SCRUB_TO';
24263
24295
  var SEEK_TO = exports.SEEK_TO = 'MEDIA_SEEK_TO';
@@ -24325,6 +24357,12 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24325
24357
  fadeDuration: fadeDuration
24326
24358
  });
24327
24359
  },
24360
+ playFailed: function playFailed() {
24361
+ return pageAction(PLAY_FAILED);
24362
+ },
24363
+ playMuted: function playMuted() {
24364
+ return pageAction(PLAY_MUTED);
24365
+ },
24328
24366
  scrubTo: function scrubTo(time) {
24329
24367
  return pageAction(SCRUB_TO, {
24330
24368
  time: time
@@ -24461,6 +24499,20 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24461
24499
 
24462
24500
  /***/ }),
24463
24501
  /* 500 */
24502
+ /***/ (function(module, exports) {
24503
+
24504
+ "use strict";
24505
+
24506
+ Object.defineProperty(exports, "__esModule", {
24507
+ value: true
24508
+ });
24509
+ exports.muted = muted;
24510
+ function muted(state) {
24511
+ return state.backgroundMedia.muted;
24512
+ }
24513
+
24514
+ /***/ }),
24515
+ /* 501 */
24464
24516
  /***/ (function(module, exports, __webpack_require__) {
24465
24517
 
24466
24518
  'use strict';
@@ -24474,7 +24526,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24474
24526
 
24475
24527
  var _selectors = __webpack_require__(486);
24476
24528
 
24477
- var _selectors2 = __webpack_require__(501);
24529
+ var _selectors2 = __webpack_require__(502);
24478
24530
 
24479
24531
  var _reactRedux = __webpack_require__(397);
24480
24532
 
@@ -24516,7 +24568,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24516
24568
  }))(NonJsLinks);
24517
24569
 
24518
24570
  /***/ }),
24519
- /* 501 */
24571
+ /* 502 */
24520
24572
  /***/ (function(module, exports) {
24521
24573
 
24522
24574
  "use strict";
@@ -24532,7 +24584,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24532
24584
  }
24533
24585
 
24534
24586
  /***/ }),
24535
- /* 502 */
24587
+ /* 503 */
24536
24588
  /***/ (function(module, exports, __webpack_require__) {
24537
24589
 
24538
24590
  'use strict';
@@ -24543,17 +24595,19 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24543
24595
  exports.VideoPlayer = undefined;
24544
24596
  exports.default = PageVideoPlayer;
24545
24597
 
24546
- var _VideoFilePlayer = __webpack_require__(503);
24598
+ var _VideoFilePlayer = __webpack_require__(504);
24547
24599
 
24548
24600
  var _VideoFilePlayer2 = _interopRequireDefault(_VideoFilePlayer);
24549
24601
 
24550
- var _createPageFilePlayer = __webpack_require__(515);
24602
+ var _createPageFilePlayer = __webpack_require__(516);
24551
24603
 
24552
24604
  var _createPageFilePlayer2 = _interopRequireDefault(_createPageFilePlayer);
24553
24605
 
24554
- var _selectors = __webpack_require__(442);
24606
+ var _selectors = __webpack_require__(500);
24555
24607
 
24556
- var _selectors2 = __webpack_require__(488);
24608
+ var _selectors2 = __webpack_require__(442);
24609
+
24610
+ var _selectors3 = __webpack_require__(488);
24557
24611
 
24558
24612
  var _utils = __webpack_require__(339);
24559
24613
 
@@ -24562,10 +24616,15 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24562
24616
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24563
24617
 
24564
24618
  var VideoPlayer = exports.VideoPlayer = (0, _reactRedux.connect)((0, _utils.combineSelectors)({
24565
- file: (0, _selectors.file)('videoFiles', { id: (0, _selectors2.prop)('videoFileId') }),
24566
- posterImageFile: (0, _selectors.file)('imageFiles', { id: (0, _selectors2.prop)('posterImageFileId') })
24619
+ file: (0, _selectors2.file)('videoFiles', { id: (0, _selectors3.prop)('videoFileId') }),
24620
+ posterImageFile: (0, _selectors2.file)('imageFiles', { id: (0, _selectors3.prop)('posterImageFileId') }),
24621
+ muted: muted
24567
24622
  }))((0, _createPageFilePlayer2.default)(_VideoFilePlayer2.default));
24568
24623
 
24624
+ function muted(state, props) {
24625
+ return props.muted || (0, _selectors.muted)(state);
24626
+ }
24627
+
24569
24628
  function PageVideoPlayer(props) {
24570
24629
  var page = props.page;
24571
24630
 
@@ -24591,7 +24650,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24591
24650
  };
24592
24651
 
24593
24652
  /***/ }),
24594
- /* 503 */
24653
+ /* 504 */
24595
24654
  /***/ (function(module, exports, __webpack_require__) {
24596
24655
 
24597
24656
  'use strict';
@@ -24617,15 +24676,15 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24617
24676
  );
24618
24677
  };
24619
24678
 
24620
- var _createFilePlayer = __webpack_require__(504);
24679
+ var _createFilePlayer = __webpack_require__(505);
24621
24680
 
24622
24681
  var _createFilePlayer2 = _interopRequireDefault(_createFilePlayer);
24623
24682
 
24624
- var _Positioner = __webpack_require__(511);
24683
+ var _Positioner = __webpack_require__(512);
24625
24684
 
24626
24685
  var _Positioner2 = _interopRequireDefault(_Positioner);
24627
24686
 
24628
- var _sources = __webpack_require__(514);
24687
+ var _sources = __webpack_require__(515);
24629
24688
 
24630
24689
  var _sources2 = _interopRequireDefault(_sources);
24631
24690
 
@@ -24643,7 +24702,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24643
24702
  });
24644
24703
 
24645
24704
  /***/ }),
24646
- /* 504 */
24705
+ /* 505 */
24647
24706
  /***/ (function(module, exports, __webpack_require__) {
24648
24707
 
24649
24708
  'use strict';
@@ -24674,6 +24733,8 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24674
24733
 
24675
24734
  _this.displaysTextTracksInNativePlayer = _this.props.hasNativeVideoPlayer && tagName == 'video';
24676
24735
 
24736
+ _this.initiallyMuted = _this.props.muted;
24737
+
24677
24738
  _this.updateAtmoSettings();
24678
24739
 
24679
24740
  _this.setupMediaTag = function (element) {
@@ -24717,7 +24778,9 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24717
24778
  return;
24718
24779
  }
24719
24780
 
24720
- (0, _handlePlayerState.updatePlayer)(this.player, prevProps.playerState, this.props.playerState, this.props.playerActions, this.props.playsInline);
24781
+ updatePlayerMuted(this.player, prevProps.muted, this.props.muted);
24782
+
24783
+ (0, _handlePlayerState.updatePlayer)(this.player, prevProps.playerState, this.props.playerState, this.props.playerActions);
24721
24784
 
24722
24785
  if (!this.displaysTextTracksInNativePlayer) {
24723
24786
  (0, _textTracks.updateTextTracks)(this.player, prevProps.textTracks.activeFileId, this.props.textTracks.activeFileId, this.props.textTrackPosition);
@@ -24740,7 +24803,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24740
24803
  tracks: (0, _textTracks.textTracksFromFiles)(this.props.textTracks.files, this.props.textTracksEnabled),
24741
24804
  poster: poster(this.props.file, this.props.posterImageFile),
24742
24805
  loop: this.props.loop,
24743
- muted: this.props.muted,
24806
+ muted: this.initiallyMuted,
24744
24807
  playsInline: this.props.playsInline,
24745
24808
  alt: this.props.file.alt,
24746
24809
 
@@ -24785,23 +24848,23 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24785
24848
  return result;
24786
24849
  };
24787
24850
 
24788
- var _MediaTag = __webpack_require__(505);
24851
+ var _MediaTag = __webpack_require__(506);
24789
24852
 
24790
24853
  var _MediaTag2 = _interopRequireDefault(_MediaTag);
24791
24854
 
24792
- var _createPageflowPlayer = __webpack_require__(506);
24855
+ var _createPageflowPlayer = __webpack_require__(507);
24793
24856
 
24794
24857
  var _createPageflowPlayer2 = _interopRequireDefault(_createPageflowPlayer);
24795
24858
 
24796
- var _watchPlayer = __webpack_require__(507);
24859
+ var _watchPlayer = __webpack_require__(508);
24797
24860
 
24798
24861
  var _watchPlayer2 = _interopRequireDefault(_watchPlayer);
24799
24862
 
24800
24863
  var _actions = __webpack_require__(499);
24801
24864
 
24802
- var _handlePlayerState = __webpack_require__(508);
24865
+ var _handlePlayerState = __webpack_require__(509);
24803
24866
 
24804
- var _textTracks = __webpack_require__(509);
24867
+ var _textTracks = __webpack_require__(510);
24805
24868
 
24806
24869
  var _selectors = __webpack_require__(498);
24807
24870
 
@@ -24811,7 +24874,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24811
24874
 
24812
24875
  var _selectors4 = __webpack_require__(439);
24813
24876
 
24814
- var _selectors5 = __webpack_require__(510);
24877
+ var _selectors5 = __webpack_require__(511);
24815
24878
 
24816
24879
  var _react = __webpack_require__(333);
24817
24880
 
@@ -24846,8 +24909,14 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
24846
24909
  }
24847
24910
  }
24848
24911
 
24912
+ function updatePlayerMuted(player, prevMuted, muted) {
24913
+ if (prevMuted !== muted) {
24914
+ player.muted(muted);
24915
+ }
24916
+ }
24917
+
24849
24918
  /***/ }),
24850
- /* 505 */
24919
+ /* 506 */
24851
24920
  /***/ (function(module, exports, __webpack_require__) {
24852
24921
 
24853
24922
  'use strict';
@@ -25037,7 +25106,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25037
25106
  }
25038
25107
 
25039
25108
  /***/ }),
25040
- /* 506 */
25109
+ /* 507 */
25041
25110
  /***/ (function(module, exports) {
25042
25111
 
25043
25112
  'use strict';
@@ -25070,6 +25139,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25070
25139
  bufferUnderrunWaiting: true,
25071
25140
  useSlimPlayerControlsDuringPhonePlayback: !playsInline && !isAudio,
25072
25141
  fullscreenDuringPhonePlayback: !playsInline && !isAudio,
25142
+ fallbackToMutedAutoplay: !isAudio,
25073
25143
 
25074
25144
  volumeFading: true,
25075
25145
  hooks: pageflow.atmo.createMediaPlayerHooks(atmoSettings),
@@ -25091,7 +25161,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25091
25161
  }
25092
25162
 
25093
25163
  /***/ }),
25094
- /* 507 */
25164
+ /* 508 */
25095
25165
  /***/ (function(module, exports) {
25096
25166
 
25097
25167
  'use strict';
@@ -25115,6 +25185,8 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25115
25185
  });
25116
25186
 
25117
25187
  player.on('play', actions.playing);
25188
+ player.on('playfailed', actions.playFailed);
25189
+ player.on('playmuted', actions.playMuted);
25118
25190
  player.on('pause', actions.paused);
25119
25191
  player.on('waiting', actions.waiting);
25120
25192
  player.on('seeking', actions.seeking);
@@ -25133,7 +25205,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25133
25205
  };
25134
25206
 
25135
25207
  /***/ }),
25136
- /* 508 */
25208
+ /* 509 */
25137
25209
  /***/ (function(module, exports) {
25138
25210
 
25139
25211
  'use strict';
@@ -25167,7 +25239,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25167
25239
  });
25168
25240
  }
25169
25241
 
25170
- function updatePlayer(player, playerState, nextPlayerState, playerActions, playsInline) {
25242
+ function updatePlayer(player, playerState, nextPlayerState, playerActions) {
25171
25243
  if (!playerState.shouldPrebuffer && nextPlayerState.shouldPrebuffer) {
25172
25244
  player.prebuffer().then(playerActions.prebuffered);
25173
25245
  }
@@ -25192,7 +25264,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25192
25264
  }
25193
25265
 
25194
25266
  /***/ }),
25195
- /* 509 */
25267
+ /* 510 */
25196
25268
  /***/ (function(module, exports) {
25197
25269
 
25198
25270
  'use strict';
@@ -25263,7 +25335,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25263
25335
  }
25264
25336
 
25265
25337
  /***/ }),
25266
- /* 510 */
25338
+ /* 511 */
25267
25339
  /***/ (function(module, exports) {
25268
25340
 
25269
25341
  "use strict";
@@ -25279,7 +25351,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25279
25351
  }
25280
25352
 
25281
25353
  /***/ }),
25282
- /* 511 */
25354
+ /* 512 */
25283
25355
  /***/ (function(module, exports, __webpack_require__) {
25284
25356
 
25285
25357
  'use strict';
@@ -25292,11 +25364,11 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25292
25364
 
25293
25365
  exports.default = Positioner;
25294
25366
 
25295
- var _getDimensions = __webpack_require__(512);
25367
+ var _getDimensions = __webpack_require__(513);
25296
25368
 
25297
25369
  var _getDimensions2 = _interopRequireDefault(_getDimensions);
25298
25370
 
25299
- var _getCueOffsetClassName = __webpack_require__(513);
25371
+ var _getCueOffsetClassName = __webpack_require__(514);
25300
25372
 
25301
25373
  var _getCueOffsetClassName2 = _interopRequireDefault(_getCueOffsetClassName);
25302
25374
 
@@ -25347,7 +25419,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25347
25419
  }
25348
25420
 
25349
25421
  /***/ }),
25350
- /* 512 */
25422
+ /* 513 */
25351
25423
  /***/ (function(module, exports) {
25352
25424
 
25353
25425
  'use strict';
@@ -25401,7 +25473,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25401
25473
  };
25402
25474
 
25403
25475
  /***/ }),
25404
- /* 513 */
25476
+ /* 514 */
25405
25477
  /***/ (function(module, exports) {
25406
25478
 
25407
25479
  'use strict';
@@ -25424,7 +25496,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25424
25496
  }
25425
25497
 
25426
25498
  /***/ }),
25427
- /* 514 */
25499
+ /* 515 */
25428
25500
  /***/ (function(module, exports) {
25429
25501
 
25430
25502
  'use strict';
@@ -25471,7 +25543,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25471
25543
  };
25472
25544
 
25473
25545
  /***/ }),
25474
- /* 515 */
25546
+ /* 516 */
25475
25547
  /***/ (function(module, exports, __webpack_require__) {
25476
25548
 
25477
25549
  'use strict';
@@ -25514,7 +25586,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25514
25586
  var _utils = __webpack_require__(339);
25515
25587
 
25516
25588
  /***/ }),
25517
- /* 516 */
25589
+ /* 517 */
25518
25590
  /***/ (function(module, exports, __webpack_require__) {
25519
25591
 
25520
25592
  'use strict';
@@ -25568,7 +25640,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25568
25640
  }))(MobilePageVideoPoster);
25569
25641
 
25570
25642
  /***/ }),
25571
- /* 517 */
25643
+ /* 518 */
25572
25644
  /***/ (function(module, exports, __webpack_require__) {
25573
25645
 
25574
25646
  'use strict';
@@ -25581,11 +25653,11 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25581
25653
 
25582
25654
  exports.PageBackgroundVideo = PageBackgroundVideo;
25583
25655
 
25584
- var _PageVideoPlayer = __webpack_require__(502);
25656
+ var _PageVideoPlayer = __webpack_require__(503);
25585
25657
 
25586
25658
  var _PageVideoPlayer2 = _interopRequireDefault(_PageVideoPlayer);
25587
25659
 
25588
- var _MobilePageVideoPoster = __webpack_require__(516);
25660
+ var _MobilePageVideoPoster = __webpack_require__(517);
25589
25661
 
25590
25662
  var _MobilePageVideoPoster2 = _interopRequireDefault(_MobilePageVideoPoster);
25591
25663
 
@@ -25625,7 +25697,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25625
25697
  }))(PageBackgroundVideo);
25626
25698
 
25627
25699
  /***/ }),
25628
- /* 518 */
25700
+ /* 519 */
25629
25701
  /***/ (function(module, exports, __webpack_require__) {
25630
25702
 
25631
25703
  'use strict';
@@ -25637,7 +25709,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25637
25709
 
25638
25710
  var _components = __webpack_require__(331);
25639
25711
 
25640
- var _PageBackgroundVideo = __webpack_require__(517);
25712
+ var _PageBackgroundVideo = __webpack_require__(518);
25641
25713
 
25642
25714
  var _PageBackgroundVideo2 = _interopRequireDefault(_PageBackgroundVideo);
25643
25715
 
@@ -25679,7 +25751,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25679
25751
  }))(PageBackgroundAsset);
25680
25752
 
25681
25753
  /***/ }),
25682
- /* 519 */
25754
+ /* 520 */
25683
25755
  /***/ (function(module, exports, __webpack_require__) {
25684
25756
 
25685
25757
  'use strict';
@@ -25691,7 +25763,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25691
25763
 
25692
25764
  var _components = __webpack_require__(331);
25693
25765
 
25694
- var _PageBackgroundAsset = __webpack_require__(518);
25766
+ var _PageBackgroundAsset = __webpack_require__(519);
25695
25767
 
25696
25768
  var _PageBackgroundAsset2 = _interopRequireDefault(_PageBackgroundAsset);
25697
25769
 
@@ -25707,7 +25779,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25707
25779
  }
25708
25780
 
25709
25781
  /***/ }),
25710
- /* 520 */
25782
+ /* 521 */
25711
25783
  /***/ (function(module, exports, __webpack_require__) {
25712
25784
 
25713
25785
  'use strict';
@@ -25775,7 +25847,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25775
25847
  }
25776
25848
 
25777
25849
  /***/ }),
25778
- /* 521 */
25850
+ /* 522 */
25779
25851
  /***/ (function(module, exports, __webpack_require__) {
25780
25852
 
25781
25853
  'use strict';
@@ -25815,6 +25887,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25815
25887
  case _actions.PLAY:
25816
25888
  return _extends({}, state, {
25817
25889
  shouldPlay: true,
25890
+ playFailed: false,
25818
25891
  hasBeenPlayingJustNow: true,
25819
25892
  unplayed: false,
25820
25893
  fadeDuration: null,
@@ -25824,6 +25897,15 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25824
25897
  return _extends({}, state, {
25825
25898
  isPlaying: true
25826
25899
  });
25900
+ case _actions.PLAY_FAILED:
25901
+ return _extends({}, state, {
25902
+ shouldPlay: false,
25903
+ playFailed: true,
25904
+ hasBeenPlayingJustNow: false,
25905
+ unplayed: true,
25906
+ fadeDuration: null,
25907
+ isLoading: false
25908
+ });
25827
25909
  case _actions.PLAY_AND_FADE_IN:
25828
25910
  return _extends({}, state, {
25829
25911
  shouldPlay: true,
@@ -25981,12 +26063,12 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
25981
26063
 
25982
26064
  var _actions = __webpack_require__(499);
25983
26065
 
25984
- var _actions2 = __webpack_require__(522);
26066
+ var _actions2 = __webpack_require__(523);
25985
26067
 
25986
26068
  var _actions3 = __webpack_require__(329);
25987
26069
 
25988
26070
  /***/ }),
25989
- /* 522 */
26071
+ /* 523 */
25990
26072
  /***/ (function(module, exports, __webpack_require__) {
25991
26073
 
25992
26074
  'use strict';
@@ -26016,7 +26098,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26016
26098
  }
26017
26099
 
26018
26100
  /***/ }),
26019
- /* 523 */
26101
+ /* 524 */
26020
26102
  /***/ (function(module, exports, __webpack_require__) {
26021
26103
 
26022
26104
  'use strict';
@@ -26024,33 +26106,40 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26024
26106
  Object.defineProperty(exports, "__esModule", {
26025
26107
  value: true
26026
26108
  });
26109
+
26110
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
26111
+
26027
26112
  exports.default = _callee;
26028
26113
 
26029
- var _togglePlaying = __webpack_require__(524);
26114
+ var _togglePlaying = __webpack_require__(525);
26030
26115
 
26031
26116
  var _togglePlaying2 = _interopRequireDefault(_togglePlaying);
26032
26117
 
26033
- var _handlePageDidActivate = __webpack_require__(525);
26118
+ var _muteBackgroundMediaOnPlayFailed = __webpack_require__(526);
26119
+
26120
+ var _muteBackgroundMediaOnPlayFailed2 = _interopRequireDefault(_muteBackgroundMediaOnPlayFailed);
26121
+
26122
+ var _handlePageDidActivate = __webpack_require__(527);
26034
26123
 
26035
26124
  var _handlePageDidActivate2 = _interopRequireDefault(_handlePageDidActivate);
26036
26125
 
26037
- var _disableScrollIndicatorDuringPlayback = __webpack_require__(526);
26126
+ var _disableScrollIndicatorDuringPlayback = __webpack_require__(529);
26038
26127
 
26039
26128
  var _disableScrollIndicatorDuringPlayback2 = _interopRequireDefault(_disableScrollIndicatorDuringPlayback);
26040
26129
 
26041
- var _hasNotBeenPlayingForAMoment = __webpack_require__(527);
26130
+ var _hasNotBeenPlayingForAMoment = __webpack_require__(530);
26042
26131
 
26043
26132
  var _hasNotBeenPlayingForAMoment2 = _interopRequireDefault(_hasNotBeenPlayingForAMoment);
26044
26133
 
26045
- var _idling = __webpack_require__(528);
26134
+ var _idling = __webpack_require__(531);
26046
26135
 
26047
26136
  var _idling2 = _interopRequireDefault(_idling);
26048
26137
 
26049
- var _fadeOutWhenPageWillDeactivate = __webpack_require__(529);
26138
+ var _fadeOutWhenPageWillDeactivate = __webpack_require__(532);
26050
26139
 
26051
26140
  var _fadeOutWhenPageWillDeactivate2 = _interopRequireDefault(_fadeOutWhenPageWillDeactivate);
26052
26141
 
26053
- var _goToNextPageOnEnd = __webpack_require__(530);
26142
+ var _goToNextPageOnEnd = __webpack_require__(533);
26054
26143
 
26055
26144
  var _goToNextPageOnEnd2 = _interopRequireDefault(_goToNextPageOnEnd);
26056
26145
 
@@ -26067,15 +26156,17 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26067
26156
  while (1) {
26068
26157
  switch (_context.prev = _context.next) {
26069
26158
  case 0:
26070
- sagas = [(0, _togglePlaying2.default)()];
26159
+ sagas = [(0, _togglePlaying2.default)(), (0, _muteBackgroundMediaOnPlayFailed2.default)(), (0, _disableScrollIndicatorDuringPlayback2.default)()];
26071
26160
 
26072
26161
 
26073
26162
  if (!options.playsInNativePlayer || !options.playsInNativePlayer()) {
26074
- sagas.push([(0, _disableScrollIndicatorDuringPlayback2.default)(), (0, _goToNextPageOnEnd2.default)(), (0, _fadeOutWhenPageWillDeactivate2.default)(), (0, _hasNotBeenPlayingForAMoment2.default)()]);
26163
+ sagas.push([(0, _goToNextPageOnEnd2.default)(), (0, _fadeOutWhenPageWillDeactivate2.default)(), (0, _hasNotBeenPlayingForAMoment2.default)()]);
26075
26164
  }
26076
26165
 
26077
26166
  if (!(0, _utils.has)('mobile platform')) {
26078
- sagas.push([(0, _handlePageDidActivate2.default)()]);
26167
+ sagas.push([(0, _handlePageDidActivate2.default)(_extends({}, options, {
26168
+ canAutoplay: (0, _utils.has)('autoplay support')
26169
+ }))]);
26079
26170
  }
26080
26171
 
26081
26172
  if (options.hideControls) {
@@ -26094,7 +26185,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26094
26185
  }
26095
26186
 
26096
26187
  /***/ }),
26097
- /* 524 */
26188
+ /* 525 */
26098
26189
  /***/ (function(module, exports, __webpack_require__) {
26099
26190
 
26100
26191
  'use strict';
@@ -26106,7 +26197,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26106
26197
 
26107
26198
  var _actions = __webpack_require__(499);
26108
26199
 
26109
- var _actions2 = __webpack_require__(522);
26200
+ var _actions2 = __webpack_require__(523);
26110
26201
 
26111
26202
  var _selectors = __webpack_require__(498);
26112
26203
 
@@ -26156,14 +26247,20 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26156
26247
  return (0, _effects.put)(pause());
26157
26248
 
26158
26249
  case 6:
26159
- _context2.next = 10;
26250
+ _context2.next = 12;
26160
26251
  break;
26161
26252
 
26162
26253
  case 8:
26163
26254
  _context2.next = 10;
26164
- return (0, _effects.put)(play());
26255
+ return (0, _effects.call)(function () {
26256
+ return pageflow.backgroundMedia.unmute();
26257
+ });
26165
26258
 
26166
26259
  case 10:
26260
+ _context2.next = 12;
26261
+ return (0, _effects.put)(play());
26262
+
26263
+ case 12:
26167
26264
  case 'end':
26168
26265
  return _context2.stop();
26169
26266
  }
@@ -26172,7 +26269,61 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26172
26269
  }
26173
26270
 
26174
26271
  /***/ }),
26175
- /* 525 */
26272
+ /* 526 */
26273
+ /***/ (function(module, exports, __webpack_require__) {
26274
+
26275
+ 'use strict';
26276
+
26277
+ Object.defineProperty(exports, "__esModule", {
26278
+ value: true
26279
+ });
26280
+ exports.default = _callee;
26281
+
26282
+ var _actions = __webpack_require__(499);
26283
+
26284
+ var _reduxSaga = __webpack_require__(387);
26285
+
26286
+ var _effects = __webpack_require__(383);
26287
+
26288
+ var _marked = /*#__PURE__*/regeneratorRuntime.mark(_callee),
26289
+ _marked2 = /*#__PURE__*/regeneratorRuntime.mark(muteBackgoundAudio);
26290
+
26291
+ function _callee() {
26292
+ return regeneratorRuntime.wrap(function _callee$(_context) {
26293
+ while (1) {
26294
+ switch (_context.prev = _context.next) {
26295
+ case 0:
26296
+ _context.next = 2;
26297
+ return (0, _reduxSaga.takeEvery)([_actions.PLAY_FAILED, _actions.PLAY_MUTED], muteBackgoundAudio);
26298
+
26299
+ case 2:
26300
+ case 'end':
26301
+ return _context.stop();
26302
+ }
26303
+ }
26304
+ }, _marked, this);
26305
+ }
26306
+
26307
+ function muteBackgoundAudio() {
26308
+ return regeneratorRuntime.wrap(function muteBackgoundAudio$(_context2) {
26309
+ while (1) {
26310
+ switch (_context2.prev = _context2.next) {
26311
+ case 0:
26312
+ _context2.next = 2;
26313
+ return (0, _effects.call)(function () {
26314
+ return pageflow.backgroundMedia.mute();
26315
+ });
26316
+
26317
+ case 2:
26318
+ case 'end':
26319
+ return _context2.stop();
26320
+ }
26321
+ }
26322
+ }, _marked2, this);
26323
+ }
26324
+
26325
+ /***/ }),
26326
+ /* 527 */
26176
26327
  /***/ (function(module, exports, __webpack_require__) {
26177
26328
 
26178
26329
  'use strict';
@@ -26190,17 +26341,21 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26190
26341
 
26191
26342
  var _actions2 = __webpack_require__(499);
26192
26343
 
26193
- var _selectors = __webpack_require__(375);
26344
+ var _actions3 = __webpack_require__(528);
26345
+
26346
+ var _selectors = __webpack_require__(498);
26194
26347
 
26195
26348
  var _marked = /*#__PURE__*/regeneratorRuntime.mark(_callee2),
26196
- _marked2 = /*#__PURE__*/regeneratorRuntime.mark(prebufferAndPlay);
26349
+ _marked2 = /*#__PURE__*/regeneratorRuntime.mark(prebufferAndPlayOnUnmute),
26350
+ _marked3 = /*#__PURE__*/regeneratorRuntime.mark(prebufferAndPlay),
26351
+ _marked4 = /*#__PURE__*/regeneratorRuntime.mark(autoplayPage);
26197
26352
 
26198
26353
  var _actionCreators = (0, _actions2.actionCreators)(),
26199
26354
  play = _actionCreators.play,
26200
26355
  prebuffer = _actionCreators.prebuffer,
26201
26356
  waiting = _actionCreators.waiting;
26202
26357
 
26203
- function _callee2() {
26358
+ function _callee2(options) {
26204
26359
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
26205
26360
  while (1) {
26206
26361
  switch (_context2.prev = _context2.next) {
@@ -26212,10 +26367,13 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26212
26367
  switch (_context.prev = _context.next) {
26213
26368
  case 0:
26214
26369
  _context.next = 2;
26215
- return (0, _effects.race)({
26216
- task: (0, _effects.call)(prebufferAndPlay),
26370
+ return [(0, _effects.race)({
26371
+ task: (0, _effects.call)(prebufferAndPlay, options),
26217
26372
  cancel: (0, _effects.take)(_actions.PAGE_WILL_DEACTIVATE)
26218
- });
26373
+ }), (0, _effects.race)({
26374
+ task: (0, _effects.call)(prebufferAndPlayOnUnmute, options),
26375
+ cancel: (0, _effects.take)(_actions.PAGE_WILL_DEACTIVATE)
26376
+ })];
26219
26377
 
26220
26378
  case 2:
26221
26379
  case 'end':
@@ -26233,53 +26391,157 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26233
26391
  }, _marked, this);
26234
26392
  }
26235
26393
 
26236
- function prebufferAndPlay() {
26237
- var autoplay;
26238
- return regeneratorRuntime.wrap(function prebufferAndPlay$(_context3) {
26394
+ function prebufferAndPlayOnUnmute(options) {
26395
+ var _ref, unmute;
26396
+
26397
+ return regeneratorRuntime.wrap(function prebufferAndPlayOnUnmute$(_context3) {
26239
26398
  while (1) {
26240
26399
  switch (_context3.prev = _context3.next) {
26241
26400
  case 0:
26242
- _context3.next = 2;
26243
- return (0, _effects.select)((0, _selectors.pageAttribute)('autoplay'));
26401
+ _context3.t0 = options.retryOnUnmute;
26244
26402
 
26245
- case 2:
26246
- autoplay = _context3.sent;
26403
+ if (!_context3.t0) {
26404
+ _context3.next = 5;
26405
+ break;
26406
+ }
26407
+
26408
+ _context3.next = 4;
26409
+ return (0, _effects.select)((0, _selectors.pageHasAutoplayOption)());
26410
+
26411
+ case 4:
26412
+ _context3.t0 = _context3.sent;
26247
26413
 
26248
- if (!(autoplay !== false)) {
26249
- _context3.next = 6;
26414
+ case 5:
26415
+ if (!_context3.t0) {
26416
+ _context3.next = 12;
26250
26417
  break;
26251
26418
  }
26252
26419
 
26253
- _context3.next = 6;
26420
+ _context3.next = 8;
26421
+ return (0, _effects.race)({
26422
+ unmute: (0, _effects.take)(_actions3.UNMUTE),
26423
+ cancel: (0, _effects.take)(_actions.PAGE_WILL_DEACTIVATE)
26424
+ });
26425
+
26426
+ case 8:
26427
+ _ref = _context3.sent;
26428
+ unmute = _ref.unmute;
26429
+
26430
+ if (!unmute) {
26431
+ _context3.next = 12;
26432
+ break;
26433
+ }
26434
+
26435
+ return _context3.delegateYield(prebufferAndPlay(options), 't1', 12);
26436
+
26437
+ case 12:
26438
+ case 'end':
26439
+ return _context3.stop();
26440
+ }
26441
+ }
26442
+ }, _marked2, this);
26443
+ }
26444
+
26445
+ function prebufferAndPlay(options) {
26446
+ var autoplay;
26447
+ return regeneratorRuntime.wrap(function prebufferAndPlay$(_context4) {
26448
+ while (1) {
26449
+ switch (_context4.prev = _context4.next) {
26450
+ case 0:
26451
+ return _context4.delegateYield(autoplayPage(options), 't0', 1);
26452
+
26453
+ case 1:
26454
+ autoplay = _context4.t0;
26455
+
26456
+ if (!autoplay) {
26457
+ _context4.next = 5;
26458
+ break;
26459
+ }
26460
+
26461
+ _context4.next = 5;
26254
26462
  return (0, _effects.put)(waiting());
26255
26463
 
26256
- case 6:
26257
- _context3.next = 8;
26464
+ case 5:
26465
+ _context4.next = 7;
26258
26466
  return [(0, _effects.take)(_actions2.PREBUFFERED), (0, _effects.put)(prebuffer())];
26259
26467
 
26260
- case 8:
26261
- if (!(autoplay !== false)) {
26262
- _context3.next = 13;
26468
+ case 7:
26469
+ if (!autoplay) {
26470
+ _context4.next = 12;
26263
26471
  break;
26264
26472
  }
26265
26473
 
26266
- _context3.next = 11;
26474
+ _context4.next = 10;
26267
26475
  return (0, _effects.call)(_reduxSaga.delay, 1000);
26268
26476
 
26269
- case 11:
26270
- _context3.next = 13;
26477
+ case 10:
26478
+ _context4.next = 12;
26271
26479
  return (0, _effects.put)(play());
26272
26480
 
26273
- case 13:
26481
+ case 12:
26274
26482
  case 'end':
26275
- return _context3.stop();
26483
+ return _context4.stop();
26276
26484
  }
26277
26485
  }
26278
- }, _marked2, this);
26486
+ }, _marked3, this);
26487
+ }
26488
+
26489
+ function autoplayPage(_ref2) {
26490
+ var canAutoplay = _ref2.canAutoplay,
26491
+ _autoplayWhenBackgroundMediaMuted = _ref2.autoplayWhenBackgroundMediaMuted;
26492
+ var shouldAutoplay;
26493
+ return regeneratorRuntime.wrap(function autoplayPage$(_context5) {
26494
+ while (1) {
26495
+ switch (_context5.prev = _context5.next) {
26496
+ case 0:
26497
+ _context5.next = 2;
26498
+ return (0, _effects.select)((0, _selectors.pageShouldAutoplay)({
26499
+ autoplayWhenBackgroundMediaMuted: function autoplayWhenBackgroundMediaMuted() {
26500
+ return _autoplayWhenBackgroundMediaMuted;
26501
+ }
26502
+ }));
26503
+
26504
+ case 2:
26505
+ shouldAutoplay = _context5.sent;
26506
+ return _context5.abrupt('return', shouldAutoplay && canAutoplay);
26507
+
26508
+ case 4:
26509
+ case 'end':
26510
+ return _context5.stop();
26511
+ }
26512
+ }
26513
+ }, _marked4, this);
26279
26514
  }
26280
26515
 
26281
26516
  /***/ }),
26282
- /* 526 */
26517
+ /* 528 */
26518
+ /***/ (function(module, exports) {
26519
+
26520
+ 'use strict';
26521
+
26522
+ Object.defineProperty(exports, "__esModule", {
26523
+ value: true
26524
+ });
26525
+ exports.mute = mute;
26526
+ exports.unmute = unmute;
26527
+ var MUTE = exports.MUTE = 'BACKGROUND_MEDIA_MUTE';
26528
+
26529
+ var UNMUTE = exports.UNMUTE = 'BACKGROUND_MEDIA_UNMUTE';
26530
+
26531
+ function mute() {
26532
+ return {
26533
+ type: MUTE
26534
+ };
26535
+ }
26536
+
26537
+ function unmute() {
26538
+ return {
26539
+ type: UNMUTE
26540
+ };
26541
+ }
26542
+
26543
+ /***/ }),
26544
+ /* 529 */
26283
26545
  /***/ (function(module, exports, __webpack_require__) {
26284
26546
 
26285
26547
  'use strict';
@@ -26374,7 +26636,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26374
26636
  }
26375
26637
 
26376
26638
  /***/ }),
26377
- /* 527 */
26639
+ /* 530 */
26378
26640
  /***/ (function(module, exports, __webpack_require__) {
26379
26641
 
26380
26642
  'use strict';
@@ -26447,7 +26709,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26447
26709
  }
26448
26710
 
26449
26711
  /***/ }),
26450
- /* 528 */
26712
+ /* 531 */
26451
26713
  /***/ (function(module, exports, __webpack_require__) {
26452
26714
 
26453
26715
  'use strict';
@@ -26463,7 +26725,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26463
26725
 
26464
26726
  var _actions = __webpack_require__(499);
26465
26727
 
26466
- var _actions2 = __webpack_require__(522);
26728
+ var _actions2 = __webpack_require__(523);
26467
26729
 
26468
26730
  var _marked = /*#__PURE__*/regeneratorRuntime.mark(_callee),
26469
26731
  _marked2 = /*#__PURE__*/regeneratorRuntime.mark(putAfterDelay);
@@ -26508,7 +26770,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26508
26770
  }
26509
26771
 
26510
26772
  /***/ }),
26511
- /* 529 */
26773
+ /* 532 */
26512
26774
  /***/ (function(module, exports, __webpack_require__) {
26513
26775
 
26514
26776
  'use strict';
@@ -26565,7 +26827,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26565
26827
  }
26566
26828
 
26567
26829
  /***/ }),
26568
- /* 530 */
26830
+ /* 533 */
26569
26831
  /***/ (function(module, exports, __webpack_require__) {
26570
26832
 
26571
26833
  'use strict';
@@ -26637,7 +26899,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26637
26899
  }
26638
26900
 
26639
26901
  /***/ }),
26640
- /* 531 */
26902
+ /* 534 */
26641
26903
  /***/ (function(module, exports, __webpack_require__) {
26642
26904
 
26643
26905
  'use strict';
@@ -26719,7 +26981,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26719
26981
  }
26720
26982
 
26721
26983
  /***/ }),
26722
- /* 532 */
26984
+ /* 535 */
26723
26985
  /***/ (function(module, exports, __webpack_require__) {
26724
26986
 
26725
26987
  'use strict';
@@ -26729,11 +26991,11 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26729
26991
  });
26730
26992
  exports.Page = exports.reduxModule = undefined;
26731
26993
 
26732
- var _Page = __webpack_require__(533);
26994
+ var _Page = __webpack_require__(536);
26733
26995
 
26734
26996
  var _Page2 = _interopRequireDefault(_Page);
26735
26997
 
26736
- var _reenableScrollIndicator = __webpack_require__(535);
26998
+ var _reenableScrollIndicator = __webpack_require__(538);
26737
26999
 
26738
27000
  var _reenableScrollIndicator2 = _interopRequireDefault(_reenableScrollIndicator);
26739
27001
 
@@ -26748,7 +27010,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26748
27010
  exports.Page = _Page2.default;
26749
27011
 
26750
27012
  /***/ }),
26751
- /* 533 */
27013
+ /* 536 */
26752
27014
  /***/ (function(module, exports, __webpack_require__) {
26753
27015
 
26754
27016
  'use strict';
@@ -26769,7 +27031,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26769
27031
 
26770
27032
  var _components = __webpack_require__(331);
26771
27033
 
26772
- var _selectors = __webpack_require__(534);
27034
+ var _selectors = __webpack_require__(537);
26773
27035
 
26774
27036
  var _pages = __webpack_require__(348);
26775
27037
 
@@ -26888,7 +27150,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26888
27150
  }))(PageWithInteractiveBackground);
26889
27151
 
26890
27152
  /***/ }),
26891
- /* 534 */
27153
+ /* 537 */
26892
27154
  /***/ (function(module, exports) {
26893
27155
 
26894
27156
  "use strict";
@@ -26907,7 +27169,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26907
27169
  }
26908
27170
 
26909
27171
  /***/ }),
26910
- /* 535 */
27172
+ /* 538 */
26911
27173
  /***/ (function(module, exports, __webpack_require__) {
26912
27174
 
26913
27175
  'use strict';
@@ -26921,7 +27183,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26921
27183
 
26922
27184
  var _effects = __webpack_require__(383);
26923
27185
 
26924
- var _actions = __webpack_require__(536);
27186
+ var _actions = __webpack_require__(539);
26925
27187
 
26926
27188
  var _selectors = __webpack_require__(375);
26927
27189
 
@@ -26971,7 +27233,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26971
27233
  }
26972
27234
 
26973
27235
  /***/ }),
26974
- /* 536 */
27236
+ /* 539 */
26975
27237
  /***/ (function(module, exports) {
26976
27238
 
26977
27239
  'use strict';
@@ -26997,7 +27259,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
26997
27259
  }
26998
27260
 
26999
27261
  /***/ }),
27000
- /* 537 */
27262
+ /* 540 */
27001
27263
  /***/ (function(module, exports, __webpack_require__) {
27002
27264
 
27003
27265
  'use strict';
@@ -27007,7 +27269,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27007
27269
  });
27008
27270
  exports.registry = undefined;
27009
27271
 
27010
- var _PageTypeRegistry = __webpack_require__(538);
27272
+ var _PageTypeRegistry = __webpack_require__(541);
27011
27273
 
27012
27274
  var _PageTypeRegistry2 = _interopRequireDefault(_PageTypeRegistry);
27013
27275
 
@@ -27018,7 +27280,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27018
27280
  exports.default = registry.register;
27019
27281
 
27020
27282
  /***/ }),
27021
- /* 538 */
27283
+ /* 541 */
27022
27284
  /***/ (function(module, exports, __webpack_require__) {
27023
27285
 
27024
27286
  'use strict';
@@ -27120,7 +27382,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27120
27382
  }
27121
27383
 
27122
27384
  /***/ }),
27123
- /* 539 */
27385
+ /* 542 */
27124
27386
  /***/ (function(module, exports, __webpack_require__) {
27125
27387
 
27126
27388
  'use strict';
@@ -27148,7 +27410,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27148
27410
  });
27149
27411
  };
27150
27412
 
27151
- var _registerPageType = __webpack_require__(537);
27413
+ var _registerPageType = __webpack_require__(540);
27152
27414
 
27153
27415
  var _registerPageType2 = _interopRequireDefault(_registerPageType);
27154
27416
 
@@ -27157,7 +27419,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27157
27419
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27158
27420
 
27159
27421
  /***/ }),
27160
- /* 540 */
27422
+ /* 543 */
27161
27423
  /***/ (function(module, exports) {
27162
27424
 
27163
27425
  "use strict";
@@ -27178,7 +27440,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27178
27440
  var registry = exports.registry = [];
27179
27441
 
27180
27442
  /***/ }),
27181
- /* 541 */
27443
+ /* 544 */
27182
27444
  /***/ (function(module, exports, __webpack_require__) {
27183
27445
 
27184
27446
  'use strict';
@@ -27191,9 +27453,9 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27191
27453
 
27192
27454
  var _collections = __webpack_require__(376);
27193
27455
 
27194
- var _registerPageType = __webpack_require__(537);
27456
+ var _registerPageType = __webpack_require__(540);
27195
27457
 
27196
- var _boot = __webpack_require__(542);
27458
+ var _boot = __webpack_require__(545);
27197
27459
 
27198
27460
  var _boot2 = _interopRequireDefault(_boot);
27199
27461
 
@@ -27251,7 +27513,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27251
27513
  exports.default = _class;
27252
27514
 
27253
27515
  /***/ }),
27254
- /* 542 */
27516
+ /* 545 */
27255
27517
  /***/ (function(module, exports, __webpack_require__) {
27256
27518
 
27257
27519
  'use strict';
@@ -27297,7 +27559,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27297
27559
  window: isServerSide ? null : window
27298
27560
  };
27299
27561
 
27300
- var store = (0, _createStore2.default)([_cookieNotice2.default, _i18n2.default, _theming2.default, _entry2.default, _current2.default, _storylines2.default, _chapters2.default, _pages2.default, _files2.default, _settings2.default, _hideText2.default, _widgets2.default, _widgetPresence2.default, _pageTypes2.default, _hotkeys2.default], options);
27562
+ var store = (0, _createStore2.default)([_backgroundMedia2.default, _cookieNotice2.default, _i18n2.default, _theming2.default, _entry2.default, _current2.default, _storylines2.default, _chapters2.default, _pages2.default, _files2.default, _settings2.default, _hideText2.default, _widgets2.default, _widgetPresence2.default, _pageTypes2.default, _hotkeys2.default], options);
27301
27563
 
27302
27564
  if (!isServerSide) {
27303
27565
  _registerPageType.registry.forEach(function (options) {
@@ -27317,27 +27579,31 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27317
27579
  return store;
27318
27580
  };
27319
27581
 
27320
- var _registerPageType = __webpack_require__(537);
27582
+ var _registerPageType = __webpack_require__(540);
27321
27583
 
27322
- var _registerWidgetType = __webpack_require__(540);
27584
+ var _registerWidgetType = __webpack_require__(543);
27323
27585
 
27324
- var _createStore = __webpack_require__(543);
27586
+ var _createStore = __webpack_require__(546);
27325
27587
 
27326
27588
  var _createStore2 = _interopRequireDefault(_createStore);
27327
27589
 
27328
- var _cookieNotice = __webpack_require__(545);
27590
+ var _backgroundMedia = __webpack_require__(548);
27591
+
27592
+ var _backgroundMedia2 = _interopRequireDefault(_backgroundMedia);
27593
+
27594
+ var _cookieNotice = __webpack_require__(551);
27329
27595
 
27330
27596
  var _cookieNotice2 = _interopRequireDefault(_cookieNotice);
27331
27597
 
27332
- var _theming = __webpack_require__(551);
27598
+ var _theming = __webpack_require__(557);
27333
27599
 
27334
27600
  var _theming2 = _interopRequireDefault(_theming);
27335
27601
 
27336
- var _storylines = __webpack_require__(554);
27602
+ var _storylines = __webpack_require__(560);
27337
27603
 
27338
27604
  var _storylines2 = _interopRequireDefault(_storylines);
27339
27605
 
27340
- var _chapters = __webpack_require__(555);
27606
+ var _chapters = __webpack_require__(561);
27341
27607
 
27342
27608
  var _chapters2 = _interopRequireDefault(_chapters);
27343
27609
 
@@ -27345,50 +27611,50 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27345
27611
 
27346
27612
  var _pages2 = _interopRequireDefault(_pages);
27347
27613
 
27348
- var _pageTypes = __webpack_require__(556);
27614
+ var _pageTypes = __webpack_require__(562);
27349
27615
 
27350
27616
  var _pageTypes2 = _interopRequireDefault(_pageTypes);
27351
27617
 
27352
- var _current = __webpack_require__(559);
27618
+ var _current = __webpack_require__(565);
27353
27619
 
27354
27620
  var _current2 = _interopRequireDefault(_current);
27355
27621
 
27356
- var _files = __webpack_require__(563);
27622
+ var _files = __webpack_require__(569);
27357
27623
 
27358
27624
  var _files2 = _interopRequireDefault(_files);
27359
27625
 
27360
- var _settings = __webpack_require__(564);
27626
+ var _settings = __webpack_require__(570);
27361
27627
 
27362
27628
  var _settings2 = _interopRequireDefault(_settings);
27363
27629
 
27364
- var _i18n = __webpack_require__(566);
27630
+ var _i18n = __webpack_require__(572);
27365
27631
 
27366
27632
  var _i18n2 = _interopRequireDefault(_i18n);
27367
27633
 
27368
- var _entry = __webpack_require__(569);
27634
+ var _entry = __webpack_require__(575);
27369
27635
 
27370
27636
  var _entry2 = _interopRequireDefault(_entry);
27371
27637
 
27372
- var _hotkeys = __webpack_require__(572);
27638
+ var _hotkeys = __webpack_require__(578);
27373
27639
 
27374
27640
  var _hotkeys2 = _interopRequireDefault(_hotkeys);
27375
27641
 
27376
- var _hideText = __webpack_require__(573);
27642
+ var _hideText = __webpack_require__(579);
27377
27643
 
27378
27644
  var _hideText2 = _interopRequireDefault(_hideText);
27379
27645
 
27380
- var _widgets = __webpack_require__(576);
27646
+ var _widgets = __webpack_require__(582);
27381
27647
 
27382
27648
  var _widgets2 = _interopRequireDefault(_widgets);
27383
27649
 
27384
- var _widgetPresence = __webpack_require__(577);
27650
+ var _widgetPresence = __webpack_require__(583);
27385
27651
 
27386
27652
  var _widgetPresence2 = _interopRequireDefault(_widgetPresence);
27387
27653
 
27388
27654
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27389
27655
 
27390
27656
  /***/ }),
27391
- /* 543 */
27657
+ /* 546 */
27392
27658
  /***/ (function(module, exports, __webpack_require__) {
27393
27659
 
27394
27660
  /* WEBPACK VAR INJECTION */(function(process) {'use strict';
@@ -27434,6 +27700,8 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27434
27700
  return store;
27435
27701
  };
27436
27702
 
27703
+ exports.createReducer = createReducer;
27704
+
27437
27705
  var _redux = __webpack_require__(351);
27438
27706
 
27439
27707
  var _reduxSaga = __webpack_require__(387);
@@ -27495,10 +27763,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27495
27763
  return enhancer;
27496
27764
  }
27497
27765
  }
27498
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(544)))
27766
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(547)))
27499
27767
 
27500
27768
  /***/ }),
27501
- /* 544 */
27769
+ /* 547 */
27502
27770
  /***/ (function(module, exports) {
27503
27771
 
27504
27772
  // shim for using process in browser
@@ -27688,7 +27956,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27688
27956
 
27689
27957
 
27690
27958
  /***/ }),
27691
- /* 545 */
27959
+ /* 548 */
27692
27960
  /***/ (function(module, exports, __webpack_require__) {
27693
27961
 
27694
27962
  'use strict';
@@ -27698,13 +27966,199 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27698
27966
  });
27699
27967
  exports.registerWidgetTypes = registerWidgetTypes;
27700
27968
 
27701
- var _CookieNoticeBar = __webpack_require__(546);
27969
+ var _reducer = __webpack_require__(549);
27970
+
27971
+ var _reducer2 = _interopRequireDefault(_reducer);
27972
+
27973
+ var _actions = __webpack_require__(528);
27974
+
27975
+ var _UnmuteButton = __webpack_require__(550);
27976
+
27977
+ var _reduxSaga = __webpack_require__(387);
27978
+
27979
+ var _effects = __webpack_require__(383);
27980
+
27981
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27982
+
27983
+ exports.default = {
27984
+ init: function init(_ref) {
27985
+ var isServerSide = _ref.isServerSide,
27986
+ events = _ref.events,
27987
+ dispatch = _ref.dispatch;
27988
+
27989
+ if (!isServerSide) {
27990
+ events.on('background_media:mute', function (page) {
27991
+ return dispatch((0, _actions.mute)());
27992
+ });
27993
+
27994
+ events.on('background_media:unmute', function (page) {
27995
+ return dispatch((0, _actions.unmute)());
27996
+ });
27997
+ }
27998
+ },
27999
+ createReducers: function createReducers() {
28000
+ return { backgroundMedia: _reducer2.default };
28001
+ },
28002
+
28003
+
28004
+ createSaga: function createSaga() {
28005
+ return (/*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
28006
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
28007
+ while (1) {
28008
+ switch (_context2.prev = _context2.next) {
28009
+ case 0:
28010
+ _context2.next = 2;
28011
+ return (0, _reduxSaga.takeEvery)(_actions.UNMUTE, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
28012
+ return regeneratorRuntime.wrap(function _callee$(_context) {
28013
+ while (1) {
28014
+ switch (_context.prev = _context.next) {
28015
+ case 0:
28016
+ _context.next = 2;
28017
+ return (0, _effects.call)(function () {
28018
+ return pageflow.backgroundMedia.unmute();
28019
+ });
28020
+
28021
+ case 2:
28022
+ case 'end':
28023
+ return _context.stop();
28024
+ }
28025
+ }
28026
+ }, _callee, this);
28027
+ }));
28028
+
28029
+ case 2:
28030
+ case 'end':
28031
+ return _context2.stop();
28032
+ }
28033
+ }
28034
+ }, _callee2, this);
28035
+ })
28036
+ );
28037
+ }
28038
+ };
28039
+ function registerWidgetTypes() {
28040
+ (0, _UnmuteButton.register)();
28041
+ }
28042
+
28043
+ /***/ }),
28044
+ /* 549 */
28045
+ /***/ (function(module, exports, __webpack_require__) {
28046
+
28047
+ 'use strict';
28048
+
28049
+ Object.defineProperty(exports, "__esModule", {
28050
+ value: true
28051
+ });
28052
+
28053
+ exports.default = function () {
28054
+ var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
28055
+ var action = arguments[1];
28056
+
28057
+ switch (action.type) {
28058
+ case _actions.MUTE:
28059
+ return {
28060
+ muted: true
28061
+ };
28062
+ case _actions.UNMUTE:
28063
+ return {
28064
+ muted: false
28065
+ };
28066
+ default:
28067
+ return state;
28068
+ }
28069
+ };
28070
+
28071
+ var _actions = __webpack_require__(528);
28072
+
28073
+ var initialState = {
28074
+ muted: false
28075
+ };
28076
+
28077
+ /***/ }),
28078
+ /* 550 */
28079
+ /***/ (function(module, exports, __webpack_require__) {
28080
+
28081
+ 'use strict';
28082
+
28083
+ Object.defineProperty(exports, "__esModule", {
28084
+ value: true
28085
+ });
28086
+ exports.register = register;
27702
28087
 
27703
- var _actions = __webpack_require__(549);
28088
+ var _registerWidgetType = __webpack_require__(543);
27704
28089
 
27705
- var _selectors = __webpack_require__(547);
28090
+ var _registerWidgetType2 = _interopRequireDefault(_registerWidgetType);
28091
+
28092
+ var _selectors = __webpack_require__(500);
28093
+
28094
+ var _selectors2 = __webpack_require__(486);
27706
28095
 
27707
- var _createReducer = __webpack_require__(550);
28096
+ var _actions = __webpack_require__(528);
28097
+
28098
+ var _utils = __webpack_require__(339);
28099
+
28100
+ var _react = __webpack_require__(333);
28101
+
28102
+ var _react2 = _interopRequireDefault(_react);
28103
+
28104
+ var _reactRedux = __webpack_require__(397);
28105
+
28106
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28107
+
28108
+ function UnmuteButton(props) {
28109
+ var t = props.t,
28110
+ muted = props.muted,
28111
+ unmute = props.unmute;
28112
+
28113
+
28114
+ if (muted) {
28115
+ return _react2.default.createElement(
28116
+ 'div',
28117
+ { className: 'background_media_unmute_button' },
28118
+ _react2.default.createElement('a', { title: t('pageflow.public.mute_off'),
28119
+ onClick: function onClick() {
28120
+ playUnmuteSound();unmute();
28121
+ },
28122
+ href: '#' })
28123
+ );
28124
+ } else {
28125
+ return null;
28126
+ }
28127
+ }
28128
+
28129
+ function playUnmuteSound() {
28130
+ new pageflow.AudioPlayer([{ src: pageflow.assetUrls.unmuteSound, type: 'audio/mpeg' }], { codecs: ['mp3'] }).play();
28131
+ }
28132
+
28133
+ function register() {
28134
+ (0, _registerWidgetType2.default)('unmute_button', {
28135
+ component: (0, _reactRedux.connect)((0, _utils.combineSelectors)({
28136
+ t: _selectors2.t,
28137
+ muted: _selectors.muted
28138
+ }), {
28139
+ unmute: _actions.unmute
28140
+ })(UnmuteButton)
28141
+ });
28142
+ }
28143
+
28144
+ /***/ }),
28145
+ /* 551 */
28146
+ /***/ (function(module, exports, __webpack_require__) {
28147
+
28148
+ 'use strict';
28149
+
28150
+ Object.defineProperty(exports, "__esModule", {
28151
+ value: true
28152
+ });
28153
+ exports.registerWidgetTypes = registerWidgetTypes;
28154
+
28155
+ var _CookieNoticeBar = __webpack_require__(552);
28156
+
28157
+ var _actions = __webpack_require__(555);
28158
+
28159
+ var _selectors = __webpack_require__(553);
28160
+
28161
+ var _createReducer = __webpack_require__(556);
27708
28162
 
27709
28163
  var _createReducer2 = _interopRequireDefault(_createReducer);
27710
28164
 
@@ -27830,7 +28284,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27830
28284
  }
27831
28285
 
27832
28286
  /***/ }),
27833
- /* 546 */
28287
+ /* 552 */
27834
28288
  /***/ (function(module, exports, __webpack_require__) {
27835
28289
 
27836
28290
  'use strict';
@@ -27840,19 +28294,19 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27840
28294
  });
27841
28295
  exports.register = register;
27842
28296
 
27843
- var _registerWidgetType = __webpack_require__(540);
28297
+ var _registerWidgetType = __webpack_require__(543);
27844
28298
 
27845
28299
  var _registerWidgetType2 = _interopRequireDefault(_registerWidgetType);
27846
28300
 
27847
- var _selectors = __webpack_require__(547);
28301
+ var _selectors = __webpack_require__(553);
27848
28302
 
27849
- var _selectors2 = __webpack_require__(548);
28303
+ var _selectors2 = __webpack_require__(554);
27850
28304
 
27851
28305
  var _selectors3 = __webpack_require__(493);
27852
28306
 
27853
28307
  var _selectors4 = __webpack_require__(486);
27854
28308
 
27855
- var _actions = __webpack_require__(549);
28309
+ var _actions = __webpack_require__(555);
27856
28310
 
27857
28311
  var _utils = __webpack_require__(339);
27858
28312
 
@@ -27920,7 +28374,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27920
28374
  }
27921
28375
 
27922
28376
  /***/ }),
27923
- /* 547 */
28377
+ /* 553 */
27924
28378
  /***/ (function(module, exports) {
27925
28379
 
27926
28380
  "use strict";
@@ -27934,7 +28388,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27934
28388
  }
27935
28389
 
27936
28390
  /***/ }),
27937
- /* 548 */
28391
+ /* 554 */
27938
28392
  /***/ (function(module, exports) {
27939
28393
 
27940
28394
  "use strict";
@@ -27948,7 +28402,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27948
28402
  }
27949
28403
 
27950
28404
  /***/ }),
27951
- /* 549 */
28405
+ /* 555 */
27952
28406
  /***/ (function(module, exports) {
27953
28407
 
27954
28408
  'use strict';
@@ -27974,7 +28428,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
27974
28428
  }
27975
28429
 
27976
28430
  /***/ }),
27977
- /* 550 */
28431
+ /* 556 */
27978
28432
  /***/ (function(module, exports, __webpack_require__) {
27979
28433
 
27980
28434
  'use strict';
@@ -28017,10 +28471,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28017
28471
  };
28018
28472
  };
28019
28473
 
28020
- var _actions = __webpack_require__(549);
28474
+ var _actions = __webpack_require__(555);
28021
28475
 
28022
28476
  /***/ }),
28023
- /* 551 */
28477
+ /* 557 */
28024
28478
  /***/ (function(module, exports, __webpack_require__) {
28025
28479
 
28026
28480
  'use strict';
@@ -28029,9 +28483,9 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28029
28483
  value: true
28030
28484
  });
28031
28485
 
28032
- var _actions = __webpack_require__(552);
28486
+ var _actions = __webpack_require__(558);
28033
28487
 
28034
- var _reducer = __webpack_require__(553);
28488
+ var _reducer = __webpack_require__(559);
28035
28489
 
28036
28490
  var _reducer2 = _interopRequireDefault(_reducer);
28037
28491
 
@@ -28050,7 +28504,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28050
28504
  };
28051
28505
 
28052
28506
  /***/ }),
28053
- /* 552 */
28507
+ /* 558 */
28054
28508
  /***/ (function(module, exports) {
28055
28509
 
28056
28510
  'use strict';
@@ -28071,7 +28525,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28071
28525
  }
28072
28526
 
28073
28527
  /***/ }),
28074
- /* 553 */
28528
+ /* 559 */
28075
28529
  /***/ (function(module, exports, __webpack_require__) {
28076
28530
 
28077
28531
  'use strict';
@@ -28092,10 +28546,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28092
28546
  }
28093
28547
  };
28094
28548
 
28095
- var _actions = __webpack_require__(552);
28549
+ var _actions = __webpack_require__(558);
28096
28550
 
28097
28551
  /***/ }),
28098
- /* 554 */
28552
+ /* 560 */
28099
28553
  /***/ (function(module, exports, __webpack_require__) {
28100
28554
 
28101
28555
  'use strict';
@@ -28128,7 +28582,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28128
28582
  };
28129
28583
 
28130
28584
  /***/ }),
28131
- /* 555 */
28585
+ /* 561 */
28132
28586
  /***/ (function(module, exports, __webpack_require__) {
28133
28587
 
28134
28588
  'use strict';
@@ -28160,7 +28614,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28160
28614
  };
28161
28615
 
28162
28616
  /***/ }),
28163
- /* 556 */
28617
+ /* 562 */
28164
28618
  /***/ (function(module, exports, __webpack_require__) {
28165
28619
 
28166
28620
  'use strict';
@@ -28169,9 +28623,9 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28169
28623
  value: true
28170
28624
  });
28171
28625
 
28172
- var _actions = __webpack_require__(557);
28626
+ var _actions = __webpack_require__(563);
28173
28627
 
28174
- var _reducer = __webpack_require__(558);
28628
+ var _reducer = __webpack_require__(564);
28175
28629
 
28176
28630
  var _reducer2 = _interopRequireDefault(_reducer);
28177
28631
 
@@ -28192,7 +28646,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28192
28646
  };
28193
28647
 
28194
28648
  /***/ }),
28195
- /* 557 */
28649
+ /* 563 */
28196
28650
  /***/ (function(module, exports) {
28197
28651
 
28198
28652
  'use strict';
@@ -28215,7 +28669,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28215
28669
  }
28216
28670
 
28217
28671
  /***/ }),
28218
- /* 558 */
28672
+ /* 564 */
28219
28673
  /***/ (function(module, exports, __webpack_require__) {
28220
28674
 
28221
28675
  'use strict';
@@ -28236,10 +28690,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28236
28690
  }
28237
28691
  };
28238
28692
 
28239
- var _actions = __webpack_require__(557);
28693
+ var _actions = __webpack_require__(563);
28240
28694
 
28241
28695
  /***/ }),
28242
- /* 559 */
28696
+ /* 565 */
28243
28697
  /***/ (function(module, exports, __webpack_require__) {
28244
28698
 
28245
28699
  'use strict';
@@ -28249,11 +28703,11 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28249
28703
  });
28250
28704
  exports.watch = exports.reducers = undefined;
28251
28705
 
28252
- var _reducer = __webpack_require__(560);
28706
+ var _reducer = __webpack_require__(566);
28253
28707
 
28254
28708
  var _reducer2 = _interopRequireDefault(_reducer);
28255
28709
 
28256
- var _watch = __webpack_require__(562);
28710
+ var _watch = __webpack_require__(568);
28257
28711
 
28258
28712
  var _watch2 = _interopRequireDefault(_watch);
28259
28713
 
@@ -28278,7 +28732,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28278
28732
  exports.watch = _watch2.default;
28279
28733
 
28280
28734
  /***/ }),
28281
- /* 560 */
28735
+ /* 566 */
28282
28736
  /***/ (function(module, exports, __webpack_require__) {
28283
28737
 
28284
28738
  'use strict';
@@ -28299,10 +28753,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28299
28753
  }
28300
28754
  };
28301
28755
 
28302
- var _actions = __webpack_require__(561);
28756
+ var _actions = __webpack_require__(567);
28303
28757
 
28304
28758
  /***/ }),
28305
- /* 561 */
28759
+ /* 567 */
28306
28760
  /***/ (function(module, exports) {
28307
28761
 
28308
28762
  'use strict';
@@ -28325,7 +28779,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28325
28779
  }
28326
28780
 
28327
28781
  /***/ }),
28328
- /* 562 */
28782
+ /* 568 */
28329
28783
  /***/ (function(module, exports, __webpack_require__) {
28330
28784
 
28331
28785
  'use strict';
@@ -28340,10 +28794,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28340
28794
  });
28341
28795
  };
28342
28796
 
28343
- var _actions = __webpack_require__(561);
28797
+ var _actions = __webpack_require__(567);
28344
28798
 
28345
28799
  /***/ }),
28346
- /* 563 */
28800
+ /* 569 */
28347
28801
  /***/ (function(module, exports, __webpack_require__) {
28348
28802
 
28349
28803
  'use strict';
@@ -28402,7 +28856,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28402
28856
  };
28403
28857
 
28404
28858
  /***/ }),
28405
- /* 564 */
28859
+ /* 570 */
28406
28860
  /***/ (function(module, exports, __webpack_require__) {
28407
28861
 
28408
28862
  'use strict';
@@ -28414,7 +28868,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28414
28868
  exports.createSaga = createSaga;
28415
28869
  exports.watch = watch;
28416
28870
 
28417
- var _reducer = __webpack_require__(565);
28871
+ var _reducer = __webpack_require__(571);
28418
28872
 
28419
28873
  var _reducer2 = _interopRequireDefault(_reducer);
28420
28874
 
@@ -28520,7 +28974,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28520
28974
  }
28521
28975
 
28522
28976
  /***/ }),
28523
- /* 565 */
28977
+ /* 571 */
28524
28978
  /***/ (function(module, exports, __webpack_require__) {
28525
28979
 
28526
28980
  'use strict';
@@ -28545,7 +28999,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28545
28999
  var _actions = __webpack_require__(330);
28546
29000
 
28547
29001
  /***/ }),
28548
- /* 566 */
29002
+ /* 572 */
28549
29003
  /***/ (function(module, exports, __webpack_require__) {
28550
29004
 
28551
29005
  'use strict';
@@ -28554,9 +29008,9 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28554
29008
  value: true
28555
29009
  });
28556
29010
 
28557
- var _actions = __webpack_require__(567);
29011
+ var _actions = __webpack_require__(573);
28558
29012
 
28559
- var _reducer = __webpack_require__(568);
29013
+ var _reducer = __webpack_require__(574);
28560
29014
 
28561
29015
  var _reducer2 = _interopRequireDefault(_reducer);
28562
29016
 
@@ -28575,7 +29029,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28575
29029
  };
28576
29030
 
28577
29031
  /***/ }),
28578
- /* 567 */
29032
+ /* 573 */
28579
29033
  /***/ (function(module, exports) {
28580
29034
 
28581
29035
  'use strict';
@@ -28598,7 +29052,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28598
29052
  }
28599
29053
 
28600
29054
  /***/ }),
28601
- /* 568 */
29055
+ /* 574 */
28602
29056
  /***/ (function(module, exports, __webpack_require__) {
28603
29057
 
28604
29058
  'use strict';
@@ -28619,10 +29073,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28619
29073
  }
28620
29074
  };
28621
29075
 
28622
- var _actions = __webpack_require__(567);
29076
+ var _actions = __webpack_require__(573);
28623
29077
 
28624
29078
  /***/ }),
28625
- /* 569 */
29079
+ /* 575 */
28626
29080
  /***/ (function(module, exports, __webpack_require__) {
28627
29081
 
28628
29082
  'use strict';
@@ -28631,9 +29085,9 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28631
29085
  value: true
28632
29086
  });
28633
29087
 
28634
- var _actions = __webpack_require__(570);
29088
+ var _actions = __webpack_require__(576);
28635
29089
 
28636
- var _reducer = __webpack_require__(571);
29090
+ var _reducer = __webpack_require__(577);
28637
29091
 
28638
29092
  var _reducer2 = _interopRequireDefault(_reducer);
28639
29093
 
@@ -28652,7 +29106,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28652
29106
  };
28653
29107
 
28654
29108
  /***/ }),
28655
- /* 570 */
29109
+ /* 576 */
28656
29110
  /***/ (function(module, exports) {
28657
29111
 
28658
29112
  'use strict';
@@ -28675,7 +29129,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28675
29129
  }
28676
29130
 
28677
29131
  /***/ }),
28678
- /* 571 */
29132
+ /* 577 */
28679
29133
  /***/ (function(module, exports, __webpack_require__) {
28680
29134
 
28681
29135
  'use strict';
@@ -28696,10 +29150,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28696
29150
  }
28697
29151
  };
28698
29152
 
28699
- var _actions = __webpack_require__(570);
29153
+ var _actions = __webpack_require__(576);
28700
29154
 
28701
29155
  /***/ }),
28702
- /* 572 */
29156
+ /* 578 */
28703
29157
  /***/ (function(module, exports, __webpack_require__) {
28704
29158
 
28705
29159
  'use strict';
@@ -28710,7 +29164,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28710
29164
 
28711
29165
  var _keyCodes = __webpack_require__(479);
28712
29166
 
28713
- var _actions = __webpack_require__(522);
29167
+ var _actions = __webpack_require__(523);
28714
29168
 
28715
29169
  exports.default = {
28716
29170
  init: function init(_ref) {
@@ -28736,7 +29190,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28736
29190
  };
28737
29191
 
28738
29192
  /***/ }),
28739
- /* 573 */
29193
+ /* 579 */
28740
29194
  /***/ (function(module, exports, __webpack_require__) {
28741
29195
 
28742
29196
  'use strict';
@@ -28746,11 +29200,11 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28746
29200
  });
28747
29201
  exports.watch = exports.reducers = undefined;
28748
29202
 
28749
- var _watch = __webpack_require__(574);
29203
+ var _watch = __webpack_require__(580);
28750
29204
 
28751
29205
  var _watch2 = _interopRequireDefault(_watch);
28752
29206
 
28753
- var _reducer = __webpack_require__(575);
29207
+ var _reducer = __webpack_require__(581);
28754
29208
 
28755
29209
  var _reducer2 = _interopRequireDefault(_reducer);
28756
29210
 
@@ -28777,7 +29231,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28777
29231
  exports.watch = _watch2.default;
28778
29232
 
28779
29233
  /***/ }),
28780
- /* 574 */
29234
+ /* 580 */
28781
29235
  /***/ (function(module, exports, __webpack_require__) {
28782
29236
 
28783
29237
  'use strict';
@@ -28796,10 +29250,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28796
29250
  });
28797
29251
  };
28798
29252
 
28799
- var _actions = __webpack_require__(536);
29253
+ var _actions = __webpack_require__(539);
28800
29254
 
28801
29255
  /***/ }),
28802
- /* 575 */
29256
+ /* 581 */
28803
29257
  /***/ (function(module, exports, __webpack_require__) {
28804
29258
 
28805
29259
  'use strict';
@@ -28833,9 +29287,9 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28833
29287
  }
28834
29288
  };
28835
29289
 
28836
- var _actions = __webpack_require__(536);
29290
+ var _actions = __webpack_require__(539);
28837
29291
 
28838
- var _actions2 = __webpack_require__(561);
29292
+ var _actions2 = __webpack_require__(567);
28839
29293
 
28840
29294
  var initialState = {
28841
29295
  isActive: false,
@@ -28843,7 +29297,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28843
29297
  };
28844
29298
 
28845
29299
  /***/ }),
28846
- /* 576 */
29300
+ /* 582 */
28847
29301
  /***/ (function(module, exports, __webpack_require__) {
28848
29302
 
28849
29303
  'use strict';
@@ -28898,7 +29352,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28898
29352
  }
28899
29353
 
28900
29354
  /***/ }),
28901
- /* 577 */
29355
+ /* 583 */
28902
29356
  /***/ (function(module, exports, __webpack_require__) {
28903
29357
 
28904
29358
  'use strict';
@@ -28907,11 +29361,11 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28907
29361
  value: true
28908
29362
  });
28909
29363
 
28910
- var _reducer = __webpack_require__(578);
29364
+ var _reducer = __webpack_require__(584);
28911
29365
 
28912
29366
  var _reducer2 = _interopRequireDefault(_reducer);
28913
29367
 
28914
- var _actions = __webpack_require__(579);
29368
+ var _actions = __webpack_require__(585);
28915
29369
 
28916
29370
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28917
29371
 
@@ -28942,7 +29396,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28942
29396
  };
28943
29397
 
28944
29398
  /***/ }),
28945
- /* 578 */
29399
+ /* 584 */
28946
29400
  /***/ (function(module, exports, __webpack_require__) {
28947
29401
 
28948
29402
  'use strict';
@@ -28964,10 +29418,10 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28964
29418
  }
28965
29419
  };
28966
29420
 
28967
- var _actions = __webpack_require__(579);
29421
+ var _actions = __webpack_require__(585);
28968
29422
 
28969
29423
  /***/ }),
28970
- /* 579 */
29424
+ /* 585 */
28971
29425
  /***/ (function(module, exports) {
28972
29426
 
28973
29427
  'use strict';
@@ -28990,7 +29444,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
28990
29444
  }
28991
29445
 
28992
29446
  /***/ }),
28993
- /* 580 */
29447
+ /* 586 */
28994
29448
  /***/ (function(module, exports, __webpack_require__) {
28995
29449
 
28996
29450
  'use strict';
@@ -29000,11 +29454,11 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29000
29454
  });
29001
29455
  exports.register = register;
29002
29456
 
29003
- var _audio = __webpack_require__(581);
29457
+ var _audio = __webpack_require__(587);
29004
29458
 
29005
- var _plain = __webpack_require__(584);
29459
+ var _plain = __webpack_require__(590);
29006
29460
 
29007
- var _video = __webpack_require__(585);
29461
+ var _video = __webpack_require__(591);
29008
29462
 
29009
29463
  function register() {
29010
29464
  (0, _plain.register)();
@@ -29013,7 +29467,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29013
29467
  }
29014
29468
 
29015
29469
  /***/ }),
29016
- /* 581 */
29470
+ /* 587 */
29017
29471
  /***/ (function(module, exports, __webpack_require__) {
29018
29472
 
29019
29473
  'use strict';
@@ -29025,11 +29479,11 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29025
29479
 
29026
29480
  var _media = __webpack_require__(494);
29027
29481
 
29028
- var _PageAudioFilePlayer = __webpack_require__(582);
29482
+ var _PageAudioFilePlayer = __webpack_require__(588);
29029
29483
 
29030
29484
  var _PageAudioFilePlayer2 = _interopRequireDefault(_PageAudioFilePlayer);
29031
29485
 
29032
- var _registerPageType = __webpack_require__(537);
29486
+ var _registerPageType = __webpack_require__(540);
29033
29487
 
29034
29488
  var _registerPageType2 = _interopRequireDefault(_registerPageType);
29035
29489
 
@@ -29055,7 +29509,8 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29055
29509
  file: props.audioFile,
29056
29510
  playerState: props.playerState,
29057
29511
  playerActions: props.playerActions,
29058
- controlBarText: props.t('pageflow.public.start_audio') },
29512
+ controlBarText: props.t('pageflow.public.start_audio'),
29513
+ autoplayWhenBackgroundMediaMuted: false },
29059
29514
  React.createElement(_media.PageBackgroundAsset, null),
29060
29515
  React.createElement(_PageAudioFilePlayer2.default, { file: props.audioFile,
29061
29516
  playerState: props.playerState,
@@ -29075,12 +29530,14 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29075
29530
  playerActions: (0, _selectors.playerActions)()
29076
29531
  }))(AudioPage),
29077
29532
 
29078
- reduxModules: [(0, _media.reduxModule)(), _media.pageBackgroundReduxModule]
29533
+ reduxModules: [(0, _media.reduxModule)({
29534
+ retryOnUnmute: true
29535
+ }), _media.pageBackgroundReduxModule]
29079
29536
  });
29080
29537
  }
29081
29538
 
29082
29539
  /***/ }),
29083
- /* 582 */
29540
+ /* 588 */
29084
29541
  /***/ (function(module, exports, __webpack_require__) {
29085
29542
 
29086
29543
  'use strict';
@@ -29089,11 +29546,11 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29089
29546
  value: true
29090
29547
  });
29091
29548
 
29092
- var _createPageFilePlayer = __webpack_require__(515);
29549
+ var _createPageFilePlayer = __webpack_require__(516);
29093
29550
 
29094
29551
  var _createPageFilePlayer2 = _interopRequireDefault(_createPageFilePlayer);
29095
29552
 
29096
- var _AudioFilePlayer = __webpack_require__(583);
29553
+ var _AudioFilePlayer = __webpack_require__(589);
29097
29554
 
29098
29555
  var _AudioFilePlayer2 = _interopRequireDefault(_AudioFilePlayer);
29099
29556
 
@@ -29102,7 +29559,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29102
29559
  exports.default = (0, _createPageFilePlayer2.default)(_AudioFilePlayer2.default);
29103
29560
 
29104
29561
  /***/ }),
29105
- /* 583 */
29562
+ /* 589 */
29106
29563
  /***/ (function(module, exports, __webpack_require__) {
29107
29564
 
29108
29565
  'use strict';
@@ -29111,7 +29568,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29111
29568
  value: true
29112
29569
  });
29113
29570
 
29114
- var _createFilePlayer = __webpack_require__(504);
29571
+ var _createFilePlayer = __webpack_require__(505);
29115
29572
 
29116
29573
  var _createFilePlayer2 = _interopRequireDefault(_createFilePlayer);
29117
29574
 
@@ -29128,7 +29585,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29128
29585
  });
29129
29586
 
29130
29587
  /***/ }),
29131
- /* 584 */
29588
+ /* 590 */
29132
29589
  /***/ (function(module, exports, __webpack_require__) {
29133
29590
 
29134
29591
  'use strict';
@@ -29142,7 +29599,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29142
29599
 
29143
29600
  var _media = __webpack_require__(494);
29144
29601
 
29145
- var _registerPageType = __webpack_require__(537);
29602
+ var _registerPageType = __webpack_require__(540);
29146
29603
 
29147
29604
  var _registerPageType2 = _interopRequireDefault(_registerPageType);
29148
29605
 
@@ -29186,7 +29643,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29186
29643
  }
29187
29644
 
29188
29645
  /***/ }),
29189
- /* 585 */
29646
+ /* 591 */
29190
29647
  /***/ (function(module, exports, __webpack_require__) {
29191
29648
 
29192
29649
  'use strict';
@@ -29198,7 +29655,7 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29198
29655
 
29199
29656
  var _media = __webpack_require__(494);
29200
29657
 
29201
- var _registerPageType = __webpack_require__(537);
29658
+ var _registerPageType = __webpack_require__(540);
29202
29659
 
29203
29660
  var _registerPageType2 = _interopRequireDefault(_registerPageType);
29204
29661
 
@@ -29229,7 +29686,8 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29229
29686
  qualities: qualities,
29230
29687
  playerState: props.playerState,
29231
29688
  playerActions: props.playerActions,
29232
- controlBarText: props.t('pageflow.public.start_video') },
29689
+ controlBarText: props.t('pageflow.public.start_video'),
29690
+ autoplayWhenBackgroundMediaMuted: true },
29233
29691
  React.createElement(_media.PageVideoPlayer, { page: props.page,
29234
29692
  playerState: props.playerState,
29235
29693
  playerActions: props.playerActions }),
@@ -29251,13 +29709,14 @@ pageflow = typeof pageflow === "object" ? pageflow : {}; pageflow["react"] =
29251
29709
 
29252
29710
  reduxModules: [(0, _media.reduxModule)({
29253
29711
  hideControls: true,
29712
+ autoplayWhenBackgroundMediaMuted: true,
29254
29713
  playsInNativePlayer: (0, _selectors5.has)('native video player')
29255
29714
  })]
29256
29715
  });
29257
29716
  }
29258
29717
 
29259
29718
  /***/ }),
29260
- /* 586 */
29719
+ /* 592 */
29261
29720
  /***/ (function(module, exports) {
29262
29721
 
29263
29722
  module.exports = pageflow;