amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-facebook zooms-in videos when switching from landscape to portrait

Open rojasmi1 opened this issue 9 years ago • 3 comments

What's the issue?

amp-facebook zooms-in videos when switching from landscape to portrait.

How do we reproduce the issue?

Here is a sample page

  1. Load the page in landscape mode
  2. Once the page is load switch to portrait mode
  3. The video in portrait now looks zoomed in and cut off.

NOTE: When using the data-embed-as="video" attribute it works, but there is no secure way for us to know when a link is a video or not, plus using video instead of post means we render only the player.

What browsers are affected?

Chrome mobile and desktop with emulator for mobile.

Which AMP version is affected?

1508896929494

rojasmi1 avatar Nov 16 '17 18:11 rojasmi1

Classifying as feature since fix involves detecting data-embed-as automatically in the component

aghassemi avatar Nov 16 '17 23:11 aghassemi

@aghassemi is it ok if I take on this issue?

nainar avatar Feb 12 '18 23:02 nainar

The strategy I intend to use is to the derive the data-embed-as attribute from the data-href and then set the data-show-text attribute to 'true'. This will address the problem of not being able to see the text of the post if we set data-embed-as to 'video'.

Let's see how it goes.

nainar avatar Feb 13 '18 04:02 nainar