Add amp-wistia-player in order to load Wistia videos#12654
Add amp-wistia-player in order to load Wistia videos#12654aghassemi merged 14 commits intoampproject:masterfrom
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.
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) |
51a6cd8 to
b5dc127
Compare
aghassemi
left a comment
There was a problem hiding this comment.
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 |
| '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.
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.
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 .