-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add amp-wistia-player in order to load Wistia videos #12654
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
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
| @@ -0,0 +1,44 @@ | |||
| # | |||
| # Copyright 2017 The AMP HTML Authors. All Rights Reserved. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace 2017 with 2018
|
validation changes look good. |
|
Signed the CLA. |
|
CLAs look good, thanks! |
d40135a to
dc351f3
Compare
| this.element.dispatchCustomEvent(VideoEvents.ENDED); | ||
| } | ||
| } else if (data['method'] == 'mutechange') { | ||
| isMuted = (data['args'] ? data['args']['_isMuted'] : undefined) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const isMuted = ?
51a6cd8 to
b5dc127
Compare
aghassemi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good, just couple of small requests. Thanks for the PR!
| <script async src="https://cdn.ampproject.org/v0.js"></script> | ||
| </head> | ||
| <body> | ||
| <amp-wistia-player |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a layout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added here: 5838fe1
| 'for <amp-wistia-player> %s', | ||
| this.element); | ||
| const iframe = this.element.ownerDocument.createElement('iframe'); | ||
| iframe.setAttribute('title', 'Wistia Video Player'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
page author should control this. Maybe
iframe.setAttribute('title', this.element.getAttribute('title') || 'Wistia Video Player');
| iframe.setAttribute('scrolling', 'no'); | ||
| iframe.setAttribute('allowtransparency', ''); | ||
| iframe.setAttribute('allowfullscreen', 'true'); | ||
| iframe.src = '//fast.wistia.net/embed/iframe/' + encodeURIComponent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no relative protocol, must be https://
b5dc127 to
d0b8ae2
Compare
d0b8ae2 to
9e601e4
Compare
|
@chen-anders To fix the Travis CI failure, you players needs to be added to the whitelist file here: https://github.com/ampproject/amphtml/blob/master/build-system/dep-check-config.js#L175 |
|
CI failures have been resolved. |
|
Is there some additional work that needs to be done in order to be listed on the following page: https://www.ampproject.org/docs/reference/components#media ? |
|
@chen-anders We periodically update that page. You can also submit a PR against this file: https://github.com/ampproject/docs/blob/e7696149ce0c231525e07a8ea2a099e1a3a23a99/content/docs/reference/components.md to get it there faster. |
* Add an amp-video test that shows which tagspec is picked for errors. * Revision bump for ampproject#12654 * Revision bump for ampproject#12836 * Make sure the light validator doesn't run amp4ads tests.
* Add an amp-video test that shows which tagspec is picked for errors. * Revision bump for ampproject#12654 * Revision bump for ampproject#12836 * Make sure the light validator doesn't run amp4ads tests.
Closes #12644 .