Skip to content

✨Disable auto-fullscreen for iframe players in iOS#15061

Merged
alanorozco merged 4 commits intoampproject:masterfrom
alanorozco:autofsios
May 4, 2018
Merged

✨Disable auto-fullscreen for iframe players in iOS#15061
alanorozco merged 4 commits intoampproject:masterfrom
alanorozco:autofsios

Conversation

@alanorozco
Copy link
Copy Markdown
Member

@alanorozco alanorozco commented May 3, 2018

Safari and iOS can only fullscreen <video> elements directly. In cases where the player component is implemented via an <iframe>, we need to rely on a postMessage API to fullscreen. Such an API is not necessarily provided by all players.

@alanorozco alanorozco requested a review from aghassemi May 3, 2018 20:26
@alanorozco alanorozco added this to the Sprint H1 May 2018 milestone May 3, 2018
return true;
}
const internalElement = getInternalElementFor(video);
return internalElement.tagName.toLowerCase() == 'video';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I suggest running this as the first check to short-circuit for the common amp-video case.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure, done.

@alanorozco alanorozco merged commit e123484 into ampproject:master May 4, 2018
@alanorozco alanorozco deleted the autofsios branch May 4, 2018 03:47
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants