From ed8ebff68f7cc06cbb79889ae23401c7884c8fb4 Mon Sep 17 00:00:00 2001 From: Jon Newmuis Date: Thu, 21 Feb 2019 04:15:38 -0500 Subject: [PATCH] Move upgradeBackgroundAudio to layoutCallback --- extensions/amp-story/1.0/amp-story-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/amp-story/1.0/amp-story-page.js b/extensions/amp-story/1.0/amp-story-page.js index 2b84901480ad..e3dc87ca1983 100644 --- a/extensions/amp-story/1.0/amp-story-page.js +++ b/extensions/amp-story/1.0/amp-story-page.js @@ -237,7 +237,6 @@ export class AmpStoryPage extends AMP.BaseElement { /** @override */ buildCallback() { - upgradeBackgroundAudio(this.element); this.delegateVideoAutoplay(); this.markMediaElementsWithPreload_(); this.initializeMediaPool_(); @@ -364,6 +363,7 @@ export class AmpStoryPage extends AMP.BaseElement { /** @override */ layoutCallback() { + upgradeBackgroundAudio(this.element); this.muteAllMedia(); return Promise.all([