amp-facebook zooms-in videos when switching from landscape to portrait
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
- Load the page in landscape mode
- Once the page is load switch to portrait mode
- 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
Classifying as feature since fix involves detecting data-embed-as automatically in the component
@aghassemi is it ok if I take on this issue?
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.