Skip to content

Commit 296a090

Browse files
authored
Allow autoplay for vimeo thumb click
Currently on click a video thumb the video does not start, but the code to autoplay is incorrect since 2017 https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
1 parent cc599e5 commit 296a090

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/ProductVideo/view/frontend/web/js/load-player.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ define([
344344
.attr('mozallowfullscreen', '')
345345
.attr('allowfullscreen', '')
346346
.attr('referrerPolicy', 'origin')
347+
.attr('allow', 'autoplay')
347348
);
348349
this._player = window.$f(this.element.children(':first')[0]);
349350

0 commit comments

Comments
 (0)