@ecl/video 5.0.0-alpha.2 → 5.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/video.html.twig +6 -6
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ecl/video",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "5.0.0-alpha.
|
|
5
|
+
"version": "5.0.0-alpha.20",
|
|
6
6
|
"description": "ECL Video",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"design-system",
|
|
23
23
|
"twig"
|
|
24
24
|
],
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "47aedb8e6c7b15ce6acc9cbd2284c4a52ba1014b"
|
|
26
26
|
}
|
package/video.html.twig
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
- "sr_video_label" (string) (default: ''): additional label for the video item; for screen readers
|
|
27
27
|
- "sr_video_player" (string) (default: ''): additional label for the video player; for screen readers
|
|
28
28
|
- "zoom" (boolean) (default: false): Should the poster picture have a zoom animation?
|
|
29
|
-
- "extra_classes" (
|
|
29
|
+
- "extra_classes" (string) (default: ''): Extra css classes, added to the root picture tag
|
|
30
30
|
- "extra_attributes" (optional) (array) (default: [])
|
|
31
31
|
- "name" (string) Attribute name, eg. 'data-test'
|
|
32
32
|
- "value" (optional) (string) Attribute value, eg: 'data-test-1'
|
|
@@ -46,26 +46,26 @@
|
|
|
46
46
|
{% set _sr_video_player = sr_video_player|default('') %}
|
|
47
47
|
{% set _sr_video_label = sr_video_label|default('') %}
|
|
48
48
|
{% set _zoom = zoom|default(false) %}
|
|
49
|
-
{% set _extra_attributes = '' %}
|
|
49
|
+
{% set _extra_attributes = 'playsinline' %}
|
|
50
50
|
|
|
51
51
|
{% if _zoom %}
|
|
52
52
|
{% set _css_class = _css_class ~ ' ecl-video--zoom' %}
|
|
53
53
|
{% endif %}
|
|
54
54
|
|
|
55
55
|
{% if _controls %}
|
|
56
|
-
{% set _extra_attributes = 'controls' %}
|
|
56
|
+
{% set _extra_attributes = _extra_attributes ~ ' controls' %}
|
|
57
57
|
{% endif %}
|
|
58
58
|
|
|
59
59
|
{% if _autoplay %}
|
|
60
|
-
{% set _extra_attributes = _extra_attributes
|
|
60
|
+
{% set _extra_attributes = _extra_attributes ~ ' autoplay' %}
|
|
61
61
|
{% endif %}
|
|
62
62
|
|
|
63
63
|
{% if _muted %}
|
|
64
|
-
{% set _extra_attributes = _extra_attributes
|
|
64
|
+
{% set _extra_attributes = _extra_attributes ~ ' muted' %}
|
|
65
65
|
{% endif %}
|
|
66
66
|
|
|
67
67
|
{% if _loop %}
|
|
68
|
-
{% set _extra_attributes = _extra_attributes
|
|
68
|
+
{% set _extra_attributes = _extra_attributes ~ ' loop' %}
|
|
69
69
|
{% endif %}
|
|
70
70
|
|
|
71
71
|
{% if _title is not empty and _sr_video_label is not empty %}
|