pageflow-linkmap-page 2.6.1 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: f4c43af6b804159bf2faa198090f1e1f538d1c9f3d53c44047a9e220e072b874
4
- data.tar.gz: 3ec34a027a778e1a8dfccdd8f81d9a332e4e4eaf663eea9c6c97f8f440188fd9
2
+ SHA1:
3
+ metadata.gz: 83d3c8769a850d2e0fd78e7be7b6e0d9b6531703
4
+ data.tar.gz: 00a2904f41804a23f93159697c21ec2afeb6fee2
5
5
  SHA512:
6
- metadata.gz: b38107bbe3d0ed938eac8082aa06e800c887cb0d4ef07f6e8b495100fe167fd41dcb8e362473fb285d13bff5519d3f98aa39a881aa494a417f37104f76c9f775
7
- data.tar.gz: 4fa0f7f3985f396dea8b9d46fb197b07d0532932f695337d1dc73f1f2c7a1eaf5142132eb0227be30f1f5211b494c46ae55b3d846ef1487e8f96eace2d528cd1
6
+ metadata.gz: 711a2d93aabe16e4de29d6cb7521072d53fa3a21c2d6011865cfddfaf719db81c00096b42d101a06878725288cab25e2f9b96ca3bfcff4ae7333583889a7efe2
7
+ data.tar.gz: 98f2ca1f2d8449c4bca1490ccac8e0e6e28395a5327b667cff00a0ddc92f81ed4165e8f21b3133f33f977831edc092310bfc59b13017d7e156f86eb23a42bd1b
@@ -1,29 +1,16 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 2.6.1
3
+ ### Version 2.7.0
4
4
 
5
- 2019-11-21
5
+ 2020-04-01
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-linkmap-page/compare/v2.6.0...v2.6.1)
7
+ [Compare changes](https://github.com/codevise/pageflow-linkmap-page/compare/2-6-stable...v2.7.0)
8
8
 
9
+ - Enabled video autoplay for mobile devices.
10
+ ([#70](https://github.com/codevise/pageflow-linkmap-page/pull/70))
9
11
  - Delete cleanup migration
10
- ([#69](https://github.com/codevise/pageflow-linkmap-page/pull/69))
11
-
12
- ### Version 2.6.0
13
-
14
- 2019-11-04
15
-
16
- [Compare changes](https://github.com/codevise/pageflow-linkmap-page/compare/2-5-stable...v2.6.0)
17
-
18
- - Specify mysql service for Travis build
19
- ([#66](https://github.com/codevise/pageflow-linkmap-page/pull/66))
20
- - Use perma id for color map file and components
21
- ([#65](https://github.com/codevise/pageflow-linkmap-page/pull/65))
22
- - Wait for color map file to be persisted
23
- ([#64](https://github.com/codevise/pageflow-linkmap-page/pull/64))
24
- - Add import and export
25
- ([#63](https://github.com/codevise/pageflow-linkmap-page/pull/63))
12
+ ([#68](https://github.com/codevise/pageflow-linkmap-page/pull/68))
26
13
 
27
14
  See
28
- [2-5-stable branch](https://github.com/codevise/pageflow-linkmap-page/blob/2-5-stable/CHANGELOG.md)
15
+ [2-6-stable branch](https://github.com/codevise/pageflow-linkmap-page/blob/2-6-stable/CHANGELOG.md)
29
16
  for previous changes.
@@ -187,14 +187,20 @@ pageflow.pageType.register('linkmap_page', _.extend({
187
187
  wrapper
188
188
  .attr('data-width', template.data('videoWidth'))
189
189
  .attr('data-height', template.data('videoHeight'));
190
-
191
- var videoPlayer = this.videoPlayer = new pageflow.VideoPlayer.Lazy(template, {
190
+
191
+ var options = {
192
192
  volumeFading: true,
193
193
  fallbackToMutedAutoplay: true,
194
-
195
194
  width: '100%',
196
195
  height: '100%'
197
- });
196
+ }
197
+ if (pageflow.browser.has('mobile platform')) {
198
+ // to enable autoplay videos on mobile, 'muted' and 'playsinline' needs to be set
199
+ // video can be unmuted on user interaction
200
+ options.muted = true;
201
+ options.playsinline = true;
202
+ }
203
+ var videoPlayer = this.videoPlayer = new pageflow.VideoPlayer.Lazy(template, options);
198
204
 
199
205
  videoPlayer.ready(function() {
200
206
  videoPlayer.on('playmuted', function() {
@@ -431,18 +437,25 @@ pageflow.pageType.register('linkmap_page', _.extend({
431
437
  },
432
438
 
433
439
  isVideoEnabled: function(configuration) {
434
- return !pageflow.browser.has('mobile platform') &&
435
- (configuration.background_type === 'video' || configuration.background_type === 'hover_video');
440
+ return this.isBackgroundVideoEnabled(configuration) || this.isHoverVideoEnabled(configuration)
436
441
  },
437
442
 
438
443
  isBackgroundVideoEnabled: function(configuration) {
439
- return !pageflow.browser.has('mobile platform') &&
440
- configuration.background_type === 'video';
444
+ if (pageflow.browser.has('mobile platform')) {
445
+ return configuration.background_type === 'video' && configuration.panorama_image_id == undefined
446
+ }
447
+ else{
448
+ return configuration.background_type === 'video'
449
+ }
441
450
  },
442
451
 
443
452
  isHoverVideoEnabled: function(configuration) {
444
- return !pageflow.browser.has('mobile platform') &&
445
- configuration.background_type === 'hover_video';
453
+ if (pageflow.browser.has('mobile platform')) {
454
+ return configuration.background_type === 'hover_video' && configuration.hover_image_id == undefined
455
+ }
456
+ else{
457
+ return configuration.background_type === 'hover_video'
458
+ }
446
459
  },
447
460
 
448
461
  updateNavigationMode: function(configuration) {
@@ -75,6 +75,11 @@
75
75
  }, 300);
76
76
 
77
77
  this.element.removeClass('playing');
78
+ },
79
+
80
+ unmute: function () {
81
+ var videoPlayer = this.options.video.data('videoPlayer');
82
+ videoPlayer.muted(false);
78
83
  }
79
84
  });
80
85
  }(jQuery));
@@ -33,6 +33,10 @@
33
33
  'click': function(event) {
34
34
  var area = this.areaAt(this.positionFromEvent(event));
35
35
 
36
+ if (area.length && area.hasClass('hover_area')){
37
+ this.options.hoverVideo.unmute();
38
+ }
39
+
36
40
  if (area.length && area.hasClass('enabled')) {
37
41
  area.first().trigger($.Event('linkmapareaclick', {originalEvent: event}));
38
42
  }
@@ -101,9 +101,7 @@ de:
101
101
  so viele Hotspots angelegt werden wie gewünscht.
102
102
 
103
103
  Der Panorama Typ entscheidet darüber, ob die Seite ein
104
- Hintergrund-Bild oder Hintergrund-Video zeigt. (Beachte, dass
105
- Hintergrund-Videos auf mobilen Geräten nicht abgespielt werden,
106
- deshalb wähle ein zusätzliches Panorama-Bild für die mobile Version)
104
+ Hintergrund-Bild oder Hintergrund-Video zeigt. (Ein zusätzliches Fallback-Image für die mobile Version kann bereitgestellt werden, wenn das Video nicht passt)
107
105
 
108
106
  Die Hotspot-Seite ermöglicht auch die Nutzung von Panorama-Bildern,
109
107
  die größer sind, als der sichtbare Bildschirmbereich. So können Nutzer
@@ -98,7 +98,7 @@ en:
98
98
 
99
99
  Hotspots can play audio files, link to other pages in a Pageflow or to external websites. You can define as many hotspots as you want.
100
100
 
101
- Decide if you want to show a background image or a background video. (Keep in mind, that background videos will not be played on mobile devices, therefore use an additional fallback image for the mobile version)
101
+ Decide if you want to show a background image or a background video. (An additional fallback image for the mobile version can be provided if video does not fit)
102
102
 
103
103
  The hotspot page type allows to use panoramic images that are wider and taller than the screen-size. It enables users to explore these images by horizontal or vertical scrolling.
104
104
 
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module LinkmapPage
3
- VERSION = '2.6.1'.freeze
3
+ VERSION = '2.7.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-linkmap-page
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-21 00:00:00.000000000 Z
11
+ date: 2020-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
@@ -372,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
372
372
  version: '0'
373
373
  requirements: []
374
374
  rubyforge_project:
375
- rubygems_version: 2.7.10
375
+ rubygems_version: 2.6.11
376
376
  signing_key:
377
377
  specification_version: 4
378
378
  summary: Pageflow page type for a page that contains customizable link areas