From c77ead510df06a30ed4f3681a28d20983ac039bf Mon Sep 17 00:00:00 2001 From: Ali Ghassemi Date: Wed, 21 Feb 2018 02:26:19 +0100 Subject: [PATCH] amp-reach-player: Allow fullscreen (#13564) --- extensions/amp-reach-player/0.1/amp-reach-player.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/amp-reach-player/0.1/amp-reach-player.js b/extensions/amp-reach-player/0.1/amp-reach-player.js index 31c3eed77cd4..3e3db1918c3e 100644 --- a/extensions/amp-reach-player/0.1/amp-reach-player.js +++ b/extensions/amp-reach-player/0.1/amp-reach-player.js @@ -46,6 +46,7 @@ class AmpReachPlayer extends AMP.BaseElement { iframe.setAttribute('frameborder', 'no'); iframe.setAttribute('scrolling', 'no'); + iframe.setAttribute('allowfullscreen', 'true'); iframe.src = 'https://player-cdn.beachfrontmedia.com/playerapi/v1/frame/player/?embed_id=' + encodeURIComponent(embedId); this.applyFillContent(iframe); this.element.appendChild(iframe);