Skip to content

Commit

Permalink
add allow=autoplay to iframes (#30170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enriqe committed Sep 9, 2020
1 parent e91bb98 commit 37aa624
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
Expand Up @@ -434,6 +434,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 37aa624

Please sign in to comment.