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

✨ Bento amp-video-iframe #31055

Merged
merged 30 commits into from
May 4, 2021
Merged

Conversation

alanorozco
Copy link
Member

No description provided.

@@ -21,6 +21,29 @@ const TAG = 'amp-video';

class AmpVideo extends VideoBaseElement {}

/** @override */
AmpVideo['props'] = {
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved since props vary by component, so I think they should be specified individually.

Comment on lines 73 to 75
'component': VideoIframe,
'onMessage': onMessage,
'makeMethodMessage': makeMethodMessage,
Copy link
Member Author

Choose a reason for hiding this comment

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

This doesn't need a specific component, but only specific props.

This can be the case for 3p players like amp-youtube too, where we can specify its behavior only by changing props.

In a future world where CE get compiled away, for other components this can be expressed in one of two ways.

From:

<amp-youtube ...></amp-youtube>

Into:

A.

<Youtube ... />

or B.

<VideoIframe makeMethodMessage={YOUTUBE_MAKE_METHOD_MESSAGE} ... />

This is irrelevant for this PR, but it might be interesting to note.

extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
extensions/amp-video-iframe/1.0/amp-video-iframe.js Outdated Show resolved Hide resolved
…frame

# Conflicts:
#	build-system/compile/bundles.config.js
#	extensions/amp-video-iframe/0.1/amp-video-iframe.js
#	extensions/amp-video/1.0/base-element.js
#	extensions/amp-video/1.0/video-wrapper.js
@alanorozco alanorozco marked this pull request as ready for review April 22, 2021 17:18
@alanorozco alanorozco requested a review from krdwan April 22, 2021 17:20
@alanorozco alanorozco merged commit edfd93b into ampproject:main May 4, 2021
@alanorozco alanorozco deleted the amp-video-iframe branch May 4, 2021 15:43
rochapablo pushed a commit to rochapablo/amphtml that referenced this pull request Aug 30, 2021
<amp-video-iframe> that uses a Preact VideoIframe.
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.

5 participants