Skip to content

Commit

Permalink
add allow=autoplay to iframes (#30170)
Browse files Browse the repository at this point in the history
(cherry picked from commit 37aa624)
  • Loading branch information
Enriqe authored and ampprojectbot committed Sep 9, 2020
1 parent 2849403 commit 33e642c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/amp-story-player/amp-story-player-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ export class AmpStoryPlayer {
story.getAttribute('data-poster-portrait-src')
);
iframeEl.classList.add('story-player-iframe');
iframeEl.setAttribute('allow', 'autoplay');
this.iframes_.push(iframeEl);

applySandbox(iframeEl);
Expand Down

0 comments on commit 33e642c

Please sign in to comment.