Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude the attachment media from the page media playback. #20264

Merged

Conversation

gmajoulet
Copy link
Contributor

Exclude the attachment media from the page media playback, to ensure that:

  • The page won't wait for their layout before being marked as loaded
  • The page won't autoplay them as a user navigates to the page containing their attachment

#20209

ALL_AMP_MEDIA: 'amp-audio, amp-video, amp-img, amp-anim',
ALL_MEDIA: 'audio, video',
ALL_VIDEO: 'video',
ALL_AMP_MEDIA: 'amp-story-grid-layer amp-audio, ' +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about background-audio specified in an amp-story, do we want to also include that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nvm, just realized we don't do that normally, even with the background-audio of an amp-story-page.

@gmajoulet gmajoulet force-pushed the attachment_component_exclude_media branch from 978a2e9 to 4514774 Compare January 11, 2019 17:20
@gmajoulet gmajoulet merged commit 25a3312 into ampproject:master Jan 11, 2019
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request Mar 22, 2019
…t#20264)

* Exclude the attachment media from the page media playback.

* Fixing unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants